LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Grub on External USB Hard Drive (https://www.linuxquestions.org/questions/linux-newbie-8/grub-on-external-usb-hard-drive-909364/)

Allli 10-21-2011 11:15 AM

Grub on External USB Hard Drive
 
I had grub with WIN7 and Ubuntu on my old laptop hard drive. I replaced it with a SSD.

Now I have connected the old drive through a USB adapter and I want to boot from it.

But this comes up:

unknown filesystem
grub rescue>


There is no problem when I connect it with SATA.
how can I fix this and boot from old device through USB?

I used the commands available in rescue mode and I changed prefix and root to different partition but no help! these are the outputs:

ls
(hd0), (hd0,5), (hd0,6), (hd0,7), (hd0,1), (hd1)
set
prefix=(hd0,6)/boot/grub
root=hd0,6

Larry Webb 10-21-2011 11:42 AM

If you have a ubuntu disk use it as a live cd.

Go to terminal and use command

sudo fdisk -l (small L)

Post results.

Which version of ubuntu are you using??

Allli 10-21-2011 11:45 AM

I don't got a CD drive, but I can boot live SLAX from USB then connect my old hard drive through second USB and do this.
If it's ok, tell me!

Cr0wb4r 10-21-2011 12:41 PM

Quote:

Originally Posted by Allli (Post 4504486)
If it's ok, tell me!

That should be just fine.

Allli 10-22-2011 02:32 AM

This is what I got for the old hard drive connected via USB:

Quote:

Disk /dev/sdc: 250.0GB, ... bytes
255 heads, 63 sectors/track, 30401 cylinders
...
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 5099 40957686 7 HPFS/NTFS
/dev/sdc2 5100 30401 203238315 f W95 Ext'd (LBA)
/dev/sdc5 5100 28871 190942251 7 HPFS/NTFS
/dev/sdc6 28872 30087 9767488+ 83 Linux
/dev/sdc7 30088 30401 2522173 82 Linux swap
Thank you for helping me out!

Larry Webb 10-22-2011 04:41 AM

Where is fdisk /dev/sda?

Do you have anything on your new hd?

Allli 10-22-2011 06:05 AM

As I thought that booting from external device had nothing todo with my internal new SSD drive I didn't post those information.
Anyway, this is info of it:

Quote:

Disk /dev/sda: 60.0GB, ... bytes
255 heads, 63 sectors/track, 7297 cylinders
...
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 102400 7 HPFS/NTFS
Partition 1 dose not end on cylinder boundary
/dev/sda2 13 2550 20377600 7 HPFS/NTFS
/dev/sda3 2550 7298 38132736 7 HPFS/NTFS
I have installed windows 7 32b on it.

Larry Webb 10-22-2011 07:04 AM

It will not if your usb is first boot in bios.

Larry Webb 10-22-2011 07:07 AM

Quote:

Originally Posted by Allli (Post 4505092)
As I thought that booting from external device had nothing todo with my internal new SSD drive I didn't post those information.
Anyway, this is info of it:

I will not if your usb device is first boot in bios.

Allli 10-22-2011 07:35 AM

yes, it's
because gtub is on the external hard drive which is connected through USB
grub loads, but it can't detect the external partitions


All times are GMT -5. The time now is 05:06 PM.