Pod tymi dwoma linkami znalazłem podobną procedurę.
Kod: Zaznacz cały
Boot Info Script 0.61 [1 April 2012]
============================= Boot Info Summary: ===============================
=> Windows is installed in the MBR of /dev/sda.
=> Grub2 (v1.99) is installed in the MBR of /dev/sdb and looks at sector 1 of
the same hard drive for core.img. core.img is at this location and looks
for (,msdos5)/boot/grub on this drive.
=> Syslinux MBR (3.61-4.03) is installed in the MBR of /dev/sdc.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP: NTFS
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files: /boot.ini /ntldr /NTDETECT.COM
sda2: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sda5: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows XP: NTFS
Boot sector info: According to the info in the boot sector, sda5 starts
at sector 63.
Operating System:
Boot files:
sdb1: __________________________________________________________________________
File system: ext4
Boot sector type: Grub2 (v1.97-1.98)
Boot sector info: Grub2 (v1.97-1.98) is installed in the boot sector of
sdb1 and looks at sector 22478 of the same hard drive
for core.img, but core.img can not be found at this
location.
Operating System:
Boot files: /grub/grub.cfg /grub/core.img
sdb2: __________________________________________________________________________
File system: Extended Partition
Boot sector type: -
Boot sector info:
sdb5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 12.04.2 LTS
Boot files: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img
sdb6: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System:
Boot files:
sdb7: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb3: __________________________________________________________________________
File system:
Boot sector type: -
Boot sector info:
Mounting failed: mount: unknown filesystem type ''
sdc1: __________________________________________________________________________
File system: vfat
Boot sector type: SYSLINUX 3.63 Debian-2008-07-15
Boot sector info: Syslinux looks at sector 23392 of /dev/sdc1 for its
second stage. The integrity check of Syslinux failed.
No errors found in the Boot Parameter Block.
Operating System:
Boot files: /syslinux/syslinux.cfg /ldlinux.sys
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Dysk /dev/sda: 160.0 GB, bajtów: 160041885696
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 19457, w sumie sektorów: 312581808
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sda1 * 63 81,915,434 81,915,372 7 NTFS / exFAT / HPFS
/dev/sda2 81,915,435 312,560,639 230,645,205 f W95 Extended (LBA)
/dev/sda5 81,915,498 312,560,639 230,645,142 7 NTFS / exFAT / HPFS
Drive: sdb _____________________________________________________________________
Dysk /dev/sdb: 320.1 GB, bajtów: 320072933376
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 38913, w sumie sektorów: 625142448
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdb1 * 2,048 194,559 192,512 83 Linux
/dev/sdb2 196,606 44,140,543 43,943,938 5 Extended
/dev/sdb5 196,608 19,726,335 19,529,728 83 Linux
/dev/sdb6 19,728,384 39,258,111 19,529,728 83 Linux
/dev/sdb7 39,260,160 44,140,543 4,880,384 82 Linux swap / Solaris
/dev/sdb3 44,140,544 625,139,711 580,999,168 b W95 FAT32
Drive: sdc _____________________________________________________________________
Dysk /dev/sdc: 16.0 GB, bajtów: 15999172608
głowic: 7, sektorów/ścieżkę: 7, cylindrów: 637722, w sumie sektorów: 31248384
Jednostka = sektorów, czyli 1 * 512 = 512 bajtów
Rozmiar sektora (logiczny/fizyczny) w bajtach: 512 / 512
Partition Boot Start Sector End Sector # of Sectors Id System
/dev/sdc1 * 8,064 31,248,383 31,240,320 c W95 FAT32 (LBA)
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/loop1 cc3ace00-05a5-41bc-9ef1-7a8281de0cbf ext3
/dev/sda1 68203BBC203B9054 ntfs
/dev/sda5 12B82638B8261AAD ntfs
/dev/sdb1 30cb5ee9-44bd-4b90-86b0-ebd1445632df ext4
/dev/sdb5 2283cf3e-4243-4e07-8e00-8a962a0f738e ext4
/dev/sdb6 688f8695-30e1-4b57-8903-6edc5add1cc0 ext4
/dev/sdb7 8dd3b83c-d5ef-4fd3-8565-45aabf3f7b71 swap
/dev/sdc1 413E-2BA6 vfat USB DISK
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdc1 /cdrom vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
================================ sda1/boot.ini: ================================
--------------------------------------------------------------------------------
[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /noexecute=optin /fastdetect
--------------------------------------------------------------------------------
============================= sdb1/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='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 2283cf3e-4243-4e07-8e00-8a962a0f738e
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 30cb5ee9-44bd-4b90-86b0-ebd1445632df
set locale_dir=($root)/grub/locale
set lang=pl_PL
insmod gettext
fi
terminal_output gfxterm
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 ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; 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=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
menuentry 'Ubuntu, za pomocą systemu Linux 3.2.0-41-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 30cb5ee9-44bd-4b90-86b0-ebd1445632df
linux /vmlinuz-3.2.0-41-generic-pae root=UUID=2283cf3e-4243-4e07-8e00-8a962a0f738e ro quiet splash $vt_handoff
initrd /initrd.img-3.2.0-41-generic-pae
}
menuentry 'Ubuntu, za pomocą systemu Linux 3.2.0-41-generic-pae (tryb ratunkowy)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 30cb5ee9-44bd-4b90-86b0-ebd1445632df
echo 'Wczytywanie systemu Linux 3.2.0-41-generic-pae...'
linux /vmlinuz-3.2.0-41-generic-pae root=UUID=2283cf3e-4243-4e07-8e00-8a962a0f738e ro recovery nomodeset
echo 'Wczytywanie początkowego dysku RAM...'
initrd /initrd.img-3.2.0-41-generic-pae
}
submenu "Previous Linux versions" {
menuentry 'Ubuntu, za pomocą systemu Linux 2.6.32-46-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 30cb5ee9-44bd-4b90-86b0-ebd1445632df
linux /vmlinuz-2.6.32-46-generic-pae root=UUID=2283cf3e-4243-4e07-8e00-8a962a0f738e ro quiet splash $vt_handoff
initrd /initrd.img-2.6.32-46-generic-pae
}
menuentry 'Ubuntu, za pomocą systemu Linux 2.6.32-46-generic-pae (tryb ratunkowy)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod gzio
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 30cb5ee9-44bd-4b90-86b0-ebd1445632df
echo 'Wczytywanie systemu Linux 2.6.32-46-generic-pae...'
linux /vmlinuz-2.6.32-46-generic-pae root=UUID=2283cf3e-4243-4e07-8e00-8a962a0f738e ro recovery nomodeset
echo 'Wczytywanie początkowego dysku RAM...'
initrd /initrd.img-2.6.32-46-generic-pae
}
}
### 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='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 30cb5ee9-44bd-4b90-86b0-ebd1445632df
linux16 /memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set=root 30cb5ee9-44bd-4b90-86b0-ebd1445632df
linux16 /memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Microsoft Windows XP Home Edition (on /dev/sda1)" --class windows --class os {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set=root 68203BBC203B9054
drivemap -s (hd0) ${root}
chainloader +1
}
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### 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.
### 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 ###
--------------------------------------------------------------------------------
=================== sdb1: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
0.092738152 = 0.099576832 grub/core.img 1
0.015157700 = 0.016275456 grub/grub.cfg 1
0.061084747 = 0.065589248 initrd.img-2.6.32-46-generic-pae 5
0.071290016 = 0.076547072 initrd.img-3.2.0-41-generic-pae 3
0.043939590 = 0.047179776 vmlinuz-2.6.32-46-generic-pae 2
0.087687492 = 0.094153728 vmlinuz-3.2.0-41-generic-pae 1
=========================== sdb5/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='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 2283cf3e-4243-4e07-8e00-8a962a0f738e
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=auto
load_video
insmod gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set=root 2283cf3e-4243-4e07-8e00-8a962a0f738e
set locale_dir=($root)/boot/grub/locale
set lang=pl_PL
insmod gettext
fi
terminal_output gfxterm
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 ###
function gfxmode {
set gfxpayload="${1}"
if [ "${1}" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}
if [ "${recordfail}" != 1 ]; then
if [ -e ${prefix}/gfxblacklist.txt ]; then
if hwmatch ${prefix}/gfxblacklist.txt 3; 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=keep
fi
else
set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "${linux_gfx_mode}" != "text" ]; then load_video; fi
### 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+ ###
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###
### BEGIN /etc/grub.d/30_uefi-firmware ###
### END /etc/grub.d/30_uefi-firmware ###
### 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.
### 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 ###
--------------------------------------------------------------------------------
=============================== sdb5/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/sdb5 during installation
UUID=2283cf3e-4243-4e07-8e00-8a962a0f738e / ext4 errors=remount-ro 0 1
/dev/sdb1 /boot ext4 defaults 0 2
# /home was on /dev/sdb6 during installation
UUID=688f8695-30e1-4b57-8903-6edc5add1cc0 /home ext4 defaults 0 2
# swap was on /dev/sdb7 during installation
UUID=8dd3b83c-d5ef-4fd3-8565-45aabf3f7b71 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
--------------------------------------------------------------------------------
=================== sdb5: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
4.380935669 = 4.703993856 boot/grub/core.img 1
4.363285065 = 4.685041664 boot/grub/grub.cfg 1
========================= sdc1/syslinux/syslinux.cfg: ==========================
--------------------------------------------------------------------------------
include menu.cfg
default vesamenu.c32
prompt 0
timeout 50
gfxboot bootlogo
--------------------------------------------------------------------------------
================= sdc1: Location of files loaded by Syslinux: ==================
GiB - GB File Fragment(s)
?? = ?? ldlinux.sys 1
?? = ?? syslinux/syslinux.cfg 1
?? = ?? syslinux/vesamenu.c32 1
============== sdc1: Version of COM32(R) files used by Syslinux: ===============
syslinux/vesamenu.c32 : COM32R module (v3.xx)
=============================== StdErr Messages: ===============================
lzma: Decoder error