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 09-18-2004, 03:51 PM   #1
friedrice4u
LQ Newbie
 
Registered: Sep 2004
Posts: 15

Rep: Reputation: 0
booting Linux from external USB 2.0 device


I had a 40 gig internal IDE harddrive that was fully configured with Fedora Core 2. However, I took that harddrive out and converted it into a external usb 2.0 device.

I installed a fresh 160gig IDE harddrive and it has windows xp on it.

I want to be able to boot into linux if i tell my bios to boot from USB HDD, this works up to the point of the Grub bootloader, but when i select my linux kernel i get a kernal panic... maybe the USB HD is still pointing to itself as it it were an internal IDE?

here's the error i get after i select the kernel from GRUB:

Uncompressing Linux... Ok, booing the kernel.
audit(1095540111.742:0): initialized
Red Hat nash version 3.5.22 starting
mkrootdev: label / not found
mount: error 2 mounting ext3
pivotroot: pivot_root(/sysroot, /sysroot/intrd) failed: 2
umount /initrd/proc failed: 2
Kernel panic: No init found. Try passing init= option to kernel



and here's the config i have for grub:

root(hd0,0)
kernel /vmlinuz-2.6.8.1 ro root=LABEL=/ rhgb quiet
initrd /initrd-2.6.8.1.img


any ideas? thanks.
 
Old 09-18-2004, 04:47 PM   #2
arno
Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: fedora core 8, suse 10.3, ubuntu 7.10, kamikaze 7.09
Posts: 515

Rep: Reputation: 30
I have done some reading on the net and found the following information.

http://www.simonf.com/usb/
 
Old 09-19-2004, 07:44 AM   #3
aus9
Guru
 
Registered: Oct 2003
Posts: 5,056

Rep: Reputation: Disabled
once you figure out a nice initrd image, it is likely you will also need to amend your grub.

Grub detects normally from IDE to external so your usb will become
(hd1) and its boot partition becomes (hd1,0)

2) it is likely you may want to put /boot after kernel like this
kernel /boot/vmlinuz etc

3) it is also likely you need to amend your kernel line now you have an usb rather than ide so this fragment could be

kernel /boot/vmlinuz root=/dev/sda1 ro sda=ide-scsi

4) Being lazy I would recommend you use a knoppix or sysresccd (rescue cd) to see what it AUTODETECTS you may need to write stuff down at boot or go into the file /etc/fstab then match your grub stuff.

5) Use the option at mbr boot with grub to press E to edit your current boot lines to amend the root and the kernel etc

roughly try

root (hd1,0)
kernel /boot/vmlinuz root=/dev/sda1 ro sda=ide-scsi
initrd /initrd.img (or initrd.gz).......remember you have to create this one.

6) This edit is only temporary so no save occurs of the right option so you could try the above with out the initrd line and see what happens??

Last edited by aus9; 09-19-2004 at 07:46 AM.
 
  


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
Can you recommend an external USB sound device? hellwyn Linux - Hardware 2 11-14-2005 04:04 PM
booting linux from a usb external drive dr_zayus69 Linux - Hardware 4 08-18-2005 05:57 AM
cannot copy from usb external device kpachopoulos Fedora 0 06-11-2005 01:12 PM
External USB device onelung02 Slackware 1 03-05-2005 09:02 PM
Installing Linux on external USB 2.0 device k_wjss Linux - Newbie 9 09-30-2004 04:07 AM


All times are GMT -5. The time now is 10:34 PM.

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