LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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-20-2008, 09:02 PM   #1
zaxonus
Member
 
Registered: Jul 2005
Posts: 66

Rep: Reputation: 15
CentOS / USB stick.


Hello,

Has anyone been able to install CentOS on a USB flash memory ?

When I try, it starts booting but stops on the way.
I must not be giving the right parameters to the kernel.

If someone has been successful, please let me know how you do.

Thanks for any help.
 
Old 02-21-2008, 05:42 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
This is written for Scientific Linux's (another RHEL "clone") LiveCD on USB, but should also work for the CentOS Live CD;

http://linux.web.psi.ch/livecd/usbdisk.html
 
Old 02-21-2008, 08:54 PM   #3
zaxonus
Member
 
Registered: Jul 2005
Posts: 66

Original Poster
Rep: Reputation: 15
Thanks for the tip. Unfortunately it does not help me much. I already have Scientific Linux installed on a USB key. The parameters passed to the kernel are not the same and I do not see any indication telling me how to congigure menu.lst(or GRUB) or isolinux.cfg (or whatever similar file) for CentOS on a USB stick. I think this is what I need to know. At this point, I just copied the parameters from the config file on the liveCD; but this is probably not the right thing to do.
 
Old 02-22-2008, 10:08 AM   #4
graymon
LQ Newbie
 
Registered: Feb 2008
Posts: 5

Rep: Reputation: 0
I've had really bad luck using syslinux to boot from usb drives. Grub was much more reliable, although more difficult to setup.

grub-install --recheck /dev/sd? --root-directory=/boot/place_for_files

you will then need to point grub to the kernel and initrd using the grub.conf file in the /boot/folder. I copied the contents of my /boot folder from fedora into the /boot folder on the usb key. after tuning up the grub.conf file it worked. You may need to play around with the root (hd0,0) or root (hd1,0) to get the key to work, as it seems like the bios changed the drive orders based on whether the key is plugged in as boot time. Anyway - it was way more reliable than syslinux.
 
  


Reply



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 Do mount USB stick connected to pcmcia-usb-adapter Raamisaha Linux - Newbie 3 02-11-2008 10:46 AM
*** USB external hard drive and USB memory stick linux_2007_ Linux - General 1 07-17-2007 04:20 PM
Boot from USB stick if no booting USB in Bios 1kyle SUSE / openSUSE 1 03-26-2007 12:24 AM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
USB problems: Memorex USB stick 256MB and PSX to USB adapter by Radio Shack Knuckles T15 Linux - Hardware 1 05-19-2004 06:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:05 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
Open Source Consulting | Domain Registration