Removing read only flag from Windows Diskpart Partition tool

I was trying to investigate a failed disk from a RAID array using a USB hard drive dock and Windows 7. The problem was Windows was reporting that the disk was read-only, so it wouldn’t repartition the hard disk.

I opened up diskpart tool in windows (Run As Administrator) and tried to run the clean command, but again it complained that the hard drive was in read-only mode.

Finally, I found the way to remove the read-only flag, so I could wipe the drive, and scan it for bad sectors.

DISKPART> list disk
DISKPART> select disk 2
DISKPART> list part
DISKPART> select part 2
DISKPART> attrib part clear readonly

I hate choice – I hate having to choose

  • Cereal, there should only be two major kinds of cereal. They should be very expensive, and small boxes should cost nearly as much as big ones. The most expensive ones should have the most raisins, honey, and those little sweet cluster thingies
  • I don’t know the first thing about cars. I don’t know a ‘chassis’ from an ‘engine’, or a steering wheel, from a rear-view mirror. That’s why, I prefer someone I don’t know, deciding what’s right for me. I guess I could go and ask a knowledgeable person I know some tips and pointers to buying a car, by why bother? Can’t I just as well trust a faceless corporation do decide honestly for me? Afterall, cars are what they know best. Shouldn’t they be able to select what’s best for me?
  • There should, at most, be 4 kinds of cars. But a variety of colours is important. You aren’t able to open the hood without written authorisation from the manufacturer, which means you can’t mod it yourself (unless you’re a pirate, then you just shake yer hook and be done with ’em)
  • Don’t even get me started on vocabulary. The less words to describe the same thing the better. I don’t want to have to “think” about which word to use. Using a thesaurus makes my eyes tiried. Why can’t I just be free and select the same word, time, after time, after time, if I so choose? In this way, I can’t be criticised for a limited vocabulary.
  • Shoes should come in only 3 flavours, and only from a single manufacturer. I don’t know the first thing about good shoes, i want the manufacturers to tell them the “truth”: “These are the shoes you need. They are the best shoes EVER. Even better than the other ones, which we also said were the BEST ever. They are still good, though, but these are ENHANCED, and they’re new, and we aren’t supporting your old ones, come 9 years.”
  • I don’t want to make decisions when I go shopping. Why are there so many damn supermarkets?
  • Do we really need so many chocolate bar types? I don’t want to choose. Can someone choose for me?
  • Just the other day, I had to stand there in front of the cooler at the store deciding which beverage flavour I wanted! Damn you! I only want to select FROM ONLY TWO beverages! And I don’t want to pick which TWO those might be
  • I’m sick of choosing which burger I want, and sick of choosing from which restaurant I want to buy it from.
  • I don’t like selecting from 5,000,000 ice cream flavours. KISS. Chocolate, Vanilla, and strawberry

Julian Assange of Wikileaks speaks at TED

The controversial website WikiLeaks collects and posts highly classified documents and video. Founder Julian Assange, who’s reportedly being sought for questioning by US authorities, talks to TED’s Chris Anderson about how the site operates, what it has accomplished — and what drives him. The interview includes graphic footage of a recent US airstrike in Baghdad.

You could say Australian-born Julian Assange has swapped his long-time interest in network security flaws for the far-more-suspect flaws of even bigger targets: governments and corporations. Since his early 20s, he has been using network technology to prod and probe the vulnerable edges of administrative systems, but though he was a computing hobbyist first (in 1991 he was the target of hacking charges after he accessed the computers of an Australian telecom), he’s now taken off his “white hat” and launched a career as one of the world’s most visible human-rights activists.

He calls himself “editor in chief.” He travels the globe as its spokesperson. Yet Assange’s part in WikiLeaks is clearly dicier than that: he’s become the face of creature that, simply, many powerful organizations would rather see the world rid of. His Wikipedia entry says he is “constantly on the move,” and some speculate that his role in publishing decrypted US military video has put him in personal danger. A controversial figure, pundits debate whether his work is reckless and does more harm than good. Amnesty International recognized him with an International Media Award in 2009.

Assange studied physics and mathematics at the University of Melbourne. He wrote Strobe, the first free and open-source port scanner, and contributed to the book Underground: Tales of Hacking, Madness and Obsession on the Electronic Frontier.

“WikiLeaks has had more scoops in three years than the Washington Post has had in 30.”

Week 8

It’s week 8 now at Uni, out of 13 weeks in all. The pressure will come in around two weeks, I think. CCNA case study, CCNA practicals, Computer Forenics Project report (80% of my mark), 20% for Computer Forensic presentation, around 30-40% for surviving group attacks from Advanced Network Management (aka GNU Linux server management). All in all, a laid-back semester.

Heading out to Cairns on Saturday. Stoked! Going scuba diving.

“As the southern hemisphere turns…”

I can feel Brizzy getting colder now, as April begins to close. May will be stressful, with assignments and group work. Overall, this semester has been among my easiest. Reminds me of my final year as undergrad in Canada. I took French, Spanish, and Philosophy – what a breeze! Cairns coming up. Promise I’ll post up underwater pics 😉

A new beginning

I got hired at my old job. I’m very happy for that. They’re happy I came back! Saves them money and time on training, and the off-chance of hiring a ‘lemon’ that quits after 4 weeks. I’ve entered into a Digital Forensics project. I need to develop a tool that will automate some of the labourious tasks involved in digital forensic evidence acquisition. I’ll probably need to brush up on GNU Bash scripting, and PHP.

It’s been very warm here, but not too hot, which I like. Yesterday was a bitch, though, felt like 30°C. Fortunately, today was overcast, and so helped to alleviate some of the scorching.

Regular Expression

Previously we have an example on regular expression, but It doesn’t shows the power of square brackets ( [ ] )

Let say you want to search for string fprintf, vprintf and sprintf using grep, usually what you do is

egrep "fprintf|vprintf|sprintf" *.c

You may be ask why don’t just uses the word “printf”? If uses the word printf, it will return all of them but also include printf itself. But in this case i don’t want to grep other printf besides f,v,s printf. Thats the square brackets comes in to lessen your trouble.

egrep "[sfv]printf" *.c

It simply return the result with any character specified in [ ] with word printf concatenated.

The square brackets can be used with other RE symbols, here is another example, let say I want to gets all lists with words start with a character “a to f”, I can do this

egrep "^[a-f]" com-book.txt

It is case sensitive, I want all a to f including the upper case A to F.

egrep "^[a-fA-F]" com-book.txt