Mailinglist Archive: opensuse (2831 mails)

< Previous Next >
Re: [SLE] General question about the rescue system
  • From: Anders Johansson <andjoh@xxxxxxxxxx>
  • Date: Fri, 21 Jul 2006 21:24:06 +0200
  • Message-id: <200607212124.06602.andjoh@xxxxxxxxxx>
On Friday 21 July 2006 20:27, Bruce Marshall wrote:
> Used to be that if you wanted to do major things to your normal system
> while it was 'broken', you could:
>
> 1) boot the rescue system from CD or DVD 1
>
> 2) mount your root partition on /mnt
>
> 3) chroot /mnt
>
> 4) Mount your boot partition on /boot
>
> and there you would for most purposes have your running system. You could
> change your fstab or re-install grub or whatever that might be needed.
>
> However, with 10.1 and the udev system, the devices are no longer
> available to you after the chroot. If you do the first 3 steps above,
> there is no way to do step 4 because there are no hard drives 'seen' by the
> system. Their definitions are all left behind in the /dev/ of the rescue
> system.
>
> Is there a way around this? One could copy the /dev from the rescue system
> to the normal system but I am not sure that would work or whether it would
> be a good idea. A quick look in the starter manual shows no reference to
> the rescue system.
>
> On a 'lab rat', I just did copy the /dev/* from the rescue system over to
> the normal system (savi9ng the normal /dev first) and it *does* work.
>
> But there must be a better way.

Standard procedure is

mount -o bind /dev /mnt/dev
mount -o bind /proc /mnt/proc
mount -o bind /sys /mnt/sys

before you do the chroot


--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx


< Previous Next >
Follow Ups
References