Article title: LILO and boot floppy disk usage summary. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
Software Environment: Redhat Linux 5.2
Usage:
A. remove LILO from the master boot record and re-store the original windows MBR
1. c:> fdisk/mbr
2. #/sbin/lilo-u/dev/hda
3. # dd if =/boot/boot1_300 of =/dev/hda bs = 446 count = 1
4. # cat/boot/boot0000300>/dev/hda
Note: When you install windows 95 and then install Linux, the/boot/boot0000300 is your original windows 95 MBR.
B. restore LILO to MBR
1. start to boot with a floppy disk or CD:
Boot: vmlinuz root =/dev/hdXY (for example, hda1)
Run after startup #/sbin/lilo
2. after starting with two floppy disks:
# Mount-t ext2/dev/hda1/mnt
# Ln-s/mnt/boot
# Ln-s/mnt/etc/lilo. conf/etc/lilo. conf
#/Mnt/sbin/lilo
C. copy LILO to a floppy disk
1./sbin/lilo-B/dev/fd0
2. boot the disk to boot with Redhat:
Boot: vmlinuz root =/dev/hdXY (hdXY is your root partition)
Update/etc/lilo. conf
Root =/dev/fd0
Boot =/dev/fd0
Run: #/sbin/lilo-v
D. create a Redhat Linux boot disk.
# Mkbootdisk -- device/dev/fd0 2.0.36-3
E. copy the kernel to a floppy disk so that the floppy disk can boot Linux separately and mount the root file system on the hard disk.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service