PDA

View Full Version : [ubuntu] 10.10 does not boot from USB HDD



mrx80
January 27th, 2011, 05:52 PM
Hi

I'm using a Dell Latitude d830, and a Toshiba 1.5 TB external USB HDD. I have Windows XP running on the internal HDD. I don't want to touch the internal drives, as this is a work laptop. So, I am trying to install Ubuntu onto the external HDD and boot from there. It seems to install ok, but doesn't boot up.


Here are my observations from 4-5 installs

Partitioning:
- During one of the first few installs, I partitioned the USB HDD - 30GB ext4 root partition (mapped to "/") and 20GB swap
- At a later time, I used Windows to create two partitions - 720GB and 100GB (ntfs)
- The last 2 installs have been with the above partition settings - each time I install I manually select the partition to install Ubuntu to, and select format before installation

MBR/Grub
- At the same screen where I select the partition, I make sure that the device for the boot loader installation is set to the 1.5 TB HDD

Post-install error messages
- After the install completes, and I select "Reboot" on the screen, I get a number of "...end_request... I/O error... /dev/xyz...... sector........." messages.
- I get the above message whether I'm installing from CD or USB - I used the same iso for both and created a bootable USB using Unetbootin

Right now, I'm booting using the 10.10 USB installer image, and can read/write files in the USB HDD install area (which is in /media/f2abcd............)

Here is a listing of /boot on that partition:


-rw-r--r-- 1 root root 705737 2010-09-20 01:58 abi-2.6.35-22-generic
-rw-r--r-- 1 root root 128592 2010-09-20 01:58 config-2.6.35-22-generic
drwxr-xr-x 3 root root 4096 2011-01-27 20:48 grub
-rw-r--r-- 1 root root 10762028 2011-01-27 20:53 initrd.img-2.6.35-22-generic
-rw-r--r-- 1 root root 165084 2010-09-24 17:14 memtest86+.bin
-rw-r--r-- 1 root root 167264 2010-09-24 17:14 memtest86+_multiboot.bin
-rw-r--r-- 1 root root 1830681 2010-09-20 01:58 System.map-2.6.35-22-generic
-rw-r--r-- 1 root root 1192 2010-09-20 02:01 vmcoreinfo-2.6.35-22-generic
-rw-r--r-- 1 root root 4289584 2010-09-20 07:28 vmlinuz-2.6.35-22-generic
Thanks for any help on this.......

mrx80
January 28th, 2011, 04:03 PM
bump. any ideas?

C.S.Cameron
January 28th, 2011, 04:14 PM
Following step by step works for me for Full install of 10.10 to USB device, adjust partition size to suit:

Check MD5SUM of iso, burn Live CD or USB.
Turn off and unplug the computer. (See note at bottom)
Remove the side from the case.
Unplug the power cable from the hard drive.
Plug the computer back in.
Insert the flash drive.
Insert the Live CD.
Start the computer, the CD should boot.
Select language
Select install Ubuntu.
Select Download updates while installing and Select Install this third-party software.
Forward
At "Allocate drive space" select "Specify partitions manually (advanced)".
Forward
Confirm Device is correct.
Select "New Partition Table" click Continue on the drop down.
Click "Free space" and "Add".
Select "Primary".
Make "New partition size..." about 1GB.
Location = Beginning.
"Use as:" = "FAT32 file system"
And "Mount point" = windows.
Select "OK"
Click "free space" and then "Add".
Select "Primary", "New partition size ..." = 3 to 4 GB, Beginning, Ext4, and Mount point = "/" then OK.
(Optional)
Click "free space" and then "Add".
Select "Primary", "New partition size ..." = 1 to 2 GB, Beginning, Ext2, and Mount point = "/home" then OK.
(Optional)
Click "free space" and then "Add".
Select "Primary", "New partition size ..." = remaining space, (1 to 2 GB), Beginning and "Use as" = "swap area" then OK.
(Importent)
Confirm "Device for boot loader installation" points to the USB drive. Default should be ok if HDD was unplugged.
Click "Install Now".
Select your location.
Forward.
Select Keyboard layout.
Forward.
Insert your name, username, password, computer name and select if you want to log in automatically or require a password.
Selecting "Encrypt my home folder" is a good option if you are woried about loosing your USB drive.
Select forward.
Wait until install is complete.
Turn off computer and plug in the HDD.
Stick the side panel back on.

Note:
You may omit disabling the hard drive if after partitioning you choose to install grub to the root of the usb drive you are installing Ubuntu to, (ie sdb not sdb1). Be cautious, many people have overwritten the HDD MBR.
At boot you will then be given the option to boot your computer's hard drive, even when booting another computer.

mrx80
January 28th, 2011, 07:58 PM
Hi

Thanks for your reply. I followed basically those steps. What I didn't do was set the first primary partition to /windows, or setup a /home partition. Otherwise I had followed that exact set of instructions to the letter. Should I still try a reinstall? Also, it appears that you used a USB key. I'm using a USB HDD.

I also tried the following, from this thread:
http://ubuntuforums.org/showthread.php?t=1677157

Running the bootinfo script gave me a syntax error at line 278 (it didn't like the "54)..."

Reinstalling grub on the external HDD and rebooting also didn't help.

nogoodnamesleft
January 28th, 2011, 09:59 PM
check bios settings in the laptop

1) you may need to enable usb boot

2) EACH TIME you connect the usb drive you may need to change the boot order of the hard drives. a usb will be picked up as a hdd, set to boot from hdd, then set the order of the hdds to usb first. becuase the usb hdd is not permament you may need to do this each boot.

this is quite common with booting from USB devices

i doubt the problem is ubuntu, more likely it is bios

also usb flash (key) and usb HDD will present the same way for boot up

C.S.Cameron
January 29th, 2011, 01:41 AM
Can you try the external drive on a second computer?

mrx80
January 29th, 2011, 04:45 AM
check bios settings in the laptop

1) you may need to enable usb boot

2) EACH TIME you connect the usb drive you may need to change the boot order of the hard drives. a usb will be picked up as a hdd, set to boot from hdd, then set the order of the hdds to usb first. becuase the usb hdd is not permament you may need to do this each boot.

this is quite common with booting from USB devices

i doubt the problem is ubuntu, more likely it is bios

also usb flash (key) and usb HDD will present the same way for boot up

Thanks for your response

USB boot is enabled. That's how I booted into the live USB (many times)
I don't do anything to change the boot order each time I connect. However, I don't think this is an issue, because I have booted into the live USB multiple times, plugging it in to different USB ports, etc.


@Cameron - I tried the HDD on a second computer, with identical results - it just won't boot from the external HDD.

For the above reasons, I'm thinking it's an issue with the external HDD:
1. An issue with how grub is installed? If someone can help me get the bootinfoscript working, that may point us in the right direction
2. The fact that I partitioned the external HDD with linux as well as windows? *
3. Maybe the external HDD takes a few seconds to spool up and in this time, isn't visible to BIOS




* This is a result of my multiple install attempts. I first tried to install ubuntu on the blank external HDD. This didn't work (same issue as we're dealing with now). However, I left the partitions alone - 30GB ext4 mounted on "/", and 20GB swap.
Then, I had to travel and needed some data, so I created two partitions from the unused space (using windows).
Now, every time I reinstall ubuntu, I'm doing it to the original 30gb partition
Could this be an issue?

Quackers
January 29th, 2011, 05:35 AM
I have never heard of any kind of error when running the boot script. I would suggest you download it again and run it from the terminal. Maybe the first download was corrupt.
If you download it to the desktop (not downloads) and then run the command below in a terminal you should get a results.txt file on your desktop.
Copy/paste the contents of that file into your next post using code tags.

sudo bash ~/Desktop/boot_info_script*.sh

mrx80
January 30th, 2011, 07:41 AM
I have never heard of any kind of error when running the boot script. I would suggest you download it again and run it from the terminal. Maybe the first download was corrupt.
If you download it to the desktop (not downloads) and then run the command below in a terminal you should get a results.txt file on your desktop.
Copy/paste the contents of that file into your next post using code tags.

sudo bash ~/Desktop/boot_info_script*.sh

Thanks, I tried it again and it worked. Weird. Here are the results:



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.
=> Syslinux is installed in the MBR of /dev/sdc

sda1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Dell Utility: Fat16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /COMMAND.COM

sda2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM /wubildr.mbr /wubildr

sda3: __________________________________________________ _______________________

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

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:

sdb3: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /ubuntu/winboot/wubildr.mbr /ubuntu/winboot/wubildr
/ubuntu/disks/root.disk /ubuntu/disks/swap.disk

sdb3/Wubi: __________________________________________________ _______________________

File system:
Boot sector type: Unknown
Boot sector info:
Mounting failed:
mount: unknown filesystem type ''

sdb4: __________________________________________________ _______________________

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

sdc1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Fat32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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 63 160,649 160,587 de Dell Utility
/dev/sda2 * 160,650 125,997,794 125,837,145 7 HPFS/NTFS
/dev/sda3 125,997,795 234,436,544 108,438,750 7 HPFS/NTFS


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 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 58,593,279 58,591,232 83 Linux
/dev/sdb2 58,595,326 97,654,783 39,059,458 5 Extended
/dev/sdb5 58,595,328 97,654,783 39,059,456 82 Linux swap / Solaris
/dev/sdb3 97,654,784 1,609,712,999 1,512,058,216 7 HPFS/NTFS
/dev/sdb4 1,609,713,000 1,814,509,619 204,796,620 7 HPFS/NTFS


Drive: sdc ___________________ __________________________________________________ ___

Disk /dev/sdc: 1021 MB, 1021125120 bytes
15 heads, 14 sectors/track, 9497 cylinders, total 1994385 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdc1 * 2,048 1,992,703 1,990,656 b W95 FAT32


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 07D7-0718 vfat DellUtility
/dev/sda2 84C44261C4425598 ntfs
/dev/sda3 08A4788FA47880CC ntfs Data
/dev/sda: PTTYPE="dos"
/dev/sdb1 f2b4e379-0afe-43ee-b51d-ec64feba2a6e ext4
/dev/sdb2: PTTYPE="dos"
/dev/sdb3 78D0233FD02302CC ntfs vol
/dev/sdb4 B4C0CA7BC0CA437A ntfs linux
/dev/sdb5 f71272f2-930d-43d7-8ab2-55b53e8b0773 swap
/dev/sdb: PTTYPE="dos"
/dev/sdc1 B8D8-3A16 vfat
/dev/sdc: PTTYPE="dos"

============================ "mount | grep ^/dev output: ===========================
Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sdc1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,i ocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdb1 /media/f2b4e379-0afe-43ee-b51d-ec64feba2a6e ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdb4 /media/linux fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)


================================ sda2/boot.ini: ================================

[boot loader]^M
timeout=30^M
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOW S^M
[operating systems]^M
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect^M
C:\wubildr.mbr = "Ubuntu"^M

=========================== 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='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
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='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
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-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=f2b4e379-0afe-43ee-b51d-ec64feba2a6e 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='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=f2b4e379-0afe-43ee-b51d-ec64feba2a6e 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='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Dell Utility Partition (on /dev/sda1)" {
insmod part_msdos
insmod fat
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 07d7-0718
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Microsoft Windows XP Professional (on /dev/sda2)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 84c44261c4425598
drivemap -s (hd0) ${root}
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/sdc1 during installation
UUID=f2b4e379-0afe-43ee-b51d-ec64feba2a6e / ext4 errors=remount-ro 0 1
# swap was on /dev/sdc5 during installation
UUID=f71272f2-930d-43d7-8ab2-55b53e8b0773 none swap sw 0 0

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


6.6GB: boot/grub/core.img
2.5GB: boot/grub/grub.cfg
2.5GB: boot/initrd.img-2.6.35-22-generic
6.7GB: boot/vmlinuz-2.6.35-22-generic
2.5GB: initrd.img
6.7GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sdb3/Wubi

00000000 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 30 |0000000000000000|
*
00000200



If you're wondering about the boot sector info on sdb3, that's a result of my trying (1-2 days ago) to install Ubuntu from under windows. That didn't work, for another reason I can't remember.

Quackers
January 31st, 2011, 01:09 PM
Which hard drive is the bios set to boot from? Try selecting the 1500GB one, if you haven't already. Ubuntu may boot then. If you've already tried that I would recomment that you delete all traces of the wubi install in Windows, then re-install grub to sdb, mounting sdb1 first.

mrx80
January 31st, 2011, 02:17 PM
Which hard drive is the bios set to boot from? Try selecting the 1500GB one, if you haven't already. Ubuntu may boot then.

BIOS is not set to boot from any one hard drive per se. The boot order (as shown in BIOS) is:


1. CD-ROM
2. External USB
3. Internal HDD

Given the options in the list above, I'm not sure how I can select a specific external device to boot from.


....I would recomment that you delete all traces of the wubi install in Windows,
What do I need to do to delete the wubi install, specifically clear the boot portion of that partition?


....then re-install grub to sdb, mounting sdb1 first.
Is there a guide on how to install grub to a given partition? I assume you mean something like:

1. Reboot using the live USB
2. Mount /dev/sdb1 (assuming the 1500GB HDD is identified as sdb )
3. install grub to /dev/sdb
4. shutdown, disconnect live USB, reboot, hopefully successfully

Is that correct?

Quackers
January 31st, 2011, 03:44 PM
No. Delete everything regarding wubi, from within Windows.
Then boot from the live cd/usb and select "try ubuntu" then when the desktop loads open a terminal, then copy/paste these comands in to the terminal, one line at a time, pressing enter after each line.

sudo mount /dev/sdb1 /mnt
sudo grub-install --root-directory=/mnt /dev/sdb
Then reboot.
Is sdb (your 1500GB drive) the external one?

And you are not installing grub to a partition, as such. You are mounting your Ubuntu partition, then installing grub (or part of it) to the mbr of the hard drive, with the above commands.

mrx80
January 31st, 2011, 04:23 PM
No. Delete everything regarding wubi, from within Windows.
Then boot from the live cd/usb and select "try ubuntu" then when the desktop loads open a terminal, then copy/paste these comands in to the terminal, one line at a time, pressing enter after each line.

sudo mount /dev/sdb1 /mnt
sudo grub-install --root-directory=/mnt /dev/sdbThen reboot.
Is sdb (your 1500GB drive) the external one?

And you are not installing grub to a partition, as such. You are mounting your Ubuntu partition, then installing grub (or part of it) to the mbr of the hard drive, with the above commands.


Yes, the 1500GB drive is the external (USB) one. I'll try the above and post back soon as I'm done. Thanks for all the help so far

Quackers
January 31st, 2011, 04:27 PM
No problem. Good luck :-)

mrx80
January 31st, 2011, 04:53 PM
arg. no dice.

I installed grub, removed the live USB key and rebooted. I got a flash of a screen saying something like "No boot sector on external USB device" or similar. Then Windows started booting up (off the internal HDD). I tried rebooting a couple more times, but never saw that screen again - it went directly to Windows *

I then restarted my machine, and pressed F12 for the boot menu. There was no USB option, only CDROM or internal HDD. I plugged in the live USB key and restarted, and sure enough, an external USB option showed up (!).

I'm now booted up into the live USB linux, and I ran the boot info script one more time. This time, the external HDD is seen as sdc. It was seen as sdc when I installed grub on it a few minutes ago as well. Here's the results.txt:



Boot Info Script 0.55 dated February 15th, 2010

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

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

sda1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Dell Utility: Fat16
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs: /COMMAND.COM

sda2: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM /wubildr.mbr /wubildr

sda3: __________________________________________________ _______________________

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

sdb1: __________________________________________________ _______________________

File system: vfat
Boot sector type: Fat32
Boot sector info: No errors found in the Boot Parameter Block.
Operating System:
Boot files/dirs:

sdc1: __________________________________________________ _______________________

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

sdc2: __________________________________________________ _______________________

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

sdc5: __________________________________________________ _______________________

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

sdc3: __________________________________________________ _______________________

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

sdc4: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 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 63 160,649 160,587 de Dell Utility
/dev/sda2 * 160,650 125,997,794 125,837,145 7 HPFS/NTFS
/dev/sda3 125,997,795 234,436,544 108,438,750 7 HPFS/NTFS


Drive: sdb ___________________ __________________________________________________ ___

Disk /dev/sdb: 1021 MB, 1021125120 bytes
15 heads, 14 sectors/track, 9497 cylinders, total 1994385 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 1,992,703 1,990,656 b W95 FAT32


Drive: sdc ___________________ __________________________________________________ ___

Disk /dev/sdc: 1500.3 GB, 1500301910016 bytes
255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition Boot Start End Size Id System

/dev/sdc1 * 2,048 58,593,279 58,591,232 83 Linux
/dev/sdc2 58,595,326 97,654,783 39,059,458 5 Extended
/dev/sdc5 58,595,328 97,654,783 39,059,456 82 Linux swap / Solaris
/dev/sdc3 97,654,784 1,609,712,999 1,512,058,216 7 HPFS/NTFS
/dev/sdc4 1,609,713,000 1,814,509,619 204,796,620 7 HPFS/NTFS


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 07D7-0718 vfat DellUtility
/dev/sda2 84C44261C4425598 ntfs
/dev/sda3 08A4788FA47880CC ntfs Data
/dev/sda: PTTYPE="dos"
/dev/sdb1 B8D8-3A16 vfat
/dev/sdb: PTTYPE="dos"
/dev/sdc1 f2b4e379-0afe-43ee-b51d-ec64feba2a6e ext4
/dev/sdc2: PTTYPE="dos"
/dev/sdc3 78D0233FD02302CC ntfs vol
/dev/sdc4 B4C0CA7BC0CA437A ntfs linux
/dev/sdc5 f71272f2-930d-43d7-8ab2-55b53e8b0773 swap
/dev/sdc: PTTYPE="dos"

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

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sdb1 /cdrom vfat (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,i ocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/loop0 /rofs squashfs (ro,noatime)
/dev/sdc1 /media/f2b4e379-0afe-43ee-b51d-ec64feba2a6e ext4 (rw,nosuid,nodev,uhelper=udisks)
/dev/sdc4 /media/linux fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)
/dev/sdc3 /media/vol fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_ permissions)


================================ sda2/boot.ini: ================================

[boot loader]
timeout=30
default=multi(0)disk(0)rdisk(0)partition(2)\WINDOW S
[operating systems]
multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP Professional" /noexecute=optin /fastdetect
C:\wubildr.mbr = "Ubuntu"

=========================== sdc1/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='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
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='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
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-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=f2b4e379-0afe-43ee-b51d-ec64feba2a6e 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='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=f2b4e379-0afe-43ee-b51d-ec64feba2a6e 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='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Dell Utility Partition (on /dev/sda1)" {
insmod part_msdos
insmod fat
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set 07d7-0718
drivemap -s (hd0) ${root}
chainloader +1
}
menuentry "Microsoft Windows XP Professional (on /dev/sda2)" {
insmod part_msdos
insmod ntfs
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set 84c44261c4425598
drivemap -s (hd0) ${root}
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 ###

=============================== sdc1/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/sdc1 during installation
UUID=f2b4e379-0afe-43ee-b51d-ec64feba2a6e / ext4 errors=remount-ro 0 1
# swap was on /dev/sdc5 during installation
UUID=f71272f2-930d-43d7-8ab2-55b53e8b0773 none swap sw 0 0

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


6.6GB: boot/grub/core.img
2.5GB: boot/grub/grub.cfg
2.5GB: boot/initrd.img-2.6.35-22-generic
6.7GB: boot/vmlinuz-2.6.35-22-generic
2.5GB: initrd.img
6.7GB: vmlinuz
I'm kinda at a loss as to what's going on. I thought maybe because the external HDD is sometimes being recognized as sdb and other times as sdc is the issue. But then grub would at least load up and complain about a missing image right? that isn't even happening.

At this point, I'm of course open to trying different things to fix this. I'm also open to installing grub on a USB key and configuring it to point to the image on the HDD, in the hope that will work. This will be my backup plan. But first, any further ideas re HDD?





* well, one artifact of the (now deleted) wubi install is that it now gives me a dual-boot option - windows or "ubuntu" - it went to the dual boot screen.

Quackers
January 31st, 2011, 05:31 PM
I see the wubi files are still there. They won't help.

If your bios is not showing an option to boot from the usb hard drive, then it won't boot that drive. Instead of using F12, go into your bios settings and see if the usb hard drive option needs enabling before it can be used. Some do. That might explain why you don't have an option to boot from the usb hard drive.

mrx80
January 31st, 2011, 06:24 PM
I see the wubi files are still there. They won't help.

If your bios is not showing an option to boot from the usb hard drive, then it won't boot that drive. Instead of using F12, go into your bios settings and see if the usb hard drive option needs enabling before it can be used. Some do. That might explain why you don't have an option to boot from the usb hard drive.


I searched high and low for a USB HDD option in BIOS, with no success. I'm guessing that this laptop just doesn't support booting from a USB HDD, although it does support booting from a USB flash drive (aka USB key). Is that even possible?

To get around this, I took another USB key, and installed grub on it with the intention that it seek the image from the USB HDD. I did this by:

1. boot using live USB
2. insert USB HDD cable (recognized by system as /dev/sdc)
3. insert USB key (recognized by system as /dev/sdd)

then


sudo mount /dev/sdc /mnt
sudo grub-install --root-directory=/mnt /dev/sdd


Then I rebooted with the USB grub key and the USB HDD plugged in, but still no go. Something flashed on the screen and I just got a grub console.

Quackers
January 31st, 2011, 06:30 PM
You mounted a whole drive with your first command. sdc1 would have been better, but, to be honest, I don't even know if what you want to do is possible.
I would have thought that if your machine will boot from a flash drive, it would be able to boot from a usb HDD. Is there an option in bios, on a different screen to enable booting from a usb HDD. Sometimes these options can be disabled by default.

mrx80
January 31st, 2011, 06:54 PM
You mounted a whole drive with your first command. sdc1 would have been better, but, to be honest, I don't even know if what you want to do is possible.
I would have thought that if your machine will boot from a flash drive, it would be able to boot from a usb HDD. Is there an option in bios, on a different screen to enable booting from a usb HDD. Sometimes these options can be disabled by default.

Sorry typo in my previous post, I did mount /dev/sdc1

I did think that my machine would be capable of both or neither, but some research tells me that I'm not the only one facing this issue. I looked in all the menus and submenus in BIOS - nothing about enabling USB hard drives.

I guess the next thing I'll try is see if grub on the USB key even recognizes my USB HDD. I'll do this by running the commands in /boot/grub/grub.cfg manually from the grub prompt:



recordfail
insmod part_msdos
insmod ext2
set root='(hd2,msdos1)'
search --no-floppy --fs-uuid --set f2b4e379-0afe-43ee-b51d-ec64feba2a6e
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=f2b4e379-0afe-43ee-b51d-ec64feba2a6e ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic


Hopefully this'll at least work.

Do I need to change hd2 to something else (ie - is the USB HDD going to be seen as hd2 sometimes, then hd1, etc. etc., just like it's seen as sdb sometimes, other times sdc, sdd, etc, depending on what's plugged in)??

nogoodnamesleft
February 1st, 2011, 08:04 AM
I am sure this is BIOS (i.e. DELL) as i said earlier.

The changing drive designation (sda, sdb etc) won't matter as Ubuntu uses UUID to boot.

To fix, enter the BIOS on the lappy and change the boot order. A USB hard drive is just that, a hard drive, so you will also need to set whether it goes first from internal HDD, or first from the USB HDD.

Maybe ask DELL how to do that if you can't figure out the BIOS.

Or try with a CD instead of a USB HDD.