Solved

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

Posted on 2004-10-06
3
251 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
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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

In this tutorial I will explain how to make squid prevent malwares in five easy steps: Squid is a caching proxy for the Web supporting HTTP, HTTPS, FTP, and more. It reduces bandwidth and improves response times by caching and reusing frequently-…
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

744 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now