LinuxQuestions.org
Register a domain and help support LQ
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 08-14-2004, 04:58 PM   #1
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Rep: Reputation: 15
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!
 
Old 08-14-2004, 05:01 PM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
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.
 
Old 08-14-2004, 05:04 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 08-14-2004, 05:17 PM   #4
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Original Poster
Rep: Reputation: 15
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 =)
 
Old 08-14-2004, 05:25 PM   #5
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 08-14-2004, 05:27 PM   #6
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Original Poster
Rep: Reputation: 15
so 2551 or 2552? =)
 
Old 08-14-2004, 05:35 PM   #7
xbennyboy
Member
 
Registered: Jul 2004
Distribution: openSUSE 10.2
Posts: 141

Rep: Reputation: 15
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?
 
Old 08-14-2004, 05:45 PM   #8
berkay
Member
 
Registered: Mar 2004
Location: TR
Distribution: Gentoo 2004.2
Posts: 100

Original Poster
Rep: Reputation: 15
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!
 
  


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
Creating A Partition mailnickykav Red Hat 1 02-23-2005 03:09 PM
creating partition putteand Linux - Hardware 7 01-08-2005 05:02 PM
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 11:59 AM
creating new partition before boot partition?? rose_bud4201 Linux - General 17 02-07-2003 01:25 PM
Newbie Installing Debian3 on m68k w/250M Partition Needs help creating swap partition AppleMac Linux - Newbie 2 11-01-2002 09:45 AM


All times are GMT -5. The time now is 11:09 AM.

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