PDA

View Full Version : [ubuntu] 10.10 on new tera byte hd. grub fail



vector
January 17th, 2011, 07:57 AM
Hi all, read a few post on here but none are really helping. Wasted quite a lot of time.

I had a working system running an old 9. Time to update.
downloaded 10.10 last night.
Removed the hd and inserted a new 1 Tbyte seagate hd.
installed 10.10 all good.
rebooted and it falls to a grub rescue prompt.
error: out of disk

I found this,

http://www.linux.com/community/forums?func=view&id=4219&catid=18
basicaly boot from live cd. mount hd, install grub, reboot , update, reboot

and that allows me to get running again. but then I restart (ie power cycle machine) and im back to grub rescue prompt
Also typing help at the prompt gives unknown command error

thoughts?


Id also like to at some stage install the old hd and copy across data. not sure how to attempt that yet. I dont want to mess up the working ver 9

wilee-nilee
January 17th, 2011, 08:03 AM
So from a booted live Ubuntu cd or thumbdrive lets see the bootscript read out; in my signature just click on it and follow the instructions. Come back to the thread and click on the (#) in the reply panel this makes code tags paste all the text in between.

So how large was the drive replaced? and how big was the Ubuntu install on it? and how old is the computer as well. On some older computers there are 137 gig limitations, but some have a switch in the bios to read more I believe.

vector
January 17th, 2011, 09:53 AM
Thanks


Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for (,msdos1)/boot/grub.

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

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 / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 2,048 1,941,235,711 1,941,233,664 83 Linux
/dev/sda2 1,941,237,758 1,953,523,711 12,285,954 5 Extended
/dev/sda5 1,941,237,760 1,953,523,711 12,285,952 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 ce2c9470-4675-461b-b082-5cb1aa229df3 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 e2d37ce1-a77b-430c-b856-4773136256d1 swap
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)


=========================== sda1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
linux /boot/vmlinuz-2.6.35-24-generic root=UUID=ce2c9470-4675-461b-b082-5cb1aa229df3 ro quiet splash
initrd /boot/initrd.img-2.6.35-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
echo 'Loading Linux 2.6.35-24-generic ...'
linux /boot/vmlinuz-2.6.35-24-generic root=UUID=ce2c9470-4675-461b-b082-5cb1aa229df3 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=ce2c9470-4675-461b-b082-5cb1aa229df3 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=ce2c9470-4675-461b-b082-5cb1aa229df3 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=ce2c9470-4675-461b-b082-5cb1aa229df3 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=e2d37ce1-a77b-430c-b856-4773136256d1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

=================== sda1: Location of files loaded by Grub: ===================


906.3GB: boot/grub/core.img
887.2GB: boot/grub/grub.cfg
1.2GB: boot/initrd.img-2.6.35-22-generic
1.2GB: boot/initrd.img-2.6.35-24-generic
906.3GB: boot/vmlinuz-2.6.35-22-generic
906.3GB: boot/vmlinuz-2.6.35-24-generic
1.2GB: initrd.img
1.2GB: initrd.img.old
906.3GB: vmlinuz
906.3GB: vmlinuz.old

I was running a 200g and a 160g in the machine prior to this update.
Machine is maybe 4-5 years old perhaps worse case. its a gigabyte GA 8Ipe775 pentium4 2.3g from memory.

if I do the grub-install trick as mentioned in first post the system runs fine. I can right/read files etc, sound/video etc is all good. After a number of checks i deemed the 10.10 as a worker..it was only after a power restart things go ape.

vector
January 17th, 2011, 10:01 AM
ran bootscript again.This time it was after I grub-installed and rebooted
ie pseudo working situ running from installed 10.10 on 1T hd




Boot Info Script 0.55 dated February 15th, 2010

============================= Boot Info Summary: ==============================

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for (,msdos1)/boot/grub.

sda1: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 10.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

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 / 512 bytes

Partition Boot Start End Size Id System

/dev/sda1 * 2,048 1,941,235,711 1,941,233,664 83 Linux
/dev/sda2 1,941,237,758 1,953,523,711 12,285,954 5 Extended
/dev/sda5 1,941,237,760 1,953,523,711 12,285,952 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 ce2c9470-4675-461b-b082-5cb1aa229df3 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 e2d37ce1-a77b-430c-b856-4773136256d1 swap
/dev/sda: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro,commit=0)


=========================== sda1/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
set have_grubenv=true
load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
set saved_entry="${prev_saved_entry}"
save_env saved_entry
set prev_saved_entry=
save_env prev_saved_entry
set boot_once=true
fi

function savedefault {
if [ -z "${boot_once}" ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}

function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
insmod vbe
insmod vga
}

insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
set locale_dir=($root)/boot/grub/locale
set lang=en
insmod gettext
if [ "${recordfail}" = 1 ]; then
set timeout=-1
else
set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Ubuntu, with Linux 2.6.35-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
linux /boot/vmlinuz-2.6.35-24-generic root=UUID=ce2c9470-4675-461b-b082-5cb1aa229df3 ro quiet splash
initrd /boot/initrd.img-2.6.35-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
echo 'Loading Linux 2.6.35-24-generic ...'
linux /boot/vmlinuz-2.6.35-24-generic root=UUID=ce2c9470-4675-461b-b082-5cb1aa229df3 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-24-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=ce2c9470-4675-461b-b082-5cb1aa229df3 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=ce2c9470-4675-461b-b082-5cb1aa229df3 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set ce2c9470-4675-461b-b082-5cb1aa229df3
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f $prefix/custom.cfg ]; then
source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

=============================== sda1/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=ce2c9470-4675-461b-b082-5cb1aa229df3 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=e2d37ce1-a77b-430c-b856-4773136256d1 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0

=================== sda1: Location of files loaded by Grub: ===================


906.3GB: boot/grub/core.img
887.2GB: boot/grub/grub.cfg
1.2GB: boot/initrd.img-2.6.35-22-generic
1.2GB: boot/initrd.img-2.6.35-24-generic
906.3GB: boot/vmlinuz-2.6.35-22-generic
906.3GB: boot/vmlinuz-2.6.35-24-generic
1.2GB: initrd.img
1.2GB: initrd.img.old
906.3GB: vmlinuz
906.3GB: vmlinuz.old

wilee-nilee
January 17th, 2011, 10:06 AM
So when you load grub, and get in have you run.
sudo update-grub?

Have you tried just loading grub and either kernel 22 or 24 independently the rebooted to see if it may be the 24 kernel.
Each time running.
sudo update-grub

Have you looked on the web with this model of HD and Ubuntu compatibility. There have been seagates that did not work. I 'm wondering if there may be some sort of firmware on this HD, just conjecture though.

As far as I can tell the script looks correct.

vector
January 17th, 2011, 10:15 AM
ok non power cycled restarted 3 times no problem.
shutdown and reboot however and bang she dies. cant even get to grub menu
just plonks me at grub rescue. ill check the hd compat
later
thanks

btw previous drives have all been seagate.. i thought i was safe :(

vector
January 17th, 2011, 10:19 AM
btw previous drives have all been seagate.. i thought i was safe :(

vector
January 17th, 2011, 10:46 AM
i cant find any information on seagate hd being incompatable i must be searching wrong

vector
January 17th, 2011, 11:21 AM
setup grub to boot 22 instead of 24 . confimred this with numerous restarts. then did the shutdown and sure enough it boots to original error
error:out of disk

:(

so 22 is no different

however I did a ctrl alt reset instead of the normal turn off and go for a walk to calm down. it rebooted, grub ran and ubuntu came up??

whats going on aggghghghghghghghhgh

oldfred
January 17th, 2011, 07:43 PM
I have seen several users with large drives and similar issues. Notice in the script that your grub files are near the end of the drive. While it should work, it seems that grub gives up or times out.

I would shrink your root partition to 25GB and make the rest /home or /home & a /data partition.

The system will work very slightly better if all the system files are closer together on the hard drive anyway, so drive does not have to search so much.

You can reinstall or move /home to the new partition.

To move /home uses rsync (create mount may be missinig)
https://help.ubuntu.com/community/Partitioning/Home/Moving
Uses cp -ax
http://www.ivankuznetsov.com/2008/04/moving-home-to-its-own-partition.html

GParted partitioning software - Full tutorial
http://www.dedoimedo.com/computers/gparted.html
Partitioning basics with some info on /data, older but still good
http://ubuntuforums.org/showthread.php?t=282018&highlight=separate+%2Fdata+partition
Screenshots of using gparted
http://www.howtoforge.com/partitioning_with_gparted

vector
January 20th, 2011, 09:11 PM
good thought oldfred ill give this a try.
thanks

vector
January 20th, 2011, 09:14 PM
good thought oldfred ill give this a try.
thanks

vector
January 20th, 2011, 09:15 PM
good thought oldfred ill give this a try.
thanks

vector
January 20th, 2011, 09:20 PM
good thought oldfred ill give this a try.
thanks

vector
January 20th, 2011, 09:30 PM
thanks oldfred ill give that a try