Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cant access new partition
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Tasslehoff
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2003
Posts: 100
Location: BC Canada

PostPosted: Sun Aug 01, 2004 7:27 am    Post subject: cant access new partition Reply with quote

I am getting ready to reinstall gentoo from the currently running debian. I resized my /home (/dev/hda3) partition to make room for me to install on now I cant get at the new partition

I logged in as root
unmounted the home partition
used qtparted to resize the /home partition by a gig
comited the changes
remounted the home directory
logged out and back in as a regular user

now I have a gig of free space in the middle of my disk that is free though no partition is there

Code:

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1           5       40131   83  Linux
/dev/hda2               6          68      506047+   5  Extended
/dev/hda3              69        1743    13454437+  83  Linux
/dev/hda4            1875        4866    24029775   83  Linux
/dev/hda5               6          68      506016   82  Linux swap


you can kind of see the gap there between /dev/hda3 and /dev/hda4 I cant get anything to actually create a partition there. fdisk says there is no free space. cfdisk wont start but gives this error:

Quote:

FATAL ERROR: Bad primary partition 3: Partition ends in the final partial cylinder


any ideas on how to get at that space?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54317
Location: 56N 3W

PostPosted: Sun Aug 01, 2004 12:26 pm    Post subject: Reply with quote

Tasslehoff,

You aren't going to like the answer.

You are allowed 4 primary partions or 3 primary partitions and an extended partition on each drive. The extended partition is really a container for further logical partiitons.

You are up to you maximum of 3 primaries and an extended and have resized a primary parttion to make some space. Unfortunately, you cannot now turn this space into a partion because its outside you extended partion and no further primary partition table entries are available. You can't even add it to the extended partition, because an extended partition must be contigious disk blocks.

A better partitioning scheme is
hda1 /boot
hda2 <swap>
hda3 Extended - rest of disc
hda4 (spare)
hda5 first logical parttion.
hda6... more partitions

I think you are into backing up everything, repartitioning your drive and reinstalling. Do not use a partiion image tool because the restore will be to different size partitions.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Tasslehoff
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jul 2003
Posts: 100
Location: BC Canada

PostPosted: Sun Aug 01, 2004 2:45 pm    Post subject: Reply with quote

You are right I dont like the answer :lol: But it makes sence, I was trying to avoid downtime but that is not going to happen. Thanks for your answer :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum