Visit Jeremy's Blog.
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 07-31-2003, 09:02 PM   #1
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179

Rep: Reputation: 30
FDISK help

Device Boot Start End Blocks Id System
/dev/hda1 * 1 13 104391 83 Linux
/dev/hda2 797 1027 1855507+ f Win95 Ext'd (LBA)
/dev/hda3 14 332 2562367+ 83 Linux
/dev/hda4 333 396 514080 82 Linux swap
/dev/hda5 797 1027 1855476 c Win95 FAT32 (LBA)

I wan't to remove hda2 and hda5 and get back the missing space in 397-798. So I can re-make them in DOS mode.

I'm using RedHat 9
Old 07-31-2003, 09:09 PM   #2
Registered: Jul 2003
Location: Canada
Posts: 214

Rep: Reputation: 31
OK. I'm not quite sure what you mean, "re-make them in DOS mode". But I guess you want to remove your Win95 and Win98 partitions, and use it all (including the missing space) as your Linux partitions.

This depends on whether or not you don't care about losing your existing data on the Linux partitions. If you don't, a new table could be just 1 Linux Native partition, and 1 Linux Swap partition.

As far as I know, fdisk cannot resize your Linux Native partitions to include more space. You could however, use the hda2 and hda4 as /usr and /home space.

Another idea could be the tool (though I've never used it) Partition Magic, which can supposedly resize, create, and delete partitions of many types.

Last edited by peace; 07-31-2003 at 09:12 PM.
Old 07-31-2003, 09:18 PM   #3
Registered: Jul 2003
Location: Alaska, USA
Distribution: Red Hat 9
Posts: 179

Original Poster
Rep: Reputation: 30
I just want to delete those partitions so I can re-make them in dos mode. I'm a noob to Linux fdisk. And after I remake them I'm gonna put on Windows 98se...
Old 08-01-2003, 02:45 AM   #4
Registered: Jul 2003
Distribution: Debian Testing
Posts: 180

Rep: Reputation: 30 run fdisk you go to a shell and type:
fdisk /dev/*
Where * is your device (which is usually hda).

To look at partitions, you press p [enter].
To delete a partition, press d [enter] and then the partition number and [enter].
After you're done, press w [enter] to save your changes.

A word of advice: if you install Windows after Linux, Windows will probably remove your boot loader (probably Lilo or Grub). I would recommend you make a Linux boot disk before installing Windows.


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
weird fdisk problem (Fdisk unable to see winxp partitions) khidot Slackware - Installation 5 04-07-2007 09:26 PM
using fdisk jonn Linux - Newbie 2 08-03-2004 03:10 PM
fdisk rogk Linux - General 4 07-24-2004 02:25 PM
Fdisk rstmn957 Slackware 2 12-23-2003 07:15 PM
can't fdisk new hd nmistry Linux - Hardware 4 11-03-2003 10:43 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:12 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
Open Source Consulting | Domain Registration