smallapple 写了:billbear
按你在6L 的信息看应该不能更改mbr的,这样吧,你把
代码: 全选
cd ~/桌面 && wget 'http://nchc.dl.sourceforge.net/project/bootinfoscript/bootinfoscript/0.55/boot_info_script055.sh' && sudo bash boot_info_script055.sh
那个 results贴出来后 PM billbear瞧瞧
results内容如下:
Boot Info Script 0.55 dated February 15th, 2010
============================= Boot Info Summary: ==============================
=> Windows is installed in the MBR of /dev/sda
sda1: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /boot.ini /bootmgr /Boot/BCD
/Windows/System32/winload.exe /boot/grub/core.img
sda2: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sda3: _________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:
sda4: _________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: _________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu natty (development
branch)
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
=========================== Drive/Partition Info: =============================
Drive: sda ___________________ _____________________________________________________
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
Partition Boot Start End Size Id System
/dev/sda1 * 63 99,495,926 99,495,864 7 HPFS/NTFS
/dev/sda2 99,495,936 116,273,151 16,777,216 7 HPFS/NTFS
/dev/sda3 116,273,152 284,055,551 167,782,400 7 HPFS/NTFS
/dev/sda4 284,057,598 312,580,095 28,522,498 5 Extended
/dev/sda5 284,057,600 312,580,095 28,522,496 83 Linux
blkid -c /dev/null: ____________________________________________________________
Device UUID TYPE LABEL
/dev/sda1 9494E0AE94E09450 ntfs
/dev/sda2 2E50D0E450D0B3B5 ntfs 本地磁盘
/dev/sda3 4686594F8659411B ntfs 本地磁盘
/dev/sda4: PTTYPE="dos"
/dev/sda5 cd5f666a-fcb4-4cae-9a13-4a42fca61cca ext4
/dev/sda: PTTYPE="dos"
============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options
/dev/sda5 / ext4 (rw,errors=remount-ro,commit=0)
================================ sda1/boot.ini: ================================
[boot loader]
timeout=0
default=c:\g2ldr.mbr
[operating systems]
C:\g2ldr.mbr="Grub4Dos"
=================== sda1: Location of files loaded by Grub: ===================
??GB: boot/grub/core.img
=========================== sda5/boot/grub/grub.cfg: ===========================
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi
function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}
function load_video {
insmod vbe
insmod vga
insmod video_bochs
insmod video_cirrus
}
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
set locale_dir=($root)/boot/grub/locale
set lang=zh_CN
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
clear
fi
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
set matches_file=${prefix}/gfxblacklist.txt
set class_match=3
if lua ${prefix}/hwmatch.lua; then
if [ ${match} = 0 ]; then
set linux_gfx_mode=keep
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu,Linux 2.6.38-5-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
linux /boot/vmlinuz-2.6.38-5-generic root=UUID=cd5f666a-fcb4-4cae-9a13-4a42fca61cca ro vga=792 quiet splash vt.handoff=7
initrd /boot/initrd.img-2.6.38-5-generic
}
menuentry 'Ubuntu,Linux 2.6.38-5-generic (恢复模式)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
set gfxpayload=$linux_gfx_mode
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
echo 'Loading Linux 2.6.38-5-generic ...'
linux /boot/vmlinuz-2.6.38-5-generic root=UUID=cd5f666a-fcb4-4cae-9a13-4a42fca61cca ro single vga=792
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.38-5-generic
}
### END /etc/grub.d/10_linux ###
### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###
### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos5)'
search --no-floppy --fs-uuid --set=root cd5f666a-fcb4-4cae-9a13-4a42fca61cca
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Windows 7 " {
insmod part_msdos
insmod ntfs
set root='(/dev/sda,msdos1)'
chainloader +1
}
### END /etc/grub.d/40_custom ###
### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
=============================== sda5/etc/fstab: ===============================
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda5 during installation
UUID=cd5f666a-fcb4-4cae-9a13-4a42fca61cca / ext4 errors=remount-ro 0 1
=================== sda5: Location of files loaded by Grub: ===================
149.8GB: boot/grub/core.img
156.5GB: boot/grub/grub.cfg
157.1GB: boot/initrd.img-2.6.38-5-generic
150.9GB: boot/vmlinuz-2.6.38-5-generic
157.1GB: initrd.img
150.9GB: vmlinuz