Jump to content

Drive Duplication Question? [SOLVED]


Tymestream
 Share

Recommended Posts

Good day,

 

I have been trying to migrate my system to a new drive. The question that I have is after the information is transfered to the new drive and the old drives are removed. How do you mount the partions? ie How do you tell the system which partion is /root and /home ect...

 

The drive geometry is almost identical and there is more than enough room on the new drive.

 

The drive being copied has 3 partitions root, swap and home.

 

Command to dup drives was:

 

dd if=/dev/hda of=/dev/sda

 

Information was copied fine but when I tried to do an upgrade with Mandrake 10.1 CE (Not really an upgrade but I thought this might allow me to label my partitions) It simply says no root partition found. Then it hangs.

 

Any idea's?

Link to comment
Share on other sites

Sure, you need to check your /etc/fstab file and insure the partition entries are correct (as compared to your new setup). You also need to check your /etc/lilo.conf file and make sure that the entries in there are correct as compared to your new partition setup. Then you need to execute the lilo command and install it to the mbr using any changes you made.

Link to comment
Share on other sites

Sure..

 

Here's what you do.. boot off of Mandrake CD1, hit F1 and type rescue. When the menu appears, you can select the option for going to the console. Do not attempt to install LILO again since you haven't checked the configuration. Once you get to the command line, you can type

 

chroot /mnt

 

The reason for this is since you are booting off of a CD, the root is the CD. So your root partition is actually in /mnt where /mnt exists on the CD. By typing chroot /mnt, you are pushing the root down one level and making the CD invisibile. Now you are operating at the level you would be if you booted off your hard drive.

 

Now you can use vi or some other editor to modify your /etc/lilo.conf for example. If you didn't use chroot, you would have to type

 

vi /mnt/etc/lilo.conf

 

but now you can type

 

vi /etc/lilo.conf

 

Saves a lot of confusion. If you don't get it, try sketching the paths on a piece of paper.

 

There is a program cfdisk that will allow you to view your partitions. Then you can modify your /etc/fstab and /etc/lilo.conf files to match.

 

Additionally, you can boot off of CD1 and proceed with a reinstall. When you get to the step for partitioning, you can select custom partitioning. At this point, you can view your partitions graphically. Might make it easier. Afterwards, you sijmply turn your computer off without proceeding with the install. Just don't save anything.. ;)

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...