LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 10-23-2003, 01:23 PM   #1
qod
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..

thanks
 
Old 10-23-2003, 01:34 PM   #2
gamu829
Member
 
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, 01:38 PM   #3
qod
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 01:50 PM.
 
  


Reply


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 10:15 AM
delete windows partition jnsenit Linux - General 3 11-28-2004 01:37 PM
delete third partition (what happens?) invasian Linux - General 1 09-24-2004 04:33 PM
Cannot Delete Partition Tweaker Linux - Newbie 7 02-25-2003 06:55 PM
how to delete an partition schatoor Linux - General 3 12-03-2002 08:16 AM


All times are GMT -5. The time now is 10:53 PM.

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