system unbootable after updating from edgy to feisty
I just tried to update my ubuntu from 6.10 to 7.04 last night and now the system will not boot up. ive tried loading from different kernels in the grub menu, and they all freeze on startup.
the older kernels freeze when loading the console fonts and keyboard layout, and the newest kernel in recovery mode loads sucessfully at first, but then after mounting the root filesystem it hangs while waiting for a response from the root. then it shows me the following:
_______
ALERT! /dev/hda1 does not exist. Dropping to a shell!
BusyBox v1.1.3 (Debian 1:1.1.3-2ubuntu3) Built-in shell (ash)
Enter 'help' for a list of built-in commands
/bin/sh: can't access tty; job control turned off
(initramfs)_
_______
i can tell this is a bad thing...will it be possible to save the system, or will i have to reformat?
any help would be greatly appreciated.
Andrew
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Olivier
- Solved:
- Last query:
- Last reply:
Revision history for this message
|
#1 |
Start in recovery mode and type:
sudo fdisk -l
-l is lower -L
Copy and paste result here.
Thank you
Revision history for this message
|
#2 |
i cant get into the recovery mode. it gives me the same output i posted above when i try to load with the recovery kernel.
Revision history for this message
|
#3 |
i punched it into the prompt it gives me, and heres what i get as output:
_______
/bin/sh: sudo: not found
(initramfs)_
_______
Revision history for this message
|
#4 |
hi !
I cannot remember when but the kernel stack in charge of ATA disk was changed, and makes hda disks appear as sda. You could be facing such a problem. edit the boot line and change hda1 into sda1.
Tell me if that helps
Revision history for this message
|
#5 |
olivier, i tried the fix you suggested, but it still gives me the same error, but says sda1 instead of hda1.
Revision history for this message
|
#6 |
How many partitions do you have ?
If I were you, I would try hda1, hda2,...,hda5 and idem with sda1,..., sda5
Not really clever and a bit boring but I hope you will find something that works
Revision history for this message
|
#7 |
If that still does not work, you will need an Ubuntu liveCD (whatever version) to repare GRUB.
Revision history for this message
|
#8 |
i have a live cd for ubuntu 6.10 and 7.10. will i be able to use the 7.10 disc to repair grub, or will i have to go bach to the edgy disc?
Revision history for this message
|
#9 |
and i only have 1 partition. the computer in question is a linux only computer
Revision history for this message
|
#10 |
Yeah, go ahead with the 7.10 CD
Revision history for this message
|
#11 |
ok...what do i need to do to repair grub? ive never had to do this before, so im not sure what to do
Revision history for this message
|
#12 |
First, are you sure your upgrade went well ?
Revision history for this message
|
#13 |
Enter the foloowing command in a terminal :
mkdir ubuntulocal
sudo fdisk -l
you should get the name of your disk, ie sda1, or something else. Assuming it is sda1, enter
sudo mount /dev/sda1 ubuntulocal
sudo chroot ubuntulocal
open AN OTHER terminal and enter the following commands
sudo mount -o bind /proc ubuntulocal/proc
sudo mount -o bind /dev ubuntulocal/dev
chroot does as if you were using your local installation. Therefore, you can finish a failed upgrade for instance, doing in THE FIRST terminal
sudo apt-get update
sudo apt-get dist-upgrade
and to repare grub, just do
sudo install-grub /dev/sda
(if your disk is called sda)
Revision history for this message
|
#14 |
oops. to repare grub, it's the command
sudo grub-install /dev/sda
Revision history for this message
|
#15 |
not really, seeing as how i ran into this problem. that and i was trying to update to feisty so i could then upgrade to gutsy. i thought everything there had gone well though, seeing as how it hadn't listed any errors in the console, and there were no more packages to update
Revision history for this message
|
#16 |
do i enter that in the terminal menu option when the liveCD auto-boots?
Revision history for this message
|
#17 |
No, boot the liveCD normally, and open 2 terminals when the gnome session has opened
Revision history for this message
|
#18 |
i cannot run the apt-get commands because i cannot connect the computer to the wireless for some reason, and when i try to enter the last command in the terminal it tells me that sda1 does not have any corresponding BIOS device, even though it clearly says under fdisk that sda1 is my primary linux partition...
Revision history for this message
|
#19 |
you have to enter
sudo grub-install /dev/sda
and not sudo "grub-install /dev/sda"
if you have not any internet connection, you can still enter the following command to make sure everything is OK :
sudo apt-get -f install
Revision history for this message
|
#20 |
you have to enter
sudo grub-install /dev/sda
and not sudo "grub-install /dev/sda1"
if you have not any internet connection, you can still enter the following command to make sure everything is OK :
sudo apt-get -f install
Revision history for this message
|
#21 |
SOrry for the double post. read only the second one
Revision history for this message
|
#22 |
i recieved an error code when doing the apt-get -f install
-----------
errors were encountered while processing:
acpid
acpi-support
powermanagemen
gnome-
gnome-session
e: sub-process /usr/bin/dpkg returned an error code (1)
will this cause me problems when i repair the grub and reboot?
Revision history for this message
|
#23 |
also, when i retried to repair the grub using the
sudo grub-install /dev/sda
it gave me this error:
could not find device for /boot: not found or not a block device.
Revision history for this message
|
#24 |
Something went wrong during your update. Can you connect through ethernet ? what is your wifi card ?
Revision history for this message
|
#25 |
im too far away from the router to connect through hardline right now, i couldnt access the net when i tried to do a bridge connect through my laptop before. my wifi adapter is an external linksys wireless b WUSB11. i have no idea why, but the adapter can't see the wireless network right now. it is all set up correctly, because i saw it earlier when i first started the computer up with the liveCD, but when i tried to connect, it wouldnt accept my wep key, then it refused to detect the network anymore.
Revision history for this message
|
#26 |
enter in console (yes, still an other one :-) )
sudo killall NetworkManager
sudo NetworkManager
Tell me if that helps
Revision history for this message
|
#27 |
sorry, but that didnt help. i tried to run the command and it appeared to freeze, so i left it over night to see if anything happened, but nothing did...ill just move the thing to the other room and connect it directly
Revision history for this message
|
#28 |
when i did the net connected update, it gave me these errors again:
-------
Errors were encountered while processing:
acpid
acpi-support
powermanagemen
gnome-
gnome-session
ubuntu-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)
-------
and it still gives me the same message when i try to reinstall grub
-------
could not find device for /boot: not found or not a block device.
-------
what else should i do?
Revision history for this message
|
#29 |
also, here is what i get when i run fdisk -l:
-------
Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2341 18804051 83 Linux
/dev/sda2 2342 2434 747022+ 5 Extended
/dev/sda5 2342 2434 746991 82 Linux swap / Solaris
Revision history for this message
|
#30 |
Please post here the full output of the command
sudo apt-get update
sudo apt-get dist-upgrade
(executed within the chrooted console)
Revision history for this message
|
#31 |
full output for apt-get update:
-------
root@ubuntu:/# sudo apt-get update
Ign cdrom://Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016) gutsy/main Translation-en_US
Ign cdrom://Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016) gutsy/restricted Translation-en_US
Get:1 http://
Ign http://
Get:2 http://
Ign http://
Ign http://
Get:3 http://
Ign http://
Ign http://
Ign http://
Get:4 http://
Ign http://
Ign http://
Get:5 http://
Ign http://
Ign http://
Get:6 http://
Get:7 http://
Ign http://
Ign http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:8 http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Hit http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Fetched 303kB in 4s (73.3kB/s)
Reading package lists... Done
root@ubuntu:/#
Revision history for this message
|
#32 |
ful output for sudo apt-get dist-upgrade:
-------
root@ubuntu:/# sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libatm1
The following packages will be upgraded:
libkpathsea4
1 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
6 not fully installed or removed.
Need to get 82.3kB of archives.
After unpacking 4096B of additional disk space will be used.
Do you want to continue [Y/n]?
-----------------
i chose y
-------
Get:1 http://
Fetched 82.3kB in 1s (58.1kB/s)
(Reading database ... 163008 files and directories currently installed.)
Preparing to replace libkpathsea4 3.0-27ubuntu1 (using .../libkpathsea
Unpacking replacement libkpathsea4 ...
Setting up acpid (1.0.4-5ubuntu6) ...
* Starting ACPI services... acpid: can't open /proc/acpi/event: Device or resource busy
invoke-rc.d: initscript acpid, action "start" failed.
dpkg: error processing acpid (--configure):
subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of acpi-support:
acpi-support depends on acpid (>= 1.0.4-1ubuntu4); however:
Package acpid is not configured yet.
dpkg: error processing acpi-support (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of powermanagement
powermanagemen
Package acpi-support is not configured yet.
dpkg: error processing powermanagement
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-power-
gnome-
Package powermanagement
dpkg: error processing gnome-power-manager (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of gnome-session:
gnome-session depends on gnome-power-
Package gnome-power-manager is not configured yet.
dpkg: error processing gnome-session (--configure):
dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of ubuntu-desktop:
ubuntu-desktop depends on acpi-support; however:
Package acpi-support is not configured yet.
ubuntu-desktop depends on acpid; however:
Package acpid is not configured yet.
ubuntu-desktop depends on gnome-power-
Package gnome-power-manager is not configured yet.
ubuntu-desktop depends on gnome-session; however:
Package gnome-session is not configured yet.
ubuntu-desktop depends on powermanagement
Package powermanagement
dpkg: error processing ubuntu-desktop (--configure):
dependency problems - leaving unconfigured
Setting up libkpathsea4 (3.0-27ubuntu1.2) ...
Errors were encountered while processing:
acpid
acpi-support
powermanagemen
gnome-
gnome-session
ubuntu-desktop
E: Sub-process /usr/bin/dpkg returned an error code (1)
root@ubuntu:/#
Revision history for this message
|
#33 |
OK. in a console outside the chroot, enter the following command
sudo killall acpid
the problem is /proc/acpi/event is already accessed by the acpi daemon of the liveCD
retry after that
Revision history for this message
|
#34 |
i retried the apt-get update and heres what it gave me:
------------------
ubuntu@ubuntu:~$ sudo killall acpid
ubuntu@ubuntu:~$ sudo apt-get update
Ign cdrom://Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016) gutsy/main Translation-en_US
Ign cdrom://Ubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016) gutsy/restricted Translation-en_US
Get:1 http://
Get:2 http://
Ign http://
Ign http://
Ign http://
Ign http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Fetched 1560kB in 1m42s (15.1kB/s)
Reading package lists... Done
-------
im guessing this is a good thing since it gave me no errors. the sudo apt-get dist-upgrade wasn't so nice
-------
ubuntu@ubuntu:~$ sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages will be upgraded:
compiz compiz-core compiz-gnome compiz-plugins cupsys cupsys-bsd
cupsys-client cupsys-common firefox firefox-
ghostscript-x gnome-screensaver libcairo2 libcupsimage2 libcupsys2
libdecoration0 libflac8 libgs8 libkpathsea4 libmono-
libmono-
libmono-
libmono-
libmono-
libperl5.8 libpng12-0 libpoppler-glib2 libpoppler2 libpurple0 libsmbclient
libssl0.9.8 mono-common mono-gac mono-jit mono-runtime openssl perl
perl-base perl-modules pidgin pidgin-data poppler-utils samba-common
smbclient
55 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 50.6MB of archives.
After unpacking 28.7kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://
Get:2 http://
Get:3 http://
Get:4 http://
Get:5 http://
Get:6 http://
Get:7 http://
Get:8 http://
Get:9 http://
Get:10 http://
Get:11 http://
Get:12 http://
Get:13 http://
Get:14 http://
Get:15 http://
Get:16 http://
Get:17 http://
Get:18 http://
Get:19 http://
Get:20 http://
Get:21 http://
Get:22 http://
Get:23 http://
Get:24 http://
Get:25 http://
Get:26 http://
Get:27 http://
Get:28 http://
Get:29 http://
Get:30 http://
Get:31 http://
Get:32 http://
Get:33 http://
Get:34 http://
Get:35 http://
Get:36 http://
Get:37 http://
Get:38 http://
Get:39 http://
Get:40 http://
Get:41 http://
Get:42 http://
Get:43 http://
Get:44 http://
Get:45 http://
Get:46 http://
Get:47 http://
Get:48 http://
Get:49 http://
Get:50 http://
Get:51 http://
Get:52 http://
Get:53 http://
Get:54 http://
Get:55 http://
Fetched 50.6MB in 54m7s (15.6kB/s)
Extracting templates from packages: 100%
Preconfiguring packages ...
(Reading database ... 92004 files and directories currently installed.)
Preparing to replace perl-modules 5.8.8-7ubuntu3 (using .../perl-
Unpacking replacement perl-modules ...
Preparing to replace perl 5.8.8-7ubuntu3 (using .../perl_
Unpacking replacement perl ...
Preparing to replace libperl5.8 5.8.8-7ubuntu3 (using .../libperl5.
Unpacking replacement libperl5.8 ...
Preparing to replace perl-base 5.8.8-7ubuntu3 (using .../perl-
Unpacking replacement perl-base ...
Setting up perl-base (5.8.8-7ubuntu3.1) ...
(Reading database ... 92004 files and directories currently installed.)
Preparing to replace libssl0.9.8 0.9.8e-5ubuntu3 (using .../libssl0.
Unpacking replacement libssl0.9.8 ...
Preparing to replace libpng12-0 1.2.15~
Unpacking replacement libpng12-0 ...
Preparing to replace libcairo2 1.4.10-1ubuntu4 (using .../libcairo2_
Unpacking replacement libcairo2 ...
Preparing to replace libdecoration0 1:0.6.0+
Unpacking replacement libdecoration0 ...
Preparing to replace compiz-gnome 1:0.6.0+
Unpacking replacement compiz-gnome ...
Preparing to replace compiz-plugins 1:0.6.0+
Unpacking replacement compiz-plugins ...
Preparing to replace compiz-core 1:0.6.0+
Unpacking replacement compiz-core ...
Preparing to replace compiz 1:0.6.0+
Unpacking replacement compiz ...
Preparing to replace libcupsys2 1.3.2-1ubuntu7 (using .../libcupsys2_
Unpacking replacement libcupsys2 ...
Preparing to replace libcupsimage2 1.3.2-1ubuntu7 (using .../libcupsimag
Unpacking replacement libcupsimage2 ...
Preparing to replace libpoppler2 0.6-0ubuntu2 (using .../libpoppler2
Unpacking replacement libpoppler2 ...
Preparing to replace poppler-utils 0.6-0ubuntu2 (using .../poppler-
Unpacking replacement poppler-utils ...
Preparing to replace libgs8 8.61.dfsg.
Unpacking replacement libgs8 ...
Preparing to replace ghostscript 8.61.dfsg.
Cleaning up font configuration of gs...
Cleaning up category psprint..
Cleaning up category cmap..
Cleaning up category cid..
Cleaning up category truetype..
Cleaning up category gsfontderivative..
Cleaning up category type3..
Cleaning up category type1..
Unpacking replacement ghostscript ...
Preparing to replace cupsys-common 1.3.2-1ubuntu7 (using .../cupsys-
Unpacking replacement cupsys-common ...
Preparing to replace cupsys 1.3.2-1ubuntu7 (using .../cupsys_
* Stopping Common Unix Printing System: cupsd [ OK ]
Unpacking replacement cupsys ...
Preparing to replace cupsys-bsd 1.3.2-1ubuntu7 (using .../cupsys-
Unpacking replacement cupsys-bsd ...
Preparing to replace cupsys-client 1.3.2-1ubuntu7 (using .../cupsys-
Unpacking replacement cupsys-client ...
Preparing to replace firefox-
Unpacking replacement firefox-
Preparing to replace firefox 2.0.0.6+
Unpacking replacement firefox ...
dpkg: error processing /var/cache/
unable to make backup link of `./usr/
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Please restart any running Firefoxes, or you will experience problems.
Preparing to replace ghostscript-x 8.61.dfsg.
Unpacking replacement ghostscript-x ...
Preparing to replace gnome-screensaver 2.20.0-0ubuntu4 (using .../gnome-
Unpacking replacement gnome-screensaver ...
Preparing to replace libflac8 1.1.4-3ubuntu1 (using .../libflac8_
Unpacking replacement libflac8 ...
Preparing to replace libkpathsea4 2007-12ubuntu3 (using .../libkpathsea
Unpacking replacement libkpathsea4 ...
Preparing to replace mono-runtime 1.2.4-6ubuntu6 (using .../mono-
Unpacking replacement mono-runtime ...
Preparing to replace mono-gac 1.2.4-6ubuntu6 (using .../mono-
Unpacking replacement mono-gac ...
Preparing to replace mono-jit 1.2.4-6ubuntu6 (using .../mono-
Unpacking replacement mono-jit ...
Preparing to replace mono-common 1.2.4-6ubuntu6 (using .../mono-
Unpacking replacement mono-common ...
Preparing to replace libmono-
Unpacking replacement libmono-
Preparing to replace libmono-
Unpacking replacement libmono-
Preparing to replace libmono-
Unpacking replacement libmono-
Preparing to replace libmono0 1.2.4-6ubuntu6 (using .../libmono0_
Unpacking replacement libmono0 ...
Preparing to replace libmono-
Unpacking replacement libmono-
Preparing to replace libmono-
Unpacking replacement libmono-
Preparing to replace libmono-
Unpacking replacement libmono-
Preparing to replace libmono-
Unpacking replacement libmono-
Preparing to replace libmono-
Unpacking replacement libmono-
Preparing to replace libmono-
Unpacking replacement libmono-
Preparing to replace libmono-
Unpacking replacement libmono-
dpkg: error processing /var/cache/
unable to make backup link of `./usr/
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace libmono-
Unpacking replacement libmono-
dpkg: error processing /var/cache/
failed in buffer_write(fd) (10, ret=-1): backend dpkg-deb during `./usr/
dpkg-deb: subprocess paste killed by signal (Broken pipe)
Preparing to replace libmono2.0-cil 1.2.4-6ubuntu6 (using .../libmono2.
Unpacking replacement libmono2.0-cil ...
Preparing to replace libpcre3 7.2-1ubuntu2 (using .../libpcre3_
Unpacking replacement libpcre3 ...
dpkg: error processing /var/cache/
unable to make backup link of `./usr/
Preparing to replace libpcrecpp0 7.2-1ubuntu2 (using .../libpcrecpp0
dpkg: error processing /var/cache/
failed to write status record about `libebook1.2-9' to `/var/lib/
dpkg: error while cleaning up:
unable to flush updated status of `libpcrecpp0': No space left on device
dpkg: failed to write status record about `fping' to `/var/lib/
E: Sub-process /usr/bin/dpkg returned an error code (2)
Revision history for this message
|
#35 |
You have to do the upgrade in the chrooted environment. what you did is upgrade the live system. You have to type the update / uprade commands in the console where you entered "sudo chroot ubuntulocal". Does that make sense ?
Revision history for this message
|
#36 |
ok, i entered it in the rooted console and heres what it returned:
-------
root@ubuntu:/# sudo apt-get dist-upgrade
Reading package lists... Done
Building dependency tree
Reading state information... Done
Calculating upgrade... Done
The following packages have been kept back:
libatm1
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
root@ubuntu:/#
-------
is that going to cause problems?
Revision history for this message
|
#37 |
I don't think so.
So, now, time to reinstall grub. in the chrooted environment, what is the output of
sudo fdisk -l
Revision history for this message
|
#38 |
root@ubuntu:/# sudo fdisk -l
Disk /dev/sda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2341 18804051 83 Linux
/dev/sda2 2342 2434 747022+ 5 Extended
/dev/sda5 2342 2434 746991 82 Linux swap / Solaris
root@ubuntu:/#
Revision history for this message
|
#39 |
OK. Give the output of the command (entered in the chrooted env. )
cat /boot/grub/menu.lst
Revision history for this message
|
#40 |
root@ubuntu:/# cat /boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0
## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 3
## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
hiddenmenu
# Pretty colours
#color cyan/blue white/blue
## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/
# password topsecret
#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#
#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below
## DO NOT UNCOMMENT THEM, Just edit them to your needs
## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_
## kopt_2_
# kopt=root=
# kopt_2_
## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0
## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)
## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true
## should update-grub lock alternative automagic boot options
## e.g. lockalternative
## lockalternative
# lockalternative
## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash
## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false
## Xen hypervisor options to use with the default Xen boot option
# xenhopt=
## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=
## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=
# altoptions=
## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all
## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true
## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaulten
## ## End Default Options ##
title Ubuntu, kernel 2.6.20-16-generic
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
quiet
savedefault
title Ubuntu, kernel 2.6.20-16-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
title Ubuntu, kernel 2.6.17-12-generic
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
quiet
savedefault
title Ubuntu, kernel 2.6.17-12-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
title Ubuntu, kernel 2.6.17-11-generic
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
quiet
savedefault
title Ubuntu, kernel 2.6.17-11-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
title Ubuntu, kernel 2.6.17-10-generic
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
quiet
savedefault
title Ubuntu, kernel 2.6.17-10-generic (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-
initrd /boot/initrd.
title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86
quiet
### END DEBIAN AUTOMAGIC KERNELS LIST
root@ubuntu:/#
Revision history for this message
|
#41 |
retry this command in the chrooted environment. I see no reason what it would fail
sudo grub-install /dev/sda
Revision history for this message
|
#42 |
it still gave me an error:
-------
root@ubuntu:/# sudo grub-install /dev/sda
/dev/sda does not have any corresponding BIOS drive.
root@ubuntu:/#
-------
Revision history for this message
|
#43 |
OK. this is a different error. Try
grub-install --recheck /dev/sda
as seen here http://
Revision history for this message
|
#44 |
I tried this in both the chrooted console, and the standard, and heres the output:
-------
root@ubuntu:/# grub-install --recheck /dev/sda
Probing devices to guess BIOS drives. This may take a long time.
/dev/hda1: Not found or not a block device.
root@ubuntu:/#
-------
i copied this directly from the console...i think theres an error there where it says hda, rather than sda
-------
ubuntu@ubuntu:~$ sudo grub-install --recheck /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.
ubuntu@ubuntu:~$
-------
strange...
Revision history for this message
|
#45 |
i tried restarting the computer and just booting normally, and the process froze on the boot screen with the loading bar. i haven't tried using the newest recovery kernel yet though...
Revision history for this message
|
#46 |
oliver, i tried rebooting through the recovery console, using the first thing you suggested, and this time it worked perfectly, thankyou very much!
Revision history for this message
|
#47 |
Thanks Olivier, that solved my question.
Revision history for this message
|
#48 |
Cool. To make this change permanent, you have to edit the file /boot/grub/menu.lst and make the same modifications. You also need to edit the "default options" in that same file, as they are applied to every new kernel you install