Czy chodziło Ci o to?
ubuntu@ubuntu:~$ cd Desktop
ubuntu@ubuntu:~/Desktop$ sudo chmod a+x boot_info_script.sh
ubuntu@ubuntu:~/Desktop$ sudo sh boot_info_script.sh
boot_info_script version: 0.60 [17 May 2011]
boot_info_script.sh: 353: Syntax error: "(" unexpected (expecting "fi")
ubuntu@ubuntu:~/Desktop$
– Dodane 25.08.2011 (Cz) 19:34 – Dobra Panowie poszło skorzystałem z tego
sudo bash ~/Desktop/boot_info_script*.sh
O to wynik
Boot Info Script 0.60 from 17 May 2011
============================= Boot Info Summary: ===============================
=> Grub2 (v1.97-1.98) is installed in the MBR of /dev/sda and looks at sector
1 of the same hard drive for core.img. core.img is at this location and
looks in partition 5 for (,msdos5)/boot/grub.
=> Grub2 (v1.97-1.98) 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 in partition 5 for (,msdos5)/boot/grub.
sda1: __________________________________________________________________________
File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files: /bootmgr /Boot/BCD
sda2: __________________________________________________________________________
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: /Windows/System32/winload.exe
sdb1: __________________________________________________________________________
File system: swap
Boot sector type: -
Boot sector info:
sdb2: __________________________________________________________________________
File system: Extended Partition
Boot sector type: Unknown
Boot sector info:
sdb5: __________________________________________________________________________
File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
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:
============================ Drive/Partition Info: =============================
Drive: sda _____________________________________________________________________
Dysk /dev/sda: 164.7 GB, bajtów: 164696555520
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 20023, w sumie sektorów: 321672960
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 * 2,048 206,847 204,800 7 NTFS / exFAT / HPFS
/dev/sda2 206,848 321,667,071 321,460,224 7 NTFS / exFAT / HPFS
Drive: sdb _____________________________________________________________________
Dysk /dev/sdb: 164.7 GB, bajtów: 164696555520
głowic: 255, sektorów/ścieżkę: 63, cylindrów: 20023, w sumie sektorów: 321672960
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 2,000,895 1,998,848 82 Linux swap / Solaris
/dev/sdb2 2,002,942 321,671,167 319,668,226 5 Extended
/dev/sdb5 2,002,944 31,999,999 29,997,056 83 Linux
/dev/sdb6 32,002,048 321,671,167 289,669,120 83 Linux
"blkid" output: ________________________________________________________________
Device UUID TYPE LABEL
/dev/loop0 squashfs
/dev/sda1 003EBD7F3EBD6DF2 ntfs Zastrzeżone przez system
/dev/sda2 46CAF476CAF46419 ntfs
/dev/sdb1 1bbf4c5c-5a71-4ee1-8b0c-9cf2e5125ede swap
/dev/sdb5 5dd2f6b8-e27a-49fa-816b-0297f5c03ef5 ext4
/dev/sdb6 c997db0a-4b43-4818-9a2a-34c25e16f963 ext4
================================ Mount points: =================================
Device Mount_Point Type Options
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sr0 /cdrom iso9660 (ro,noatime)
=========================== 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 part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 5dd2f6b8-e27a-49fa-816b-0297f5c03ef5
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 5dd2f6b8-e27a-49fa-816b-0297f5c03ef5
set locale_dir=($root)/boot/grub/locale
set lang=pl
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
### END /etc/grub.d/05_debian_theme ###
### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-23-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 5dd2f6b8-e27a-49fa-816b-0297f5c03ef5
linux /boot/vmlinuz-2.6.35-23-generic root=UUID=5dd2f6b8-e27a-49fa-816b-0297f5c03ef5 ro quiet splash
initrd /boot/initrd.img-2.6.35-23-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-23-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 5dd2f6b8-e27a-49fa-816b-0297f5c03ef5
echo 'Loading Linux 2.6.35-23-generic ...'
linux /boot/vmlinuz-2.6.35-23-generic root=UUID=5dd2f6b8-e27a-49fa-816b-0297f5c03ef5 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-23-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='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 5dd2f6b8-e27a-49fa-816b-0297f5c03ef5
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos5)'
search --no-floppy --fs-uuid --set 5dd2f6b8-e27a-49fa-816b-0297f5c03ef5
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###
### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7 (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 003ebd7f3ebd6df2
chainloader +1
}
### 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.
### 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).
#
#
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sdb5 during installation
UUID=5dd2f6b8-e27a-49fa-816b-0297f5c03ef5 / ext4 errors=remount-ro 0 1
# /home was on /dev/sdb6 during installation
UUID=c997db0a-4b43-4818-9a2a-34c25e16f963 /home ext4 defaults 0 2
# swap was on /dev/sdb1 during installation
UUID=1bbf4c5c-5a71-4ee1-8b0c-9cf2e5125ede none swap sw 0 0
--------------------------------------------------------------------------------
=================== sdb5: Location of files loaded by Grub: ====================
GiB - GB File Fragment(s)
13.258125305 = 14.235803648 boot/grub/core.img 1
3.205600739 = 3.441987584 boot/grub/grub.cfg 1
3.470764160 = 3.726704640 boot/initrd.img-2.6.35-23-generic 2
13.087387085 = 14.052474880 boot/vmlinuz-2.6.35-23-generic 1
3.470764160 = 3.726704640 initrd.img 2
13.087387085 = 14.052474880 vmlinuz 1
======================== Unknown MBRs/Boot Sectors/etc: ========================
Unknown BootLoader on sdb2
00000000 5a 2b d8 1a 52 1c d9 43 92 bf c8 98 70 62 4c cd |Z+..R..C....pbL.|
00000010 83 bc 68 9e ac 29 d8 dd d2 dd 24 1d 16 6a 97 4e |..h..)....$..j.N|
00000020 3e 2a 0e 6d 13 72 fe 2b 85 8c 94 93 74 3c 3f d8 |>*.m.r.+....t<?.|
00000030 ce d1 37 26 05 bc 8e 37 44 9c b9 05 79 71 3f 14 |..7&...7D...yq?.|
00000040 e5 30 43 c8 62 e4 9d 87 1a 2c 59 11 24 18 d3 16 |.0C.b....,Y.$...|
00000050 e2 62 ec 7c 21 48 51 c0 a7 42 18 83 00 49 cd e1 |.b.|!HQ..B...I..|
00000060 48 5c 9b c3 c5 2c 65 04 5a e5 1c 50 1d 47 f9 c6 |H\...,e.Z..P.G..|
00000070 c6 4e c6 12 bc 9c be 61 69 24 07 51 28 1e 83 55 |.N.....ai$.Q(..U|
00000080 46 4c cc a7 ac 8b 96 62 d8 3d 65 d9 9c e8 3f 51 |FL.....b.=e...?Q|
00000090 e7 7b 39 ee fd 08 3f 10 f6 4c 28 dc 15 87 39 be |.{9...?..L(...9.|
000000a0 a2 31 19 1d 17 f7 a5 7a 67 0a bb de 02 ba 55 f5 |.1.....zg.....U.|
000000b0 7b 94 06 15 74 07 f9 ce 29 77 f6 a6 37 0b 4f 63 |{...t...)w..7.Oc|
000000c0 bc de 2f 13 5e 4e 70 04 66 76 ef f3 a8 2f 7f a8 |../.^Np.fv.../..|
000000d0 00 00 00 00 49 1e b0 6c c1 ad 30 af ac 15 00 0c |....I..l..0.....|
000000e0 0c 54 50 24 49 cb 3d 32 b5 a5 a2 40 a9 9e 07 45 |.TP$I.=2...@...E|
000000f0 c3 81 1a 15 f8 8c 0d 29 81 98 a3 f8 d1 54 8a a0 |.......).....T..|
00000100 b4 3a 01 5d 12 81 02 88 47 e4 4d 56 e0 48 16 05 |.:.]....G.MV.H..|
00000110 14 a2 1e 32 9c 8d c3 40 9a 9c 60 b3 24 c6 49 56 |...2...@..`.$.IV|
00000120 8d 86 96 d9 e2 78 93 c1 37 16 e0 b7 08 c9 0a 14 |.....x..7.......|
00000130 66 e1 cd 54 c1 a4 70 4a 5f 40 b4 3d 8d c1 83 82 |f..T..pJ_@.=....|
00000140 e2 27 a8 61 56 a5 25 c2 4e 81 3a 15 a9 d6 42 14 |.'.aV.%.N.:...B.|
00000150 96 13 94 9b 81 61 2f cf 5d 99 46 22 1c 7e 1f ca |.....a/.].F".~..|
00000160 b3 a9 72 41 cd 36 f3 c6 57 4d a7 6a 1d 1c e2 5d |..rA.6..WM.j...]|
00000170 1a a9 93 dd 0f 54 c3 4a a1 c4 d5 42 95 4d 9a 25 |.....T.J...B.M.%|
00000180 c5 f4 12 de 2d 73 36 26 d5 ad ae 50 20 3e 47 9c |....-s6&...P >G.|
00000190 46 4a 8d b8 ad cb 13 09 e8 d8 ba 5d 42 80 9e 39 |FJ.........]B..9|
000001a0 55 49 13 c8 d3 5c a3 15 66 eb 1a 49 ee 83 ed 8a |UI...\..f..I....|
000001b0 0c 13 0a d1 a9 24 0a ea 08 93 12 13 49 a4 00 ac |.....$......I...|
000001c0 31 7c 83 fe ff ff 02 00 00 00 00 b8 c9 01 00 fe |1|..............|
000001d0 ff ff 05 fe ff ff ca bd c9 01 38 02 44 11 00 00 |..........8.D...|
000001e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200
========= Devices which don't seem to have a corresponding hard drive: =========
sdc sdd sde sdf