Jump to content

Partition numbering


aperahama
 Share

Recommended Posts

I currently have a partition scheme:

 

hdb5, empty (3.8Gb)

hdb6, empty (7.9Gb)

hdb7, /home

hdb8, /data

hdb9, /

hdb10, /swap

 

What I want to do is to spilt the hdb6 into two partitions.

 

What do I need to maintain my system? Will I have trouble with the new partition numbers or what? How should I go about it? Do I need to alter my fstab or any other files to cope with this change?

 

Thanks for looking and any answers are much appreciated

Link to comment
Share on other sites

I'm not sure that it will renumber your existing partitions, but I have never tried it. It will in windex, but windex is different than linux in this respect.

 

If you use hardrake, it will tell you what the numbers are before you commit, so check it out.

Link to comment
Share on other sites

You will need to modify your /etc/fstab and your /etc/lilo.conf

 

If you split hdb6, you will probably end up with a drive like so:

 

hdb5, empty (3.8Gb)

hdb6, /joe

hdb7, /bob

hdb8, /home

hdb9, /data

hdb10, /

hdb11, /swap

 

So you will need to modify LILO to reflect the changes in the / partition and your fstab.

 

good luck,

Link to comment
Share on other sites

how are you splitting it? Partition Magic? Diskdrake? Disdrake will not renumber, correctly in a nice neat common sense order, your current partitions. You'll have to delete hdb6 and make 2 new partitions which will go down like this...

 

delete hdb6

hdb7,8,9,10 will become

hdb6,7,8,9

 

the 2 new will become hdb10 and 11 so that you end up with

 

hdb5, empty (3.8Gb)

hdb10 (new)

hdb11 (new)

hdb6, /home

hdb7, /data

hdb8, /

hdb9, /swap

 

silly huh?

btw, diskdrake will also make all the changes to fstab. I've done this sorta thing many times while having many distros. So it is a major pain because I then have to modify their fstab's myself.

 

Partition Magic on the other hand is smart. You'd end up with

hdb5, empty (3.8Gb)

hdb6 (new)

hdb7 (new)

hdb8, /home

hdb9, /data

hdb10, /

hdb11, /swap

 

yes with other distros you'd still have to modify the fstabs but there's order which makes it a little easier to comprehend what's what, IMO. If you use pm you have to know this a head of time and edit fstab B4 you make the partition changes. Otherwise, not even rescue mode from cd1 can help you because it reads fstab. If / was hdb9 and it is changed to hdb10 by pm. You get nothing.....except a reinstall, or attempt an upgrade.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...