Re: Installing Linux on a USB hard disc

From: Bill Unruh (unruh_at_string.physics.ubc.ca)
Date: 01/07/05


Date: 7 Jan 2005 16:02:15 GMT

iamfractal@hotmail.com writes:

>Hi, folks!

> I bought a lovely Freecom external USB hard disc (with its shiny,
>blue LED).

> My Dell laptop has WindowsXP, and I wanted to smack Linux all over
>the external disc. (I specifically do not want to repartition the
>laptop's internal disc)

> I hit problems with SUSE 8.2, 9.1, Fedora 2 and Ubuntu (something),
>and googling tells me that the problem is not having usb modules
>loaded at boot, so Linux can't see the hard disc, and can't find init.

> The recommendation from emails concerning this was: a) Use a boot
>floppy, or b) recompile the kernal with usb support built-in.

> I don't want to do (a), so I'll try (b).

> But here is the problem: I don't have a Linux system in which to
>compile a new kernel with the required modules.

> Can I compile Linux under (try not to laugh) WindowsXP?

> I don't have a Knoppix right now, but could I compile a kernel
>under a liveCD Linux?

> Is there anyway to just change a configuration script to force the
>kernel, during boot, to add the USB modules?

> And finally: is there any distribution out there that has the USB
>modules compiled into the kernel already, so that I can just install
>that one?

Sorry-- to continue my previous ruminations.

You could try the following.
Install your linux distro onto the usb drive and make a boot disk so you
can initially get into it. Now copy the /boot directory onto one of the
Windows partitions. To do this you will have to have a vfat drive
somewhere. You could make a small partition on the usb disk for that --
this is to allow communication between linux and windows. (Windows cannot
read a linux filesystem, and linux cannot yet write to an ntfs partition).
Copy the contents of /boot to that vfat partition, and then bootup windows
and copy the contents to a windows partition located somewhere on a windows
disk, with a kernel you compiled with usb support built into the kernel

Now boot up linux again, using the boot floppy or cdrom and place an entry
into lilo.conf

image=/mnt/windows/boot/vmlinux
        label="linwin"
        root=/dev/hdusb1 ---> or whatever the / directory is as listed in /etc/fstab
        initrd=/mnt/windows/boot/initrd.img
        read-only

Where you have mounted the windows partition containing the /boot onto
/mnt/windows

I have no idea if this will work. I do not see why not, but that may just
display my deep ignorance. thus, I accept no responsibility if this causes
your computer to self destruct, your wife to leave you, your cat to scratch
you, or causes any other damage to anyone at all or to any thing at all, forseeable or not.



Relevant Pages

  • Re: Issue with mounting USB-2 flash-drives on Red Hat 6
    ... We have used USB backup for our users for years ... the windows title bar of the command prompt window this batch file ... Assumes your linux box has a windows box 'name' ... for using usb flash drives was usb-storage ...
    (comp.databases.pick)
  • Re: Open Office Excel Equivalent
    ... Then MS must have had rather cunning business strategies, ... Note that that leaves 13% and gaining for FOSS, mostly Linux. ... Windows boxes: Hundreds. ... I've read similar horror stories about USB under Win7. ...
    (sci.electronics.design)
  • Re: Problems installing FC4 on Dell Optiplex GX620
    ... Did you ever try to install Windows 2000 or XP ... Windows 2000 was not installable from a USB CDROM when I attempted to try that method. ... Newer versions of Linux distributions can either regress or progress. ... The original question was in regard to getting the person able to install on a system Dell Optiplex GX620 which can be configured in a host of different form factors. ...
    (Fedora)
  • Re: OT: Ping eeePC owners
    ... 'Use Linux' section? ... the details state "To use your 3 USB modem you?ll need a few ... space, 1 free USB port, a Windows 2000, XP, Vista or and Mac OSX ... there were times a keyboard would have been an advantage. ...
    (uk.comp.sys.mac)
  • Re: FW: FW: FW: [SLE] Urgent! Need help!
    ... > while trying to re-partition the Windows partition from within Window. ... > wanted to shrink it down and use the extra space to expand my Linux Swap ... > recovery before and did a bunch of things wrong. ...
    (SuSE)