Moving a partition

Ken Moffat kmoffat at drizzle.com
Mon Sep 1 14:04:58 PDT 2008


Leon Goldstein wrote:
> Ken Moffat wrote:
>
>> I don't know what all those /'s are about, but ignore them.
>>
>> Ken Moffat wrote:
>>  
>>
>>> Any opinions on this procedure for moving a linux install
>>> from one partition (hda1) to another (sda4)?
>>>
>>> ////cd /mnt/sda4
>>>
>>> //dump -0uan -f - / | restore -r -f -
>>>
>>> //
>>> Then modify /etc/fstab.
>>>
>>> Seems simple... ha!
>>>
>>> Thanks for any clues.
>>>
>>> Ken
>>>
>>>
>>> //////
>>> _______________________________________________
>>> Linux-users mailing list ( Linux-users at linux-sxs.org )
>>> Unsub/Password/Etc: http://linux-sxs.org/mailman/listinfo/linux-users
>>>
>>> Need to chat further on this subject? Check out #linux-users on
>>> irc.linux-sxs.org !
>>>  
>>>   
>>
>>
>>  
>>
> Seems to me you would also need to reinstall  GRUB.
> One technique I have used is to boot Knoppix, chroot,and run
> grub-install.
> However, I'm not sure if this will point to the changed partition, so
> I'd check /boot/grub/menu.lst to see if the correct partition is listed.
>

I just ran this procedure (dump -0uan -f - / | restore -r -f - ),
figuring I had nothing to lose for the trying, and it seems to have
worked. The partition is bootable when I edit the grub lines, pointing
them to the proper partition. Now I just need to figure out which
menu.lst to actually edit to make the changes permanent. Apparently the
grub install is not the one on hda1 (which I have edited), and there are
a couple of other possibilities, so will look around for the proper
menu.lst to edit.

Or, maybe I'll try "grub-install /dev/hda" from the new partition. Not
sure which would be appropriate, but I'll stumble on....

Ken






More information about the Linux-users mailing list