LinuxQuestions.org
Review your favorite Linux distribution.
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 10-03-2006, 09:53 PM   #1
Ben Cook2
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Rep: Reputation: 0
How Do You Configure Linux To Run From A Usb Drive?


I Have A 100 GB External Hard Drive And Want To Install Linux On To It. I Am Thinking Of Using OpenSUSE, I Found Instructions On The Internet, Which Are Below. When I Tried To Do Them However I Got Lost At Step 7 Where It Started Speaking Of Adding The Kernel And The Initrd Image To Gub In The Master Boot Record, But How Do I Do This?

Thanks,

Ben

Instuctions:

In the case of suse, you do this by:

1. Install Suse to the USB device (/sda, or sdb etc) - make sure you select to have the grub bootloader installed on the USB drive too, and not the Master drive.
2. Boot from the CD into Rescue mode
3. Issue the following commands:

'mkdir /mnt/sysimage'
'mount /dev/sdaX /mnt/sysimage'
'chroot /mnt/sysimage'
NOTE: sdaX refers to the partition u installed Suse on and the mapping of the USB drive (could be /sdb or similar too).

4. Use VI to edit the following file - /etc/sysconfig/kernel'
5. Add the following into the quotes at the line that has: INITRD_MODULES=" "
ehci-hcd
ohci-hcd
uhci-hcd
sd_mod
usb-storage


THIS LINE SHOULD NOW LOOK LIKE THIS:

INITRD_MODULES="reiserfs ehci-hcd ohci-hcd uhci-hcd usb-storage sd_mod"

6. Issue the following commands:

'mount -tproc none /proc'
'mkinitrd'

7. Add the kernel and initrd image to the boot grub loader on the master boot record (NOTE: for the initrd line, just add initrd (hd1,6)/boot/initrd - where hd1,6 is relevant to your partition setup)

A typical default Suse 9.2 install grub line for this setup would look like below (be sure to substitute according to your configuration):

title Suse 9.2 (USB)
kernel (hd1,1)/boot/vmlinuz-2.6.8-24-smp ro root=/dev/sda2
initrd (hd1,1)/boot/initrd

8. REBOOT!!!
 
Old 10-04-2006, 01:19 AM   #2
darinbolson
Member
 
Registered: Jan 2006
Distribution: multi booting whatever I feel like. Grub rocks!
Posts: 85

Rep: Reputation: 15
Have you tried puppy on usb? It installs very easily and has a wide range of apps.
 
Old 10-07-2006, 03:29 AM   #3
Ben Cook2
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks For The Puppy Live CD Idea But It Would Be Really Good To Try To Install OpenSUSE/Ubuntu As Some People Have Done It. I Just Get Lost At How To Change The GRUB Boot Parameters, And Where Would I Change Them?
 
Old 10-07-2006, 09:09 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,993

Rep: Reputation: 5681Reputation: 5681Reputation: 5681Reputation: 5681Reputation: 5681Reputation: 5681Reputation: 5681Reputation: 5681Reputation: 5681Reputation: 5681Reputation: 5681
The grub boot parameters are located in the grub menu file i.e. /boot/grub/menu.lst. Use any text editor like vi to modify the file with your new initrd name.
 
Old 10-08-2006, 03:10 PM   #5
Ben Cook2
LQ Newbie
 
Registered: Aug 2006
Posts: 16

Original Poster
Rep: Reputation: 0
Thanks For That Information But I Have Just Learned That SUSE 10.1 Setup Can Correctly Write/Configure The Initrd File & The Kernel. And Therefore The Boot Lines
Source: http://www.suseforums.net/index.php?showtopic=23904&hl= [It's Oldmans Post]
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install, configure, run alcatel speedtouch 330 usb adsl modem on fedora core 4 shang3000 Linux - Networking 0 08-02-2006 06:14 PM
USB Drive Auto run tansengkai Linux - Software 0 01-03-2006 09:41 PM
can't configure new iomega rev 35/90 usb drive jordanthompson Linux - Hardware 10 09-17-2005 08:29 PM
Configure Linux to run an arcade game toxy Linux From Scratch 2 09-09-2005 07:38 PM
Boot an run linux on USB flash drive possible? zahoo Linux - General 1 03-20-2005 04:12 PM

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

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

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