LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to delete a partition in redhat (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-delete-a-partition-in-redhat-107658/)

qod 10-23-2003 01:23 PM

how to delete a partition in redhat
 
well since i do not belive i will switch to windows anymore what could i do not get the disk space wasted by my windows in the dual boot configuration..

thanks:newbie:

gamu829 10-23-2003 01:34 PM

As root, run fdisk and change the partition type for the FAT or NTFS partition to 82 (Linux). Then make a filesystem ("format" in the DOS/Windows world) on the same partition. Assuming you want to make an ext3 filesystem with default values and you had windows on /dev/hda1, the command would be:

mke2fs -j /dev/hda1

Drop the "-j" if you want ext2. (The only difference between ext2 and ext3 is journaling, specified by the "-j" switch.)

You then have to decide where to mount the new partition into the filesystem. For the sake of example, let's assume you want to mount it at /spare. You first make the mount point just as you would make a new directory:

mkdir /spare

then you mount the filesystem:

mount -t ext3 /dev/hda1 /spare

You will probably want to put a line in /etc/fstab so the parition is automatically mounted at boot time:

/dev/hda1 /spare ext3 defaults 1 2

Good Luck!

qod 10-23-2003 01:38 PM

ok how do you convert the NTFS or FAT to a linux again??


All times are GMT -5. The time now is 11:12 PM.