ubuntu@ubuntu:~$ sudo su -root@ubuntu:~# cd /home/ubunturoot@ubuntu:/home/ubuntu# ls -altotal 28drwxr-xr-x 16 ubuntu ubuntu 460 sty 1 13:24 .drwxr-xr-x 1 root root 60 sty 1 2016 ..-rw------- 1 ubuntu ubuntu 10 sty 1 13:24 .bash_history-rw-r--r-- 1 ubuntu ubuntu 220 sty 1 2016 .bash_logout-rw-r--r-- 1 ubuntu ubuntu 3637 sty 1 2016 .bashrcdrwx------ 12 ubuntu ubuntu 280 sty 1 13:23 .cachedrwxrwxr-x 14 ubuntu ubuntu 320 sty 1 13:16 .configdrwx------ 3 ubuntu ubuntu 60 sty 1 2016 .dbusdrwxr-xr-x 2 ubuntu ubuntu 80 sty 1 13:16 Desktopdrwxr-xr-x 2 ubuntu ubuntu 40 sty 1 13:15 Dokumentydrwx------ 3 ubuntu ubuntu 60 sty 1 13:15 .gconf-rw------- 1 ubuntu ubuntu 318 sty 1 13:15 .ICEauthoritydrwx------ 3 ubuntu ubuntu 60 sty 1 13:14 .localdrwx------ 4 ubuntu ubuntu 80 sty 1 13:22 .mozilladrwxr-xr-x 2 ubuntu ubuntu 40 sty 1 13:15 Muzykadrwxr-xr-x 2 ubuntu ubuntu 40 sty 1 13:15 Obrazydrwxr-xr-x 3 ubuntu ubuntu 80 sty 1 13:23 Pobrane-rw-r--r-- 1 ubuntu ubuntu 675 sty 1 2016 .profiledrwxr-xr-x 2 ubuntu ubuntu 40 sty 1 13:15 Publicznydrwxr-xr-x 2 ubuntu ubuntu 40 sty 1 13:15 Szablonydrwxr-xr-x 2 ubuntu ubuntu 40 sty 1 13:15 Wideo-rw------- 1 ubuntu ubuntu 51 sty 1 13:15 .Xauthority-rw------- 1 ubuntu ubuntu 711 sty 1 13:15 .xsession-errorsroot@ubuntu:/home/ubuntu# cd Pobraneroot@ubuntu:/home/ubuntu/Pobrane# clearroot@ubuntu:/home/ubuntu/Pobrane# ls -altotal 36drwxr-xr-x 3 ubuntu ubuntu 80 sty 1 13:23 .drwxr-xr-x 16 ubuntu ubuntu 460 sty 1 13:24 ..drwxrwxr-x 2 ubuntu ubuntu 100 sty 1 13:23 bootinfoscript-061-rw-rw-r-- 1 ubuntu ubuntu 36345 sty 1 13:23 bootinfoscript-061.tar.gzroot@ubuntu:/home/ubuntu/Pobrane# cd bootinfoscript-061/root@ubuntu:/home/ubuntu/Pobrane/bootinfoscript-061# ./bootinfoscriptBoot Info Script 0.61 [1 April 2012]"gawk" could not be found, using "busybox awk" instead.This may lead to unreliable results.Identifying MBRs...Computing Partition Table of /dev/sda...Computing Partition Table of /dev/sdb...Searching sda1 for information... Searching sda2 for information... Searching sda3 for information... Searching sdb1 for information... Searching sdb2 for information... Searching sdb5 for information... Searching sdb6 for information... Finished. The results are in the file "RESULTS.txt"located in "/home/ubuntu/Pobrane/bootinfoscript-061/".root@ubuntu:/home/ubuntu/Pobrane/bootinfoscript-061# ls -al Igrep RESULTS.txtls: cannot access Igrep: No such file or directory-rw-r--r-- 1 root root 13963 sty 1 13:29 RESULTS.txtroot@ubuntu:/home/ubuntu/Pobrane/bootinfoscript-061# ls -al total 140drwxrwxr-x 2 ubuntu ubuntu 120 sty 1 13:29 .drwxr-xr-x 3 ubuntu ubuntu 80 sty 1 13:23 ..-rwxr-xr-x 1 ubuntu ubuntu 113317 kwi 1 2012 bootinfoscript-rw-r--r-- 1 ubuntu ubuntu 8179 kwi 1 2012 CHANGELOG-rw-r--r-- 1 ubuntu ubuntu 3341 gru 25 2011 README-rw-r--r-- 1 root root 13963 sty 1 13:29 RESULTS.txtroot@ubuntu:/home/ubuntu/Pobrane/bootinfoscript-061# ls -al Igrep RESULTS.txtls: cannot access Igrep: No such file or directory-rw-r--r-- 1 root root 13963 sty 1 13:29 RESULTS.txtroot@ubuntu:/home/ubuntu/Pobrane/bootinfoscript-061#
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 in partition 112 for .sda1: __________________________________________________________________________ File system: ntfs Boot sector type: Windows Vista/7: NTFS Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files: /bootmgr /Boot/BCDsda2: __________________________________________________________________________ File system: ntfs Boot sector type: Windows Vista/7: NTFS Boot sector info: No errors found in the Boot Parameter Block. Operating System: Windows 7 Boot files: /Windows/System32/winload.exesda3: __________________________________________________________________________ File system: ntfs Boot sector type: Windows Vista/7: NTFS Boot sector info: No errors found in the Boot Parameter Block. Operating System: Boot files: sdb1: __________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Ubuntu 14.04.3 LTS Boot files: /boot/grub/grub.cfg /etc/fstabsdb2: __________________________________________________________________________ File system: Extended Partition Boot sector type: - Boot sector info: sdb5: __________________________________________________________________________ File system: swap Boot sector type: - Boot sector info: sdb6: __________________________________________________________________________ File system: ext4 Boot sector type: - Boot sector info: Operating System: Boot files: ============================ Drive/Partition Info: =============================Drive: sda _____________________________________________________________________Disk /dev/sda: 1000.2 GB, 1000204886016 bytes255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 4096 bytesPartition 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 204,802,047 204,595,200 7 NTFS / exFAT / HPFS/dev/sda3 204,802,048 1,953,521,663 1,748,719,616 7 NTFS / exFAT / HPFSGUID Partition Table detected, but does not seem to be used.Partition Start Sector End Sector # of Sectors SystemDrive: sdb _____________________________________________________________________Disk /dev/sdb: 250.1 GB, 250059350016 bytes255 heads, 63 sectors/track, 30401 cylinders, total 488397168 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesPartition Boot Start Sector End Sector # of Sectors Id System/dev/sdb1 * 2,048 44,922,879 44,920,832 83 Linux/dev/sdb2 44,924,926 488,396,799 443,471,874 5 Extended/dev/sdb5 44,924,928 49,219,583 4,294,656 82 Linux swap / Solaris/dev/sdb6 49,221,632 488,396,799 439,175,168 83 Linux"blkid" output: ________________________________________________________________Device UUID TYPE LABEL/dev/loop0 squashfs /dev/sda1 58B644FFB644DF5E ntfs Zastrzeżone przez system/dev/sda2 829C524F9C523E3B ntfs /dev/sda3 48ECF4EEECF4D762 ntfs /dev/sdb1 013d313d-b5e9-48d0-b5ce-b171b853ae50 ext4 /dev/sdb5 d37e1d3f-292c-4b0a-9ea0-360927e7bfeb swap /dev/sdb6 fd501135-f81b-494d-86de-123107ed1d1b ext4 /dev/sr0 iso9660 Ubuntu 14.04.3 LTS amd64================================ Mount points: =================================Device Mount_Point Type Options/dev/loop0 /rofs squashfs (ro,noatime)/dev/sr0 /cdrom iso9660 (ro,noatime)=========================== sdb1/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_envfiif [ "${next_entry}" ] ; then set default="${next_entry}" set next_entry= save_env next_entry set boot_once=trueelse set default="0"fiif [ x"${feature_menuentry_id}" = xy ]; then menuentry_id_option="--id"else menuentry_id_option=""fiexport menuentry_id_optionif [ "${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=truefifunction 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 { if [ x$feature_all_video_module = xy ]; then insmod all_video else insmod efi_gop insmod efi_uga insmod ieee1275_fb insmod vbe insmod vga insmod video_bochs insmod video_cirrus fi}if [ x$feature_default_font_path = xy ] ; then font=unicodeelseinsmod part_msdosinsmod ext2set root='hd1,msdos1'if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 013d313d-b5e9-48d0-b5ce-b171b853ae50else search --no-floppy --fs-uuid --set=root 013d313d-b5e9-48d0-b5ce-b171b853ae50fi font="/usr/share/grub/unicode.pf2"fiif loadfont $font ; then set gfxmode=auto load_video insmod gfxterm set locale_dir=$prefix/locale set lang=pl_PL insmod gettextfiterminal_output gfxtermif [ "${recordfail}" = 1 ] ; then set timeout=30else if [ x$feature_timeout_style = xy ] ; then set timeout_style=menu set timeout=10 # Fallback normal timeout code in case the timeout_style feature is # unavailable. else set timeout=10 fifi### END /etc/grub.d/00_header ###### BEGIN /etc/grub.d/05_debian_theme ###set menu_color_normal=white/blackset menu_color_highlight=black/light-grayif background_color 44,0,30,0; then clearfi### 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 fielse set linux_gfx_mode=textfiexport linux_gfx_modemenuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-013d313d-b5e9-48d0-b5ce-b171b853ae50' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='hd1,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 013d313d-b5e9-48d0-b5ce-b171b853ae50 else search --no-floppy --fs-uuid --set=root 013d313d-b5e9-48d0-b5ce-b171b853ae50 fi linux /boot/vmlinuz-3.19.0-25-generic root=UUID=013d313d-b5e9-48d0-b5ce-b171b853ae50 ro quiet splash $vt_handoff initrd /boot/initrd.img-3.19.0-25-generic}submenu 'Opcje zaawansowane dla systemu Ubuntu' $menuentry_id_option 'gnulinux-advanced-013d313d-b5e9-48d0-b5ce-b171b853ae50' { menuentry 'Ubuntu, za pomocą systemu Linux 3.19.0-25-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-25-generic-advanced-013d313d-b5e9-48d0-b5ce-b171b853ae50' { recordfail load_video gfxmode $linux_gfx_mode insmod gzio insmod part_msdos insmod ext2 set root='hd1,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 013d313d-b5e9-48d0-b5ce-b171b853ae50 else search --no-floppy --fs-uuid --set=root 013d313d-b5e9-48d0-b5ce-b171b853ae50 fi echo 'Wczytywanie systemu Linux 3.19.0-25-generic...' linux /boot/vmlinuz-3.19.0-25-generic root=UUID=013d313d-b5e9-48d0-b5ce-b171b853ae50 ro quiet splash $vt_handoff echo 'Wczytywanie początkowego dysku RAM...' initrd /boot/initrd.img-3.19.0-25-generic } menuentry 'Ubuntu, with Linux 3.19.0-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-25-generic-recovery-013d313d-b5e9-48d0-b5ce-b171b853ae50' { recordfail load_video insmod gzio insmod part_msdos insmod ext2 set root='hd1,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 013d313d-b5e9-48d0-b5ce-b171b853ae50 else search --no-floppy --fs-uuid --set=root 013d313d-b5e9-48d0-b5ce-b171b853ae50 fi echo 'Wczytywanie systemu Linux 3.19.0-25-generic...' linux /boot/vmlinuz-3.19.0-25-generic root=UUID=013d313d-b5e9-48d0-b5ce-b171b853ae50 ro recovery nomodeset echo 'Wczytywanie początkowego dysku RAM...' initrd /boot/initrd.img-3.19.0-25-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,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 013d313d-b5e9-48d0-b5ce-b171b853ae50 else search --no-floppy --fs-uuid --set=root 013d313d-b5e9-48d0-b5ce-b171b853ae50 fi knetbsd /boot/memtest86+.elf}menuentry 'Memory test (memtest86+, serial console 115200)' { insmod part_msdos insmod ext2 set root='hd1,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd1,msdos1 --hint-efi=hd1,msdos1 --hint-baremetal=ahci1,msdos1 013d313d-b5e9-48d0-b5ce-b171b853ae50 else search --no-floppy --fs-uuid --set=root 013d313d-b5e9-48d0-b5ce-b171b853ae50 fi linux16 /boot/memtest86+.bin console=ttyS0,115200n8}### END /etc/grub.d/20_memtest86+ ###### BEGIN /etc/grub.d/30_os-prober ###menuentry 'Windows 7 (loader) (na /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-58B644FFB644DF5E' { insmod part_msdos insmod ntfs set root='hd0,msdos1' if [ x$feature_platform_search_hint = xy ]; then search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1 58B644FFB644DF5E else search --no-floppy --fs-uuid --set=root 58B644FFB644DF5E fi parttool ${root} hidden- chainloader +1}set timeout_style=menuif [ "${timeout}" = 0 ]; then set timeout=10fi### 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 ${config_directory}/custom.cfg ]; then source ${config_directory}/custom.cfgelif [ -z "${config_directory}" -a -f $prefix/custom.cfg ]; then source $prefix/custom.cfg;fi### END /etc/grub.d/41_custom ###--------------------------------------------------------------------------------=============================== sdb1/etc/fstab: ================================--------------------------------------------------------------------------------# /etc/fstab: static file system information.## Use 'blkid' 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># / was on /dev/sdb1 during installationUUID=013d313d-b5e9-48d0-b5ce-b171b853ae50 / ext4 errors=remount-ro 0 1# /home was on /dev/sdb6 during installationUUID=fd501135-f81b-494d-86de-123107ed1d1b /home ext4 defaults 0 2# swap was on /dev/sdb5 during installationUUID=d37e1d3f-292c-4b0a-9ea0-360927e7bfeb none swap sw 0 0--------------------------------------------------------------------------------=================== sdb1: Location of files loaded by Grub: ==================== GiB - GB File Fragment(s)=============================== StdErr Messages: ===============================cat: /tmp/BootInfo-vxkLIyI8/Tmp_Log: No such file or directory No volume groups found
sdb nie uruchamia linuxa
linux /boot/vmlinuz-3.19.0-25-generic root=UUID=013d313d-b5e9-48d0-b5ce-b171b853ae50 ro quiet splash $vt_handoff
grep "menuentry " /boot/grub/grub.cfg
ps@ps-desktop:~$ grep "menuentry " /boot/grub/grub.cfgmenuentry 'Ubuntu' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-013d313d-b5e9-48d0-b5ce-b171b853ae50' { menuentry 'Ubuntu, za pomocą systemu Linux 3.19.0-25-generic' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-25-generic-advanced-013d313d-b5e9-48d0-b5ce-b171b853ae50' { menuentry 'Ubuntu, with Linux 3.19.0-25-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.19.0-25-generic-recovery-013d313d-b5e9-48d0-b5ce-b171b853ae50' {menuentry 'Memory test (memtest86+)' {menuentry 'Memory test (memtest86+, serial console 115200)' {menuentry 'Windows 7 (loader) (na /dev/sda1)' --class windows --class os $menuentry_id_option 'osprober-chain-58B644FFB644DF5E' {ps@ps-desktop:~$
GRUB_DEFAULT="Windows 7 (loader) (na /dev/sda1)"
sudo update-grub