PDA

View Full Version : [ubuntu] 10.10 external hard drive OS not found



Dookert
December 1st, 2010, 07:50 AM
Hey guys,

I have recently been attempting to install ubuntu on to an external HD. I was attempting to do it to keep my internal windows 7 HD "isolated" from linux installed on the external drive. I wanted to have a bootloader on the external booting and seeing only linux by disabling the internal drive on my sony laptop. I ran the live cd, partitioned the drive so that sdb1 was the root drive, along with a swap disk. I initially told the boot loader to be installed on sdb1. Install was successful but upon restart I got a "no operating system found" error. I then attempted another install and this time told the installer to install the bootloader onto the base of the hard drive, aka ATA WD 1.0 TB FL..blah blah blah. Still got the no os error. Why arent the bios seeing GRUB?

sikander3786
December 1st, 2010, 08:00 AM
Hi.

Bootloader should have been installed to sdb itself rather than sdb1 initially. You might need to chroot and purge your exisiting Grub and reinstall it properly.

See this amazing HOWTO by drs305.

http://ubuntuforums.org/showthread.php?t=1581099

Or if you can't figure that out, connect your external HDD, boot a Live CD and post the output of bootinfoscript as per instructions here.

http://bootinfoscript.sourceforge.net

It would give us a better idea of what is where and thus we'll be able to advise accordingly.

Please wrap your output with proper code tags # from the post menu. [/code] at the end and [code] at the beginning.

Thanks.

Dookert
December 1st, 2010, 11:06 PM
I really appreciate the help. I am going to try your first suggestion but in the meantime it was pretty easy to run the boot script. Here is the output:


Boot Info Script 0.55 dated February 15th, 2010

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

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

sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /boot/bcd

sda2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /bootmgr /Boot/BCD

sda3: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows Vista/7
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows 7
Boot files/dirs: /Windows/System32/winload.exe

sdb1: __________________________________________________ _______________________

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

sdb2: __________________________________________________ _______________________

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

sdb5: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 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 21,372,927 21,370,880 27 Hidden HPFS/NTFS
/dev/sda2 * 21,372,928 21,577,727 204,800 7 HPFS/NTFS
/dev/sda3 21,577,728 625,140,399 603,562,672 7 HPFS/NTFS


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 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/sdb1 * 2,048 78,125,055 78,123,008 83 Linux
/dev/sdb2 1,949,526,014 1,953,523,711 3,997,698 5 Extended
/dev/sdb5 1,949,526,016 1,953,523,711 3,997,696 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 3C2C4AD32C4A883A ntfs Recovery
/dev/sda2 0A3C2A173C29FE77 ntfs System Reserved
/dev/sda3 7EBA2C58BA2C0EE9 ntfs
/dev/sda: PTTYPE="dos"
/dev/sdb1 6cd6a2d2-d214-4c26-946b-a0d1f6cd7544 ext4
/dev/sdb2: PTTYPE="dos"
/dev/sdb5 e1720285-edd0-41fe-84ac-98039877422f swap
/dev/sdb: 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)


=========================== sdb1/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='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 6cd6a2d2-d214-4c26-946b-a0d1f6cd7544
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='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 6cd6a2d2-d214-4c26-946b-a0d1f6cd7544
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-23-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 6cd6a2d2-d214-4c26-946b-a0d1f6cd7544
linux /boot/vmlinuz-2.6.35-23-generic-pae root=UUID=6cd6a2d2-d214-4c26-946b-a0d1f6cd7544 ro quiet splash
initrd /boot/initrd.img-2.6.35-23-generic-pae
}
menuentry 'Ubuntu, with Linux 2.6.35-23-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 6cd6a2d2-d214-4c26-946b-a0d1f6cd7544
echo 'Loading Linux 2.6.35-23-generic-pae ...'
linux /boot/vmlinuz-2.6.35-23-generic-pae root=UUID=6cd6a2d2-d214-4c26-946b-a0d1f6cd7544 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-23-generic-pae
}
### 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='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 6cd6a2d2-d214-4c26-946b-a0d1f6cd7544
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd1,msdos1)'
search --no-floppy --fs-uuid --set 6cd6a2d2-d214-4c26-946b-a0d1f6cd7544
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows Vista (loader) (on /dev/sda1)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 3c2c4ad32c4a883a
chainloader +1
}
menuentry "Windows 7 (loader) (on /dev/sda2)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 0a3c2a173c29fe77
chainloader +1
}
### 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 ###

=============================== sdb1/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/sdb1 during installation
UUID=6cd6a2d2-d214-4c26-946b-a0d1f6cd7544 / ext4 errors=remount-ro 0 1
# swap was on /dev/sdb5 during installation
UUID=e1720285-edd0-41fe-84ac-98039877422f none swap sw 0 0

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


2.3GB: boot/grub/core.img
2.3GB: boot/grub/grub.cfg
28.3GB: boot/initrd.img-2.6.35-23-generic-pae
2.3GB: boot/vmlinuz-2.6.35-23-generic-pae
28.3GB: initrd.img
2.3GB: vmlinuz

Dookert
December 1st, 2010, 11:33 PM
Looking at this, im kind of a layman, but it looks like grub was installed to the correct drive and partition. sdb1. Not sure why the BIOS dont see it or whatever it is thats supposed to see the boot loader

Dookert
December 1st, 2010, 11:51 PM
is this not working maybe because I dont have a /boot partition noted?