Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@ubuntu:~$ sudo bash '/home/ubuntu/Downloads/bootinfoscript'
- Boot 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...
- Searching sda1 for information...
- Searching sda2 for information...
- Searching sda3 for information...
- Searching sda4 for information...
- Searching sda5 for information...
- Searching sda6 for information...
- Searching sdb for information...
- Finished. The results are in the file "RESULTS.txt"
- located in "/home/ubuntu/Downloads/".
- ubuntu@ubuntu:~$ sudo fdisk -l
- Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
- 255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk identifier: 0x9971d550
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2048 411647 204800 7 HPFS/NTFS/exFAT
- /dev/sda2 411648 1239291903 619440128 7 HPFS/NTFS/exFAT
- /dev/sda3 1859149824 1953523711 47186944 7 HPFS/NTFS/exFAT
- /dev/sda4 1239293950 1859149823 309927937 5 Extended
- Partition 4 does not start on physical sector boundary.
- /dev/sda5 1239293952 1842579455 301642752 83 Linux
- /dev/sda6 1842581504 1859149823 8284160 82 Linux swap / Solaris
- Partition table entries are not in disk order
- Disk /dev/sdb: 7739 MB, 7739768832 bytes
- 239 heads, 62 sectors/track, 1020 cylinders, total 15116736 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x20ac7dda
- This doesn't look like a partition table
- Probably you selected the wrong device.
- Device Boot Start End Blocks Id System
- /dev/sdb1 ? 3224498923 3657370039 216435558+ 7 HPFS/NTFS/exFAT
- /dev/sdb2 ? 3272020941 5225480974 976730017 16 Hidden FAT16
- /dev/sdb3 ? 0 0 0 6f Unknown
- /dev/sdb4 50200576 974536369 462167897 0 Empty
- Partition table entries are not in disk order
- ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
- ubuntu@ubuntu:~$ for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
- ubuntu@ubuntu:~$ sudo chroot /mnt
- root@ubuntu:/# grub-install /dev/sda
- Installation finished. No error reported.
- root@ubuntu:/# grub-install --recheck /dev/sda
- Installation finished. No error reported.
- root@ubuntu:/# update-grub
- Generating grub.cfg ...
- Found linux image: /boot/vmlinuz-3.2.0-29-generic
- Found initrd image: /boot/initrd.img-3.2.0-29-generic
- Found memtest86+ image: /boot/memtest86+.bin
- Found Windows 7 (loader) on /dev/sda1
- Found Windows 7 (loader) on /dev/sda2
- done
- root@ubuntu:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement