Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
05-06-2003, 01:43 AM
|
#1
|
LQ Newbie
Registered: May 2003
Distribution: Redhat 9, XP Pro
Posts: 12
Rep:
|
Formatting existsing unused partition
I have a 40g HD with 3 defined partitions, I made an extended partition with fdisk and im running into some problems now when formatting it...
fdisk -l
Warning: invalid flag 0x0000 of partition table 5 will be corrected by w(rite)
Disk /dev/hda: 40.0 GB, 40016019456 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2550 20482843+ 83 Linux
/dev/hda2 2551 2677 1020127+ 82 Linux swap
/dev/hda3 2678 4865 17575110 5 Extended
---
mkfs.ext3 /dev/hda3
mke2fs 1.32 (09-Nov-2002)
/dev/hda3: Not enough space to build proposed filesystem while setting up superblock
---
df -a -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
/dev/hda1 ext3 20161172 5885384 13251648 31% /
none proc 0 0 0 - /proc
usbdevfs usbdevfs 0 0 0 - /proc/bus/usb
none devpts 0 0 0 - /dev/pts
none tmpfs 192288 0 192288 0% /dev/shm
---
Can someone point me in the right direction?
|
|
|
05-06-2003, 02:25 AM
|
#2
|
Member
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341
Rep:
|
I don't get it....
So you want to format /dev/hda3 ext3?
I use:
mke2fs -j /dev/hda3
Or is your problem that you're not seeing the partition using df?
Is it mounted?
|
|
|
05-06-2003, 02:52 AM
|
#3
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
Yeah, I was going to say I didn't get it, either, but was going to let somebody else post first. *g*
I think he was saying he tried formatting and couldn't. Not sure what the problem is, but I don't trust extended partitions. If you've only got two primaries, why not make a third? I'd just delete the unformatted extended, recreate it as primary, and then try formatting that.
Wait... there is that. If it's an extended, shouldn't it be /dev/hda5? I think that might be what fdisk is complaining about - it sounds like it wants to reorder and rewrite the table, because it's messed up. I don't know.
Like I say, I'd either change the flag to make it 83, or just delete and recreate as 83. Hate extended partitions.
|
|
|
05-06-2003, 02:57 AM
|
#4
|
Member
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341
Rep:
|
Ohh, I see...
He needs to make a logical partition, /dev/hda4
|
|
|
05-06-2003, 03:06 AM
|
#5
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
Hm. Well, if it was DOS, he'd need to create logical drives inside the extended. They'd get labeled D:, E:, etc. But in Linux, I think the extended's just the extended, and begins numbering from hdX5. I've been able to avoid the extended/logical stuff in Linux so far, so I'm not sure. So his table should read
/dev/hda1 83 Linux
/dev/hda2 82 Linux swap
/dev/hda5 5 Extended
and then, yeah, maybe he would need to create an 83 inside the 5? I dunno. But it wouldn't be /dev/hda4. It'd just be a subset of 5, I guess.
Or it should read
/dev/hda1 83 Linux
/dev/hda2 82 Linux swap
/dev/hda3 83 Linux
That last is what I'd do. Then do mkfs on it.
|
|
|
05-06-2003, 03:13 AM
|
#6
|
Member
Registered: Nov 2002
Location: /texas/austin/home/desk
Distribution: Gentoo
Posts: 341
Rep:
|
Re: Formatting existsing unused partition
Quote:
Originally posted by rusium
Device Boot Start End Blocks Id System
/dev/hda1 * 1 2550 20482843+ 83 Linux
/dev/hda2 2551 2677 1020127+ 82 Linux swap
/dev/hda3 2678 4865 17575110 5 Extended
---
mkfs.ext3 /dev/hda3
mke2fs 1.32 (09-Nov-2002)
/dev/hda3: Not enough space to build proposed filesystem while setting up superblock
|
/dev/hda3 2678 4865 17575110 5 Extended
I think he's trying to format an extended partition ext3. That's not allowed. The next partition, the logical one, should be /dev/hda4. I think.
What do you think?
I like the idea of getting rid of the extended the best, though. Use that scheme above, I think.
L8TR
|
|
|
05-06-2003, 03:37 AM
|
#7
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
Yeah - just ditch the extended. 
|
|
|
05-06-2003, 08:21 AM
|
#8
|
Moderator
Registered: Aug 2002
Posts: 26,630
|
An extended partition in simple terms is a place holder for logical partitions. You don't format it.
Use fdisk to create a logical drive and then format as you wish. It will be /dev/hda5 as stated above.
FYI
Primary partitions are 1-4. An extended partition is a primary.
Logical partitions are 5-64.
Getting rid of the extended would limit your self to only one additional partition since there are only 4 primaries allowed. Some like to use different partitions for /, /home, /boot, /var etc. which can be more than 4.
Last edited by michaelk; 05-06-2003 at 08:22 AM.
|
|
|
05-06-2003, 12:41 PM
|
#9
|
LQ Newbie
Registered: May 2003
Distribution: Redhat 9, XP Pro
Posts: 12
Original Poster
Rep:
|
Sorry, i posted late last night I was pretty lazy.
Im trying to partition /dev/hda3 which was intended to be an extended partition, but I get errors when trying to format it...
ok i got rid of the extended partition and created a primary, formatted it, mounted it, and it works fine, thanks for the help
-Dan
Last edited by rusium; 05-06-2003 at 12:55 PM.
|
|
|
All times are GMT -5. The time now is 10:59 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|