chroot from CD to HD
anyone know what steps I need to take to change root from CD to HD when booting from CD ?
I am using mandrake 10.1 on CD. I have worked out how to do it for Fedora Core 3 but slightly different structure for mandrake. the HD is a USB drive so am trying to mount /dev/sda1 (boot) /dev/sda3 (root) Thanks |
Ok.. if /dev/sda1 is boot and /dev/sda3 is root do this:
mkdir /mnt/system mount /dev/sda3 /mnt/system mkdir /mnt/system/boot (only if it doesn't already exist) mount /dev/sda1 /mnt/system/boot mkdir /mnt/system/proc (only if it doesn't already exist) mount -t proc none /mnt/system/proc chroot /mnt/system /bin/bash source /etc/profile That should get you in.... |
All times are GMT -5. The time now is 02:39 AM. |