I'm attempting to run this now, and I'm hitting a bit of a snag.
I'm getting to step 8, and something seems to be going wrong when I run 'sudo apt-get install grub'
Code:
root@ubuntu:/# sudo apt-get purge grub2 grub-pc
sudo: unable to resolve host ubuntu
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package grub2 is not installed, so not removed
The following packages will be REMOVED:
grub-pc*
0 upgraded, 0 newly installed, 1 to remove and 159 not upgraded.
After this operation, 1,786kB disk space will be freed.
Do you want to continue [Y/n]? y
Can not write log, openpty() failed (/dev/pts not mounted?)
(Reading database ... 116539 files and directories currently installed.)
Removing grub-pc ...
Purging configuration files for grub-pc ...
Processing triggers for man-db ...
root@ubuntu:/# sudo apt-get install grub
sudo: unable to resolve host ubuntu
Reading package lists... Done
Building dependency tree
Reading state information... Done
Suggested packages:
grub-doc mdadm
The following NEW packages will be installed:
grub
0 upgraded, 1 newly installed, 0 to remove and 159 not upgraded.
Need to get 903kB of archives.
After this operation, 1,974kB of additional disk space will be used.
Get:1 http://au.archive.ubuntu.com karmic/main grub 0.97-29ubuntu59 [903kB]
Fetched 903kB in 4s (183kB/s)
Preconfiguring packages ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package grub.
(Reading database ... 116356 files and directories currently installed.)
Unpacking grub (from .../grub_0.97-29ubuntu59_amd64.deb) ...
Processing triggers for man-db ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up grub (0.97-29ubuntu59) ...
If I then go to /boot/grub, there is nothing in there:
Code:
root@ubuntu:/boot# cd grub
root@ubuntu:/boot/grub# ls
root@ubuntu:/boot/grub#
Which makes me believe that something has gone wrong installing grub. Do I need to install dmraid or something when I'm under chroot?
Another quick question - Should step 9 read:
Code:
sudo chmod 777 /boot/grub/device.map
Since we're still under chroot? (or could it just be 'nano /boot/grub/device.map' without any change to the permissions?)
Either way, thanks for the help. I think my problem may lie in something going wrong with installing grub. I will continue my investigation, but appreciate any advise you may have.
Bookmarks