|
Size: 627
Comment: fix link
|
Size: 627
Comment: converted to 1.6 markup
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 14: | Line 14: |
| Change the ["root"] of the system, using ["chroot"]. | Change the [[root]] of the system, using [[chroot]]. |
| Line 19: | Line 19: |
| And then modify ["Grub"] config files in order to boot from your new hdg drive. And execute install-grub | And then modify [[Grub]] config files in order to boot from your new hdg drive. And execute install-grub |
| Line 21: | Line 21: |
| For ["LILO"], execute lilo to save the changes in the MBR of your new /dev/hdg drive | For [[LILO]], execute lilo to save the changes in the MBR of your new /dev/hdg drive |
| Line 23: | Line 23: |
| If you had a ["Swap"] partition, be sure of having one now in your new drive. | If you had a [[Swap]] partition, be sure of having one now in your new drive. |
To move Debian from a HardDisk partition to other one.
mount /dev/hdg5 /mnt; mount /dev/hdg2 /mnt/boot/ .... and so on
then..
tar cvf - / || (cd ''mnt''; tar xvf -)
Change the root of the system, using chroot.
chroot /mnt
And then modify Grub config files in order to boot from your new hdg drive. And execute install-grub
For LILO, execute lilo to save the changes in the MBR of your new /dev/hdg drive
If you had a Swap partition, be sure of having one now in your new drive.
edit /etc/fstab to mount /dev/hdg5 as your new /
