Fedora Linux Support Community & Resources Center
  #1  
Old 3rd April 2009, 06:50 PM
tdcrooks Offline
Registered User
 
Join Date: Dec 2007
Age: 30
Posts: 74
Boot from external hard drive [USB]

Hey everyone,

I have an installation of CentOS on a hard drive for school, which works, but I wanted to work on it at home on my laptop.

I have an external hard drive enclosure that I use for backups, so I took my backup drive out, put the CentOS drive in, booted up my laptop, and chose boot from USB on the boot menu [after hitting F12].

It successfully goes to the CentOS splash screen, and starts booting up CentOS, but one or more services fail [one I know for sure was iptables] then it goes to my Fedora 10 login screen for some reason

Anyone have any ideas as to how I can boot up CentOS from my external drive successfully?

Much appreciated.
__________________
tdcrooks

I'm heading towards a career in Linux and I'm looking to learn as much as possible, so your answers to my questions are appreciated.

Registered Linux User: #468950

http://rootblock.wordpress.com
Reply With Quote
  #2  
Old 4th April 2009, 05:41 PM
tdcrooks Offline
Registered User
 
Join Date: Dec 2007
Age: 30
Posts: 74
No ideas anyone?
__________________
tdcrooks

I'm heading towards a career in Linux and I'm looking to learn as much as possible, so your answers to my questions are appreciated.

Registered Linux User: #468950

http://rootblock.wordpress.com
Reply With Quote
  #3  
Old 4th April 2009, 05:50 PM
tsyshadow Offline
Registered User
 
Join Date: Oct 2008
Location: Arizona
Age: 25
Posts: 13
The problem, I think, is that its loading the CentOS Kernal and initrd, but booting your Fedora 10 Partition. Check your grub configureation on your CentOS Drive, I think you'll find that its sent to boot to the wrong hard disk.
Reply With Quote
  #4  
Old 4th April 2009, 06:22 PM
bruno.taglienti Online
Registered User
 
Join Date: Jul 2005
Location: Roma
Age: 72
Posts: 195
Check the value of root=... in the kernel line of your grub.conf. This value must point to the root file system of your CentOS installation
__________________
Bruno Taglienti
Reply With Quote
  #5  
Old 4th April 2009, 06:50 PM
tdcrooks Offline
Registered User
 
Join Date: Dec 2007
Age: 30
Posts: 74
Hmmm you know what, I think that line has the same "default, non-renamed at installation" information for both my CentOS drive and my laptop's Fedora drive...


Here's my CentOS grub.conf

Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-92.el5)
	root (hd0,0)
	kernel /vmlinuz-2.6.18-92.el5 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.18-92.el5.img

And here's my fedora grub.conf

Code:
title Fedora (2.6.27.12-170.2.5.fc10.i686)
	root (hd0,0)
	kernel /vmlinuz-2.6.27.12-170.2.5.fc10.i686 ro root=/dev/VolGroup00/LogVol00 rhgb quiet vga=0x318
	initrd /initrd-2.6.27.12-170.2.5.fc10.i686.img

I'm willing to rename either of the lines that have this:

Code:
root=/dev/VolGroup00/LogVol00
That is, for either OS.

What's the safest way do this without killing the respective installation?
__________________
tdcrooks

I'm heading towards a career in Linux and I'm looking to learn as much as possible, so your answers to my questions are appreciated.

Registered Linux User: #468950

http://rootblock.wordpress.com
Reply With Quote
  #6  
Old 4th April 2009, 07:10 PM
bruno.taglienti Online
Registered User
 
Join Date: Jul 2005
Location: Roma
Age: 72
Posts: 195
It is clear that you use the same root file system for Fedora 10 and CentOS and this is wrong.
Try to understand what is the root CentOS partition and use it in the relevant line of
grub.conf
__________________
Bruno Taglienti
Reply With Quote
  #7  
Old 4th April 2009, 07:24 PM
tdcrooks Offline
Registered User
 
Join Date: Dec 2007
Age: 30
Posts: 74
Quote:
Originally Posted by bruno.taglienti View Post
It is clear that you use the same root file system for Fedora 10 and CentOS and this is wrong.
Until yesterday the two drives in question never even came close to each other - my CentOS drive always remained at school. I think it's just that they happen to have the same logical volume names and this is causing some sort of confusion for my laptop.

This is strange since I would expect my laptop to ignore what it's own drives logical volumes are named if I'm choosing to boot from USB...

By the way though, this is just my understanding, if I'm wrong, correct me by all means.
__________________
tdcrooks

I'm heading towards a career in Linux and I'm looking to learn as much as possible, so your answers to my questions are appreciated.

Registered Linux User: #468950

http://rootblock.wordpress.com
Reply With Quote
  #8  
Old 4th April 2009, 08:49 PM
bruno.taglienti Online
Registered User
 
Join Date: Jul 2005
Location: Roma
Age: 72
Posts: 195
I am completely ignorant on LVM topics. In a non-LVM situation you can distinguish devices using
labels or UUID. Try to understand if the same (or analog) concepts can be applied on LVM
__________________
Bruno Taglienti
Reply With Quote
  #9  
Old 4th April 2009, 09:02 PM
bruno.taglienti Online
Registered User
 
Join Date: Jul 2005
Location: Roma
Age: 72
Posts: 195
vgdisplay -v should give UUID for all your LV.

Once you discover the UUID of the CentOS root fs, use root=UUID=....... in grub.conf instead of:
root=/dev/VolGroup00/LogVol00

UUID are unique, so the Fedora 10 and CentOS root fs must have different UUID
__________________
Bruno Taglienti
Reply With Quote
  #10  
Old 4th April 2009, 11:09 PM
tdcrooks Offline
Registered User
 
Join Date: Dec 2007
Age: 30
Posts: 74
Quote:
Originally Posted by bruno.taglienti View Post
Once you discover the UUID of the CentOS root fs, use root=UUID=....... in grub.conf instead of: root=/dev/VolGroup00/LogVol00
Dude, typing this:

Code:
root=UUID=
causes kernel panic.

I modified what you said to say just this

Code:
UUID=
instead [ with the proper UUID following "UUID=" ], and THAT worked.


I'm so far able to boot up CentOS on a desktop computer with this method. I'm gonna try it through USB again now and let you know if it worked.
__________________
tdcrooks

I'm heading towards a career in Linux and I'm looking to learn as much as possible, so your answers to my questions are appreciated.

Registered Linux User: #468950

http://rootblock.wordpress.com
Reply With Quote
Reply

Tags
boot, drive, external, hard, usb

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Slow boot up USb external hard drive i386 F11 install Anniedog Installation, Upgrades and Live Media 2 31st July 2009 02:25 PM
Booting from USB external drive instead of internal hard drive davrom Hardware & Laptops 2 24th November 2008 11:56 AM
Intall Fedora 5 on an external hard drive, but can't boot up yinglcs Installation, Upgrades and Live Media 5 14th April 2007 09:24 PM
How can I rename the drive in my external hard drive yinglcs Using Fedora 3 14th February 2007 02:20 AM
Can't Boot Into FC6 - External USB Hard Drive mikeTM EOL (End Of Life) Versions 36 22nd December 2006 07:42 AM


Current GMT-time: 07:59 (Wednesday, 22-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Lukhovitsy Travel Photos - Fuzhou Travel Photos - Petrogradka