1

Topic: Possible to format, via LXTerminal?

I've been working on sorting an 'Aspire One' netbook over the last few days.

It had windows 7 installed.  IT really shouldn't have had windows 7 on it; given the spec.  That's not important.

Long story short the OS was corrupted.  It wouldn't accept any new installations or repair / maintenance option.  Due to various 'corruption' errors.

I used 'Spinrite'.  A tool I often use for data recovery.  To pull the important files off of the HDD.  Then check for surface errors.  All clean.... now.

Or so I thought.  Trying to install XP, or any other windows OS.  Again leads to claims of corruption, locked drives or partitions simply not showing up at all.

I turned to GParted. 

It's currently siting on the Gparted desktop/UI.  Through the use of a USB flashdrive.

The GParted application, itself, does not list the 4 partitions on the harddrive.  It doesn't even recognize that there is a harddrive.  All of the options on Gparted are greyed out.

So I loaded up LXTerminal (with root control).  Then used the 'fdisk -l -u' command.  (A command I saw suggest here, on the forum.  In similar threads.)

It lists the 4 partitions.  That I am already aware of as....

/dev/sda1 [id 27] [Hidden NTFS WinPE]
/dev/sda2 [id C] [W95 FAT32 (LBA)]
/dev/sda3 [id E] [W95 FAT32 (LBA)]
/dev/sda4 [id 6] [FAT16]

...It then list my 8GB USB flashdrive etc etc.

I'll be as clear as possible.  I want everything gone.  Headers, labels, data, partitions.  I want them gone.

Even if it's one command line to wipe everything back to an empty OEM hardrive.

Any help is appreciated.  Thanks in advance.

2

Re: Possible to format, via LXTerminal?

If you want to completely overwrite the drive with zeros, you can use a command such as follows:

WARNING:  Be sure to pick the correct disk device because all the data will be overwritten!

dd if=/dev/zero of=/path-to-disk-device-to-wipe

Where /path-to-disk-device-to-wipe is something like /dev/sdg

3

Re: Possible to format, via LXTerminal?

Thanks for the help gedakc.

I'll give that a try, the second I get home.  Then post back, either way.