Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 10-23-2003, 02:23 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 27

Rep: Reputation: 15
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..

Old 10-23-2003, 02:34 PM   #2
Registered: Sep 2002
Location: Portland, OR, US
Distribution: Fedora 2
Posts: 47

Rep: Reputation: 15
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!
Old 10-23-2003, 02:38 PM   #3
LQ Newbie
Registered: Oct 2003
Posts: 27

Original Poster
Rep: Reputation: 15
ok how do you convert the NTFS or FAT to a linux again??

Last edited by qod; 10-23-2003 at 02:50 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How would I delete a partition? TroyR Linux - Newbie 3 03-13-2005 11:15 AM
delete windows partition jnsenit Linux - General 3 11-28-2004 02:37 PM
delete third partition (what happens?) invasian Linux - General 1 09-24-2004 05:33 PM
Cannot Delete Partition Tweaker Linux - Newbie 7 02-25-2003 07:55 PM
how to delete an partition qanopus Linux - General 3 12-03-2002 09:16 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:19 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration