Code:
ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt && sudo mount --bind /dev /mnt/dev && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys && sudo mount --bind /dev/pts /mnt/dev/pts && sudo cp /etc/resolv.conf /mnt/etc/resolv.conf && sudo chroot /mnt
mount: /dev/sda1 already mounted or /mnt busy
mount: according to mtab, /dev/sda1 is already mounted on /mnt
ubuntu@ubuntu:~$ clear
ubuntu@ubuntu:~$ ls /boot
abi-2.6.38-8-generic memtest86+_multiboot.bin
config-2.6.38-8-generic System.map-2.6.38-8-generic
grub vmcoreinfo-2.6.38-8-generic
memtest86+.bin
ubuntu@ubuntu:~$ ls /boot/grub
gfxblacklist.txt grubenv
ubuntu@ubuntu:~$ sudo mv /boot/grub /boot/grub_backup
ubuntu@ubuntu:~$ sudo mkdir /boot/grub
ubuntu@ubuntu:~$ ls /boot
abi-2.6.38-8-generic grub_backup System.map-2.6.38-8-generic
config-2.6.38-8-generic memtest86+.bin vmcoreinfo-2.6.38-8-generic
grub memtest86+_multiboot.bin
ubuntu@ubuntu:~$ ls /boot/grub
ubuntu@ubuntu:~$ sudo apt-get --purge remove startupmanager
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
ubuntu@ubuntu:~$ sudo apt-get --purge remove startupmanager
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package startupmanager
ubuntu@ubuntu:~$ sudo apt-get --purge remove grub-pc grub-common
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
grub-common* grub-gfxpayload-lists* grub-pc*
0 upgraded, 0 newly installed, 3 to remove and 256 not upgraded.
After this operation, 7,803 kB disk space will be freed.
Do you want to continue [Y/n]? y
(Reading database ... 134325 files and directories currently installed.)
Removing grub-gfxpayload-lists ...
Removing grub-pc ...
Purging configuration files for grub-pc ...
Removing grub-common ...
Purging configuration files for grub-common ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Processing triggers for ureadahead ...
ubuntu@ubuntu:~$ sudo apt-get install grub
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
grub-common
Suggested packages:
grub-legacy-doc mdadm multiboot-doc grub-emu xorriso
The following NEW packages will be installed:
grub grub-common
0 upgraded, 2 newly installed, 0 to remove and 256 not upgraded.
Need to get 2,850 kB of archives.
After this operation, 6,947 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ natty/main grub-common amd64 1.99~rc1-13ubuntu3 [2,043 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ natty/main grub amd64 0.97-29ubuntu61 [807 kB]
Fetched 2,850 kB in 21s (134 kB/s)
Preconfiguring packages ...
Selecting previously deselected package grub-common.
(Reading database ... 134009 files and directories currently installed.)
Unpacking grub-common (from .../grub-common_1.99~rc1-13ubuntu3_amd64.deb) ...
Selecting previously deselected package grub.
Unpacking grub (from .../grub_0.97-29ubuntu61_amd64.deb) ...
Processing triggers for ureadahead ...
Processing triggers for install-info ...
Processing triggers for man-db ...
Setting up grub-common (1.99~rc1-13ubuntu3) ...
Setting up grub (0.97-29ubuntu61) ...
ubuntu@ubuntu:~$ sudo update-grub
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... Generating /boot/grub/default file and setting the default boot entry to 0
Searching for GRUB installation directory ... found: /boot/grub
Testing for an existing GRUB menu.lst file ...
Could not find /boot/grub/menu.lst file. Would you like /boot/grub/menu.lst generated for you? (y/N) y
Searching for splash image ... none found, skipping ...
Found kernel: /boot/memtest86+.bin
Found kernel: /boot/memtest86+.bin
Updating /boot/grub/menu.lst ... done
ubuntu@ubuntu:~$ sudo fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xee367556
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3917 31457280 83 Linux
Disk /dev/sdb: 4009 MB, 4009754624 bytes
124 heads, 62 sectors/track, 1018 cylinders
Units = cylinders of 7688 * 512 = 3936256 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00093ad3
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1018 3913161 b W95 FAT32
ubuntu@ubuntu:~$ sudo grub-install /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
Could not find device for /boot: Not found or not a block device.
Code:
ubuntu@ubuntu:~$ dmesg | grep EFI
[ 0.000000] EFI v2.00 by Phoenix Technologies Ltd.
[ 0.000000] Kernel-defined memdesc doesn't match the one from EFI!
[ 0.000000] EFI: mem00: type=3, attr=0xf, range=[0x0000000000000000-0x0000000000001000) (0MB)
[ 0.000000] EFI: mem01: type=7, attr=0xf, range=[0x0000000000001000-0x0000000000054000) (0MB)
[ 0.000000] EFI: mem02: type=4, attr=0xf, range=[0x0000000000054000-0x0000000000055000) (0MB)
[ 0.000000] EFI: mem03: type=3, attr=0xf, range=[0x0000000000055000-0x000000000008f000) (0MB)
[ 0.000000] EFI: mem04: type=10, attr=0xf, range=[0x000000000008f000-0x0000000000090000) (0MB)
[ 0.000000] EFI: mem05: type=3, attr=0xf, range=[0x0000000000090000-0x00000000000a0000) (0MB)
[ 0.000000] EFI: mem06: type=2, attr=0xf, range=[0x0000000000100000-0x000000000054d000) (4MB)
[ 0.000000] EFI: mem07: type=7, attr=0xf, range=[0x000000000054d000-0x0000000036570000) (864MB)
[ 0.000000] EFI: mem08: type=2, attr=0xf, range=[0x0000000036570000-0x00000000372b0000) (13MB)
[ 0.000000] EFI: mem09: type=7, attr=0xf, range=[0x00000000372b0000-0x000000007affa000) (1085MB)
[ 0.000000] EFI: mem10: type=2, attr=0xf, range=[0x000000007affa000-0x00000000a4081000) (656MB)
[ 0.000000] EFI: mem11: type=4, attr=0xf, range=[0x00000000a4081000-0x00000000a40a1000) (0MB)
[ 0.000000] EFI: mem12: type=7, attr=0xf, range=[0x00000000a40a1000-0x00000000a40bd000) (0MB)
[ 0.000000] EFI: mem13: type=1, attr=0xf, range=[0x00000000a40bd000-0x00000000a411d000) (0MB)
[ 0.000000] EFI: mem14: type=7, attr=0xf, range=[0x00000000a411d000-0x00000000a417d000) (0MB)
[ 0.000000] EFI: mem15: type=4, attr=0xf, range=[0x00000000a417d000-0x00000000a5848000) (22MB)
[ 0.000000] EFI: mem16: type=7, attr=0xf, range=[0x00000000a5848000-0x00000000a587e000) (0MB)
[ 0.000000] EFI: mem17: type=4, attr=0xf, range=[0x00000000a587e000-0x00000000a66d6000) (14MB)
[ 0.000000] EFI: mem18: type=7, attr=0xf, range=[0x00000000a66d6000-0x00000000a68bf000) (1MB)
[ 0.000000] EFI: mem19: type=2, attr=0xf, range=[0x00000000a68bf000-0x00000000a68c5000) (0MB)
[ 0.000000] EFI: mem20: type=3, attr=0xf, range=[0x00000000a68c5000-0x00000000a6f0b000) (6MB)
[ 0.000000] EFI: mem21: type=5, attr=0x800000000000000f, range=[0x00000000a6f0b000-0x00000000a6f90000) (0MB)
[ 0.000000] EFI: mem22: type=5, attr=0x800000000000000f, range=[0x00000000a6f90000-0x00000000a700b000) (0MB)
[ 0.000000] EFI: mem23: type=6, attr=0x800000000000000f, range=[0x00000000a700b000-0x00000000a704b000) (0MB)
[ 0.000000] EFI: mem24: type=6, attr=0x800000000000000f, range=[0x00000000a704b000-0x00000000a704f000) (0MB)
[ 0.000000] EFI: mem25: type=0, attr=0xf, range=[0x00000000a704f000-0x00000000a70ba000) (0MB)
[ 0.000000] EFI: mem26: type=6, attr=0x800000000000000f, range=[0x00000000a70ba000-0x00000000a71c2000) (1MB)
[ 0.000000] EFI: mem27: type=0, attr=0xf, range=[0x00000000a71c2000-0x00000000a71c6000) (0MB)
[ 0.000000] EFI: mem28: type=6, attr=0x800000000000000f, range=[0x00000000a71c6000-0x00000000a71c8000) (0MB)
[ 0.000000] EFI: mem29: type=0, attr=0xf, range=[0x00000000a71c8000-0x00000000a72c9000) (1MB)
[ 0.000000] EFI: mem30: type=6, attr=0x800000000000000f, range=[0x00000000a72c9000-0x00000000a730b000) (0MB)
[ 0.000000] EFI: mem31: type=0, attr=0xf, range=[0x00000000a730b000-0x00000000a731b000) (0MB)
[ 0.000000] EFI: mem32: type=10, attr=0xf, range=[0x00000000a731b000-0x00000000a7354000) (0MB)
[ 0.000000] EFI: mem33: type=10, attr=0xf, range=[0x00000000a7354000-0x00000000a739b000) (0MB)
[ 0.000000] EFI: mem34: type=9, attr=0xf, range=[0x00000000a739b000-0x00000000a73e1000) (0MB)
[ 0.000000] EFI: mem35: type=9, attr=0xf, range=[0x00000000a73e1000-0x00000000a73fb000) (0MB)
[ 0.000000] EFI: mem36: type=4, attr=0xf, range=[0x00000000a73fb000-0x00000000a7e00000) (10MB)
[ 0.000000] EFI: mem37: type=7, attr=0xf, range=[0x0000000100000000-0x000000023f000000) (5104MB)
[ 0.000000] EFI: mem38: type=11, attr=0x8000000000000001, range=[0x00000000fed80000-0x00000000fed81000) (0MB)
[ 0.000000] ACPI: UEFI 00000000a73e7000 0003E (v01 FUJ PC 00000001 PTL 00000001)
[ 0.000000] ACPI: UEFI 00000000a73e6000 00042 (v01 PTL COMBUF 00000001 PTL 00000001)
[ 0.000000] ACPI: UEFI 00000000a73e1000 0012A (v01 FUJ PC 00000001 PTL 00000001)
[ 5.633936] fb0: EFI VGA frame buffer device
[ 6.382641] EFI Variables Facility v0.08 2004-May-17
[ 7.739505] fb: conflicting fb hw usage radeondrmfb vs EFI VGA - removing generic driver
ubuntu@ubuntu:~$
As indicated on the previous post, my notebook is open for any test / configuration. My ultimate target is to enable Dual boot.
Bookmarks