Sometimes, we may have problem to boot the linux system that is installed on the harddisk. For instance, after some administration tasks, or after installing an operating system on your hard disk, you may loose the ability to boot linux because another program has overwritten the MBR. In these cases, it’s useful to use SystemRescueCd to boot the linux system that install on the harddisk.
Linux provides an improved a root=<device> option. By default, this option is used to specify which is the root filesystem we want to boot from. After the kernel is initialized, it tries to mount the partition specified, and it executes /sbin/init which will initialize the system in the userspace. For instance, you can boot with a command line such as linux root=/dev/sda1 if linux is installed on the first partition of that hard disk. This command line is executed by a boot loader such as Grub.
SystemRescueCd-1.0.4-beta6 provides an improved support for the root=<device> option. When you boot SystemRescueCd with a command line such as rescuecd root=/dev/sda1, the system will first load the kernel modules from the initramdisk. These modules may be necessary for your system to boot, since they can provide support for IDE, SATA, SCSI disk controllers or alternative filesystems. Once the kernel modules are loaded, SystemRescueCd will mount the device specified with the root option, and try to execute /sbin/init, which starts your system. That way you have access to your normal operating system and you can repair it. This option also supports LVM disks. For instance, if your root filesystem is installed on an LVM logical volume, you can boot it with SystemRescueCd using a boot command line such as rescuecd root=/dev/VolGroup00/LogVol00.
The new SystemRescueCd version comes with support of the root=auto option. When it’s used, SystemRescueCd scans all the block devices such as the hard disks, andhard disks, and tries to find a linux filesystem that contains a linux operating system. To do that, it sees which partitions contain a file named /sbin/init. When in finds such a filesystem, it executes /sbin/init in a chroot, so it boots on that system. In other words, the root=auto option will just boot the first linux operating system installed on an hard disk of your computer. You don’t have to specify the boot device, which can be time consuming if you don’t remember which one it is.
Don’t forget that you need a 64bit kernel when you start a linux operating system using 64bits binaries. So if your linux operating system is a 64bits system, you will have to boot with either rescue64 or altker64.
1 user commented in " Use SystemRescueCd to boot a linux os from the hard disk "
Follow-up comment rss or Leave a Trackback[…] nuova release presenta: l’introduzione dell’opzione ‘root=auto‘, che consente l’avvio del sistema Linux installato sul disco rigido, e del tool di diagnostica […]