Linux does not start properly. Solution

  

If you are using LILO to introduce a loader, you can use a powerful tool called mkrescue. This tool is typically used to create boot floppy disks, but it can also be used to create ISOs. Its usage is as follows.

If you use Mandriva:

mkrescue --iso --initrd /boot/initrd-KERNEL-NUMBER.img --

kernel /boot/vmlinuz-KERNEL- NUMBER

Note: KERNEL-NUMBER here refers to the version number of the kernel.

If you are not sure about the kernel version, you can find the intrd and vmlinuz numbers with the following command:

uname –r

After running this command, you will be A rescue.iso file was found in the directory where the mkrescue command was run. Now you can create a mirror with the following command:

First, check the device number of the CD:

cdrecord –scanbus

Then use the following command to create the image:

cdrecord dev=0,0,0 rescue.iso

Note: dev=0,0,0 here is the number found with the scanbus command above.

If you use Slackware, use these steps to create a boot CD:

mkrescue –iso

Note: Slackware automatically knows which kernel to put in the ISO.

Then, you can create a mirror in the same way that you create a Mandriva image.

SystemRescueCD

SystemRescueCD is a Linux system stored on a bootable CD to repair systems and data after a system crash. It also makes it easy to perform administrative tasks on your computer, such as creating and editing hard disk partitions. It consists of many system utilities (parted, partimage, fstools) and basic utilities (editor, midnight commander file manager and network tools).

It's very easy to use. Just boot from the CD and you can do everything, just like booting from the hard drive. The system kernel supports most important file systems (ext2/ext3, reiserfs, reiser4, xfs, jfs, vfat, ntfs, iso9660) and networks (samba and nfs).

SystemRescueCD is probably the best rescue system on the market. Not only can you use this rescue method from the CD, you can also use this rescue system on a USB flash drive.

To create a SystemRescueCD on a USB stick, you need more than 256MB of disk space. Download the iso image from Sourceforge and burn it to the disc. Now you must create a file system on the USB stick. Use the dmesg command to find the U disk name, and then erase the U disk with the following code:

dd if=/dev/zero of=/dev/sda

Here /dev/sda is The name of the U disk.

Now install the master boot record on the USB drive:

install-mbr /dev/sda

or

install-mbr --force /dev /sda (if the command is wrong)

Now create a scatter partition:

parted /dev/sda

(parted) mkpartfs primary fat32 0 100% //use help or help Mkpartfs command to see help

(parted) print //check if the write was ok

(parted) quit

Now that the file system has been created, then SystemRescueCD will be used The files in the mirrored CD are copied to the USB flash drive. Make sure that you copy the same file level as on the CD.

Now, the U disk can be started with the sysLinux command:

sysLinux /dev/sda1

Here /dev/sda1 is the name of the disk.

Now you have built a rescue USB drive that you can carry with you all day. Since you use Linux, you don't need to use it often.

Copyright © Windows knowledge All Rights Reserved