LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 02-01-2013, 03:55 PM   #1
glvorange
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Rep: Reputation: Disabled
Exclamation fixing grub after install to usb drive


I just installed clearos (centos) on my usb stuck but after rebooting grub drops to the rescue prompt. How can I fix grub? I'm running fedora 17 on my laptop so I can run any commands there. I tried the "install-grub2 /dev/sdb1" but that doesn't seem to work.
 
Old 02-01-2013, 05:50 PM   #2
John VV
Guru
 
Registered: Aug 2005
Posts: 12,840

Rep: Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710
i take it you did not heed all the warnings about installing to a usb
make 100% sure that the os installing on the usb puts the bootloader ON the usb

reinstall fedoras grub to the drive

Quote:
"install-grub2 /dev/sdb1" but that doesn't seem to work.
is sdb1 your fedora boot partition ? ( first partition on the second drive )
if so what is on sda1 ?


or

is sdb your usb ?
 
Old 02-02-2013, 01:15 AM   #3
glvorange
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Well it was the only drive connected to the motherboard, the install was from DVD.
Doing "fdisk -l" lists my usb stick (on the fedora laptop) as sdb with tbe primary boot partition; with the *; as sbd1. There's an error trying to copy grub to sdb1 but it can be copied to sdb although grub still doesn't work when swapping sdb1 for sdb.

The usb drive has clearos on it.
 
Old 02-02-2013, 08:53 PM   #4
John VV
Guru
 
Registered: Aug 2005
Posts: 12,840

Rep: Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710Reputation: 1710
you are fallowing the guide on the CentOS wiki ?
http://wiki.centos.org/TipsAndTricks/ReinstallGRUB
 
Old 02-03-2013, 02:36 AM   #5
glvorange
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
It seems like I have the same problem as this person here:
http://grokbase.com/t/centos/centos/...lling-from-usb
Haven't had a chance to try it yet.
 
Old 02-03-2013, 02:26 PM   #6
glvorange
LQ Newbie
 
Registered: Jun 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Solved

I managed to fix it by pre-formatting the drive with gparted and making sure to align to sector instead of MiB. With the sector set to 63, everything works perfectly
 
  


Reply

Tags
grub, usb boot


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make bootable partion on USB drive to install GRUB... psmurthy Linux From Scratch 7 03-14-2010 11:24 AM
Install from USB drive. What to type at Grub>? snowweb Linux - Newbie 1 09-09-2009 12:03 AM
How to install Grub to MBR of USB drive? linus72 Linux - Newbie 1 04-11-2009 11:48 AM
install lilo/grub on a USB flash drive? flystar06 Linux - General 3 06-14-2005 08:48 PM
Fixing frozen GRUB after I reloaded a ghost image to a drive linlu LinuxQuestions.org Member Success Stories 4 08-25-2004 09:47 AM


All times are GMT -5. The time now is 03:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration