Linux boot fix and startup item modification

Source: Internet
Author: User
Linux boot fix and boot item modification linux boot fix: I believe all the friends who have installed Ubuntu9.10 have LiveCD installation discs. today we will use Ubuntu9.10 LiveCD to fix grub2 boot. Start the Ubuntu9.10 disc and select LiveCD mode to go to it...
Linux boot fix and boot item modification linux boot fix: I believe all the friends who have installed Ubuntu 9.10 have LiveCD installation discs. today we will use Ubuntu 9.10 LiveCD to fix grub2 boot. Start the Ubuntu 9.10 CD, select the LiveCD mode, and then enter the terminal. enter the following command on the terminal: www.2cto.com sudo fdisk-l (note that it is a lowercase L, not a number 1, this step is used to determine the location of the partition where Ubuntu 9.10 is installed on the computer. after the input, a message similar to the following will be output. find the line with ID 83 and remember the/dev/sdaX situation, for example, if your computer is/dev/sda7, you can change it as an example.) Disk/dev/sda: 80.0 GB, 80026361856 bytes 255 heads, 63 sectors/track, 9729 cylinders Units = cylinders of 16065*512 = 8225280 bytes Disk identifier: 0x624aa2e0 Device Boot Start End Blocks Id Syste M/dev/sda1 * 1 1388 11149078 + 7 HPFS/NTFS/dev/sda2 1389 3825 19575202 + 7 HPFS/NTFS www.2cto.com/dev/sda3 3826 9729 47423880 f W95 Ext 'd (LBA) /dev/sda5 3826 5851 16273813 + B W95 FAT32/dev/sda6 5852 8323 19856308 + B W95 FAT32/dev/sda7 8324 9598 10241406 83 Linux/dev/sda8 9599 9729 82 Linux swap/Solaris and then enter sudo-I (this step is used to obtain the root permission, you do not need to enter a password.) then enter mkdir/media/tempdir (this is used to create a folder t. Empdir is used to mount the sda7 folder. you can set the folder name based on your interests) then enter mount/dev/sda7/media/tempdir (mount sda7 to the tempdir folder) to enter the most critical and exciting time for this restoration. enter the following command on the terminal: grub-install -- root-directory =/media/tempdir/dev/sda (this step is used to reinstall the master boot record [MBR] from grub2 to hard disk, which is very important !) After entering www.2cto.com, if the "Installation finished. No Error Reported." character appears, the operation is successful. But now only half of the successful ones can be completely successful with the following operations. Restart your computer and you will be able to see the grub2 boot interface. However, it can only be used to guide Ubuntu 9.10, but Windows 7 cannot be guided for the moment. at this time, you can choose to enter Ubuntu 9.10, find and start the terminal, enter the following command in the terminal: sudo update-grub2 according to the prompt to enter the password, if successful, the following similar statements will appear, it means the success. Grub. cfg... found Debian background: moreblue-orbit-grub.png Found linux image:/boot/vmlinuz-2.6.31-15-generic Found initrd image:/boot/initrd. img-2.6.31-15-generic Found memtest86 + image:/boot/memtest86 +. bin Found Windows 7 (loader) on/dev/sda1 done www.2cto.com, you can install the grub-pc with the Ubuntu logo. after installation, enter the sudo update-grub2 to update grub2. Linux startup item modification: sudo gedit/boot/grub. cfg modify startup item; sudo rm/usr/share/sounds/ubuntu/stereo/desktop-login.ogg delete boot sound; ctrl + alt + t open Terminal Command;
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.