LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-21-2011, 12:15 PM   #1
Allli
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Rep: Reputation: Disabled
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

Last edited by Allli; 10-21-2011 at 12:25 PM.
 
Old 10-21-2011, 12:42 PM   #2
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
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??

Last edited by Larry Webb; 10-21-2011 at 12:44 PM.
 
Old 10-21-2011, 12:45 PM   #3
Allli
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
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!
 
Old 10-21-2011, 01:41 PM   #4
Cr0wb4r
Member
 
Registered: Feb 2011
Distribution: Debian
Posts: 47

Rep: Reputation: 6
Quote:
Originally Posted by Allli View Post
If it's ok, tell me!
That should be just fine.
 
Old 10-22-2011, 03:32 AM   #5
Allli
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
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!
 
Old 10-22-2011, 05:41 AM   #6
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Where is fdisk /dev/sda?

Do you have anything on your new hd?

Last edited by Larry Webb; 10-22-2011 at 05:42 AM.
 
Old 10-22-2011, 07:05 AM   #7
Allli
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 10-22-2011, 08:04 AM   #8
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
It will not if your usb is first boot in bios.
 
Old 10-22-2011, 08:07 AM   #9
Larry Webb
LQ Veteran
 
Registered: Jul 2006
Location: Crystal Beach, Texas
Distribution: Suse for mail +
Posts: 5,100
Blog Entries: 7

Rep: Reputation: 229Reputation: 229Reputation: 229
Quote:
Originally Posted by Allli View Post
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.
 
Old 10-22-2011, 08:35 AM   #10
Allli
LQ Newbie
 
Registered: Oct 2011
Posts: 5

Original Poster
Rep: Reputation: Disabled
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting Linux on an external USB hard drive (not a memory stick, a hard drive) comcastuser Linux - Hardware 4 01-13-2010 07:59 PM
Grub Error 21 with USB External Hard Drive and Other Problems drubru Linux - Newbie 7 05-16-2009 08:03 PM
Grub, Stage1, and GRUB/BIOS detection of external hard drive godfigure Linux - Newbie 1 03-10-2009 03:51 AM
external enclosure for an internal hard drive vs external USB hard drive powah Linux - Hardware 1 03-10-2006 10:03 AM
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 09:48 AM


All times are GMT -5. The time now is 09:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration