Jump to content

partition hacking


santner
 Share

Recommended Posts

I currently have 2 hd's and 13 partitions with different kernel versions, distributions, my home directory, backup partition, etc... :juggle: I would like to clean it up by ordering my partitions in a logical manner, i.e.

/dev/hda1 /

hda2 /boot

hda3 /swap

hda4 Extended

hda5 Pictures

etc...

 

My question is this: If I copy my root partition from /dev/hdb1 to /dev/hda1, edit lilo and fstab to reflect the changes and then reboot, will this work? If not, how would I do this without reinstalling?(All of the above assumes that I have my partitions setup and designated correctly, i.e. 83 for linux, 82 for swap, etc...)

 

[moved from Software by spinynorman]

Link to comment
Share on other sites

I currently have 2 hd's and 13 partitions with different kernel versions, distributions, my home directory, backup partition, etc... :juggle: I would like to clean it up by ordering my partitions in a logical manner, i.e.

/dev/hda1 /

hda2 /boot

hda3 /swap

hda4 Extended

hda5 Pictures

etc...

 

My question is this: If I copy my root partition from /dev/hdb1 to /dev/hda1, edit lilo and fstab to reflect the changes and then reboot, will this work? If not, how would I do this without reinstalling?(All of the above assumes that I have my partitions setup and designated correctly, i.e. 83 for linux, 82 for swap, etc...)

 

[moved from Software by spinynorman]

It should work.. just do what you said you were going to do. use

 

cp -pax to copy everything from one to another and boot off a CD to do the copying.. Then leave the original alone until you have proven the new root is booting correctly..

 

That's all I can think of :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...