how to format hardrive in puppy useing command line

Booting, installing, newbie
Post Reply
Message
Author
dan0804smith
Posts: 3
Joined: Tue 02 Aug 2011, 06:23

how to format hardrive in puppy useing command line

#1 Post by dan0804smith »

long story short:

have a hard drive with windows and a really bad virus

i want to format the disk (sda1) useing the command prompt

i am running puppy from a live cd

what is this command?

majorfoo
Posts: 448
Joined: Mon 07 Mar 2011, 22:27
Location: Wish I knew

Re: how to format hardrive in puppy useing command line

#2 Post by majorfoo »

dan0804smith wrote:long story short:

have a hard drive with windows and a really bad virus

i want to format the disk (sda1) useing the command prompt

i am running puppy from a live cd

what is this command?
If you are running puppy from live cd, you can click on desktop, select system, then select gparted partition manager and follow the prompts.
This gives you the option of formattnig fat32, ntfs, ext2, ext3, ext4, etc.

I am running lucid puppy 525 and lupu 268 and format drive to be ext4 partition. Seems to work better.

Also, have found this to be a very easy way to format drive and to also create multiple partitions on the drive.

This not exactly what you asked for for, but hope it helps

marjorfoo

muggins
Posts: 6724
Joined: Fri 20 Jan 2006, 10:44
Location: hobart

#3 Post by muggins »

To format to ext3 file system it's:

Code: Select all

mke2fs -j /dev/sda1
(Assuming sda1 is the unmounted target partition)

User avatar
8-bit
Posts: 3406
Joined: Wed 04 Apr 2007, 03:37
Location: Oregon

#4 Post by 8-bit »

If it was me, considering a nasty virus being present, I would delete the partition on the drive and make a new partition first to remove the possibility of a boot virus surviving.
You could also run Dban on the drive to completely wipe it first.

User avatar
rhadon
Posts: 1292
Joined: Thu 27 Mar 2008, 11:05
Location: Germany

#5 Post by rhadon »

AFAIK deleting/reformatting the first partition doesn't involve the Master Boot Record. This could be done also with Gparted (Device->Create Partition Table).
But this will destroy all data of the HD.

HTH
Rolf
Ich verwende "frugal", und das ist gut so. :wink:
Raspberry Pi without Puppy? No, thanks.

Post Reply