LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Creating A Partition (https://www.linuxquestions.org/questions/linux-newbie-8/creating-a-partition-217621/)

berkay 08-14-2004 03:58 PM

Creating A Partition
 
I have a disk space of 8gb which is unformatted... After I installed FC2, I have left 8 gb free space to create partititon after the installation via windows partition magic... However it failed because there weren't any drive letters etc... When I fdisk -l it says

Code:

  Device Boot      Start        End      Blocks  Id  System
/dev/hda1  *          1        1785    14337981    c  W95 FAT32 (LBA)
/dev/hda2            1786        3648    14964547+  f  W95 Ext'd (LBA)
/dev/hda5            1786        2551    6144768  83  Linux

So, I want to use that free space with XP (Fat32).... How can I format this free space with fdisk or any other method?

THanks a lot!

btmiller 08-14-2004 04:01 PM

Assuming this space is on your first hard drive, use "fdisk /dev/hda" or (perhaps easier) cfdisk "/dev/hda" to create a new partition, and then mkfs -t vfat /dev/<your new partition> will format it. Be careful with this commands, since you can hose your existing partition if you're not careful.

Tinkster 08-14-2004 04:04 PM

You first will need to create another partition in
that "free space" (which in fact is an extended
partition with one logical partition for Linux in it).

Cylinders 2551-3648 are empty. Once you have
created that logical partition you can format it
from either WinDOHs or from Linux.
man mkdosfs for details


Cheers,
Tink

berkay 08-14-2004 04:17 PM

Ok... I don't want to lose any data, I have read tons of docs around the WWW so I don't want to make a small mistake which will waste my time in the future :) When I try to create a partition it says first cyclinder(2551-3648, default 2551)... Should I write 2551 or 2552? Maybe this could seem funny for you but I am very confused.. Because the table shows that 1785 then 1786... What should I do? Thanks =)

Tinkster 08-14-2004 04:25 PM

What to say :)

My personal experience with fdisk is good, it
never failed me in -what, 7 years?- and I'd
trust its judgement when it comes to where the
partition boundaries are. But that, of course, is
not a warranty of any kind that it will work for
you. ;)


Cheers,
Tink

berkay 08-14-2004 04:27 PM

so 2551 or 2552? =)

xbennyboy 08-14-2004 04:35 PM

Since you said that you're going to use that free space with WinXP why not just use the disk management application in the Administrative tools section?

berkay 08-14-2004 04:45 PM

the reason why I don't use administrative tools is that it doesn't work! It gives an error... So I have to try fdisk!


All times are GMT -5. The time now is 10:02 AM.