1827804 Members
2125 Online
109969 Solutions
New Discussion

Re: DELETE FILESYSTEM

 
SOLVED
Go to solution
Nobody's Hero
Valued Contributor

DELETE FILESYSTEM

Here is the output of my 'df':

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 11147884 7059044 3522552 67% /
/dev/sda2 50822584 1221080 47019860 3% /ASU
none 192568 0 192568 0% /dev/shm

I want to delete the /ASU ext3 partition and create a new /ASU xfs partition. I backed up the data to tape. How do I delete the active partition? I guess I'll use mkfs.xfs to create the new one, correct?
UNIX IS GOOD
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: DELETE FILESYSTEM

It probably would be a good idea to umount the filesystem first.

Then mkfs.xfs /dev/sda2

I don't do this very often though.

Technically you could do it all from the GUI but I understand why you might want to learn the command line.

Good Luck.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Alexander Chuzhoy
Honored Contributor

Re: DELETE FILESYSTEM

first you have to umount the partition:
umount /dev/sda2 /ASU

then just format the partition
mkfs.xfs /dev/sda2


then mount it back or to whatever directory you wish....




Paul Cross_1
Respected Contributor

Re: DELETE FILESYSTEM

test your backups first!
Mobeen_1
Esteemed Contributor

Re: DELETE FILESYSTEM

Robert,
I would suggest you follow the sequence below for deleting a partition and creating a new partition on the same

1. Backup the partition (You never know if
some one asks for it)

2. Unmount/Dismount the partition using the
command
umount /dev/sda2 /ASU

3. Format the partition using the command
line below
mkfs.xfs /dev/sda2

4. Mount the new partition
mount /dev/sda2

regards
Mobeen