Solved

Windows on the internal Drive, Gentoo on an external USB Drive

Posted on 2004-10-06
3
257 Views
Last Modified: 2013-12-15
Hi

I tried installing Gentoo 2004.2 on an external USB Drive attached to my laptop. This worked fine up until rebooting after installing the bootloader.
I know the drive recognised as /dev/sda in linux and the partitions on it are:
/dev/sda1 windows ntfs (no OS installed)
/dev/hda2 Extended partition
/dev/sda5 /boot ext3
/dev/sda6 swap
/dev/sda7 /  ext3
the device /dev/hda has only one partition:
/dev/hda1 windows ntfs (windows installed)

I have installed lilo on /dev/hda.
Here's my lilo.conf:

-----
boot=/dev/sda            
           timeout=50                
           default=gentoo            
           vga=788                  
                 
           
           image=/boot/kernel-2.4.26-gentoo-r6
             label=gentoo
             read-only
             root=/dev/ram0
             append="init=/linuxrc ramdisk=8192 real_root=/dev/sda7"
             initrd=/boot/initrd-2.4.26-gentoo-r6
           
           other=/dev/hda1
             label=windows
-----

When i try to boot, its says:
Block device dev/sda is not a valid root device...
The root block device is unspecified or not detected.
please specify a device to boot, of "shell"for a a shell...
After which it asks me for the root partition.

So it seems it cant detect the drive/partition.(i tried to manually enter the root partition, but to no avail)

What do i need to do to make linux boot from the external drive?

Thanks in advance
0
Comment
Question by:RusherNL
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 40

Accepted Solution

by:
jlevie earned 250 total points
ID: 12243600
I don't know about Gentoo, but having done something similar with RHEL 3.0 I can state that the initrd image must be custom build to include support for USB to be able to boot a system from a USB drive. Basically you have to force 5 modules into the initrd image. I don't have those notes with me right now or I'd add the procedure to this comment.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question