LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
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


Reply
  Search this Thread
Old 11-16-2003, 10:15 AM   #1
yzman
LQ Newbie
 
Registered: Nov 2003
Location: Los Angeles
Distribution: Red Hat 9
Posts: 6

Rep: Reputation: 0
partition problems: cannot allocate unallocated sectors


hi

I have windows and linux on separate partitions, and i was resizing a partition from windows using PartitionMagic and allocating the new space to a new partition. After the resize i got an error. The new space is unallocated, and the program crashed everytime i tried to reallocate it.

I switched to Linux (RH9) and using fdisk, tried to add a new partition.
BUT
when i try to add, i get the message: No free sectors available
when i choose verify partition table i get: 3903919 unallocated sectors

here is my partition table:

Disk /dev/hda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 4 32098+ de Dell Utility
/dev/hda2 * 5 1457 11671222+ 7 HPFS/NTFS
/dev/hda3 1701 2368 5365710 83 Linux
/dev/hda4 2369 2432 514080 f Win95 Ext'd (LBA)
/dev/hda5 2369 2432 514048+ 82 Linux swap

any ideas how to solve this?

thanks so much,
yzman
 
Old 11-17-2003, 05:48 AM   #2
yzman
LQ Newbie
 
Registered: Nov 2003
Location: Los Angeles
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
Wow, no one knows anything about this?! please help!
 
Old 11-17-2003, 06:57 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Basic partition information:
Primary partitions are labeled 1-4. Logical partitions are labeled >=5.
An extended partition is the method for creating more then 4 partitions and is a container for logical partitions.

In your case you already have 4 primary partitions and your extended partition is full because the swap file is using all of its space ie. extend = swap size. With your present configuration even though you have unallocated space you can not create anymore partitions.

I have never tried this but you could attempt to resize the extended partition and then create a logical. Or since the logical is only a swap file you can delete the extended and swap partitions Then create an extended to fill the entire unallocated space, then create a new swap partition and any additional partitions you want. You will have to format the swap partition and then change the fstab file if the partition ID is not the same as the original. To format swap: mkswap /dev/hdax where x is the partition ID.

I don't know why Partition Magic crashes, except it isn't perfect and might be trying something that can't be done.

Last edited by michaelk; 11-17-2003 at 06:59 AM.
 
Old 11-17-2003, 08:57 AM   #4
yzman
LQ Newbie
 
Registered: Nov 2003
Location: Los Angeles
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
thanks so much for the info!

can i remove the swap partition or try to resize the extended partiton wile linux is running?
 
Old 11-17-2003, 10:26 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
It would be best if you used the 1st CD and booted into rescue mode. You really do not want the OS to be running on the same disk that your changing the partition table on or try to change a mounted partition. After you change the partitions you will want to reboot.

I have never had any problems with PM but you will find lots of post where it has screwed everything up. Always backup important data before making any changes.
 
Old 11-17-2003, 07:37 PM   #6
yzman
LQ Newbie
 
Registered: Nov 2003
Location: Los Angeles
Distribution: Red Hat 9
Posts: 6

Original Poster
Rep: Reputation: 0
thanks MichaelK,

i solved the problem by deleting the 32M partition that Dell has on the laptop and so then i have 3 primaries instead of 4, and reallocated the 2G free space as a new primary partition!

i hope i will never need whatever was on that 32M partition!
 
Old 11-17-2003, 09:02 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,681

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
I hope so too. That partition was hidden and contained all of the recovery information for your system. If you every need to restore your windows OS your going to be SOL.

I try so hard ... :-( Sigh....
 
Old 11-18-2003, 04:31 AM   #8
tocodilon
LQ Newbie
 
Registered: Oct 2003
Location: nah
Distribution: RedHat Linux 7.3-9.0
Posts: 5

Rep: Reputation: 0
Re: partition problems: cannot allocate unallocated sectors

Quote:
Originally posted by yzman
hi

I have windows and linux on separate partitions, and i was resizing a partition from windows using PartitionMagic and allocating the new space to a new partition. After the resize i got an error. The new space is unallocated, and the program crashed everytime i tried to reallocate it.

I switched to Linux (RH9) and using fdisk, tried to add a new partition.
BUT
when i try to add, i get the message: No free sectors available
when i choose verify partition table i get: 3903919 unallocated sectors

here is my partition table:

Disk /dev/hda: 20.0 GB, 20003880960 bytes
255 heads, 63 sectors/track, 2432 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 4 32098+ de Dell Utility
/dev/hda2 * 5 1457 11671222+ 7 HPFS/NTFS
/dev/hda3 1701 2368 5365710 83 Linux
/dev/hda4 2369 2432 514080 f Win95 Ext'd (LBA)
/dev/hda5 2369 2432 514048+ 82 Linux swap

any ideas how to solve this?

thanks so much,
yzman
=====================

i think u may have damaged your partition table, and partition magic was not successful in modifying your partition info. U have to reinstall linux again with the option of not reformatting your needed partition (where your data reside).
 
  


Reply



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
error:could not allocate partition nedian Linux - General 1 02-20-2004 03:19 AM
Unallocated shared FAT partition for RH9 and XP not accessible. leenaxoo Linux - Newbie 2 11-24-2003 01:14 PM
could not allocate requested partition xzy2435 Linux - Newbie 5 11-17-2003 06:08 PM
How to allocate a new directory to a particular partition? Rgamboa Linux - Software 1 05-16-2003 04:01 PM
How to allocate a new directory to a particular partition? Rgamboa Linux - Newbie 1 05-16-2003 04:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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