Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ubuntu@ubuntu:~$ sudo fdisk -l
- Disk /dev/sda: 122.9 GB, 122942324736 bytes
- 16 heads, 63 sectors/track, 238216 cylinders, total 240121728 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: 0xf96df96d
- Device Boot Start End Blocks Id System
- /dev/sda1 1071 197508991 98753960+ 7 HPFS/NTFS/exFAT
- /dev/sda3 197509118 240119807 21305345 5 Extended
- /dev/sda5 234620928 240119807 2749440 82 Linux swap / Solaris
- /dev/sda6 230430720 234620927 2095104 82 Linux swap / Solaris
- /dev/sda7 197509120 226238463 14364672 83 Linux
- /dev/sda8 226240512 230428671 2094080 82 Linux swap / Solaris
- Partition table entries are not in disk order
- Disk /dev/sdb: 4041 MB, 4041211904 bytes
- 128 heads, 63 sectors/track, 978 cylinders, total 7892992 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: 0x04dd5721
- Device Boot Start End Blocks Id System
- /dev/sdb1 * 63 7892991 3946464+ b W95 FAT32
- ubuntu@ubuntu:~$ sudo mount /dev/sda7 /mnt
- ubuntu@ubuntu:~$ for i in /dev /dev/pts /proc /sys; do sudo mount -B $i /mnt$i; done
- ubuntu@ubuntu:~$ sudo chroot /mnt/
- root@ubuntu:/# update-grub
- Generating grub.cfg ...
- Found linux image: /boot/vmlinuz-3.0.0-12-generic
- Found initrd image: /boot/initrd.img-3.0.0-12-generic
- Found memtest86+ image: /boot/memtest86+.bin
- done
- root@ubuntu:/# grub-install /dev/sda7
- /usr/sbin/grub-setup: warn: Attempting to install GRUB to a partitionless disk or to a partition. This is a BAD idea..
- /usr/sbin/grub-setup: warn: Embedding is not possible. GRUB can only be installed in this setup by using blocklists. However, blocklists are UNRELIABLE and their use is discouraged..
- /usr/sbin/grub-setup: error: will not proceed with blocklists.
- root@ubuntu:/# grub-install /dev/sda
- /usr/sbin/grub-setup: warn: Sector 32 is already in use by FlexNet; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
- Installation finished. No error reported.
- root@ubuntu:/# grub-install --recheck /dev/sda
- sda sda1 sda3 sda5 sda6 sda7 sda8
- root@ubuntu:/# grub-install --recheck /dev/sda
- sda sda1 sda3 sda5 sda6 sda7 sda8
- root@ubuntu:/# grub-install --recheck /dev/sda
- /usr/sbin/grub-setup: warn: Sector 32 is already in use by FlexNet; avoiding it. This software may cause boot or other problems in future. Please ask its authors not to store data in the boot track.
- Installation finished. No error reported.
- root@ubuntu:/# exit
- ubuntu@ubuntu:~$ for i in /sys /proc /dev/pts /dev; do sudo umount /mnt$i; done
- ubuntu@ubuntu:~$ sudo umount /mnt
- ubuntu@ubuntu:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement