PDA

View Full Version : Installing on USB Harddisk -> help anyone?



hgoor
08-15-2005, 07:48 PM
Hi all,

I have Googled a lot to find the answer to the following question(s), but I can't find it anywhere, so I hope to find help here.

Here is what I want:

I have a 40gb 2 1/2" external USB 2.0 harddisk. I would like to have the Knoppix 4.0 DVD run from it as if it is a DVD (so with hardware detection etc..)

So that way I will be able to boot from it from different machines with different hardware, just as I would from the DVD. That way I have a portable Linux distro with me and I can store data and access it from the USB harddisk. Also handy for systems that do not have a DVD but CD only.

Ideally it should also run with a USB 1.1 system...

A) Is the above scenario at all possible
B) If yes: how?
C) If no, can I install Linux (any flavor) on my USB and boot from it?

Remember: I'm pretty much a Linux noob, so please be specific with any pointers or solutions :wink:

ps: most systems I work on do have the option to boot either from USB HDD or USB floppy or LS120 (or something like a big floppy/zip drive?)...

hgoor
08-16-2005, 05:36 PM
Anyone? :cry:

skjsun
08-18-2005, 02:15 PM
I have exactly the same "fantasy" as yours, I have tried many linux distribution but not yet including KNOPPIX(I have heard that the software installation is quite different from an origional Debian, that is, the HD-installed KNOPPIX is no longer a Debian), the following observations are based on non-LiveCD/DVD linux.
1. buy a NB or desktop which does not have a very "new" hardware, esp. graphics, network chip.
2. if you follow step.1, then maybe many Linux distributions can be installed successfully, if not, then the "Mandrake Linux 10.1 official" can be the first try, you may successfully reboot from USB HD "for the first time", but then you probably will get "kernel panic..." and can not boot any more. but somebody have succeeded that way, it really depends on the specific hardware(even the same NB model has different outcome !), but if you install from a desktop PC instead of a new NB, it mabye be easier.
3. if you find no luck in step 2. try install Mandrake Linux 9.2 then "upgrade" it to Mandrake Linux 10.1 official but does not configre the network, you will be able to boot from USB HD almost 100%, but if you configre the network, it will probably get "kernel panic..." and can not boot any more. again, if you install from a desktop PC instead of a new NB, it mabye be easier.
4. then you can manually configre the network, not the usual one from control center, which I have not succeeded...(maybe you can)
5. FC core 4 can not even showup its installation startup picture on my NB(Asus M6N)
6. KNOPPIX 4.0 DVD is the most powerful Linux I have ever seen, but socftware installation not "rpm" type, but debian type, which I am not familiar with, and have some dependency problems, some software just can find its .deb counterpart, and alien the rpm usually get lots of errors.
hope they help, if you find out some clean solution, I will be very looking forward to it.

hgoor
08-18-2005, 07:47 PM
Well, buying a laptop kind of defies the whole idea of having a portable OS with you. With a laptop you have both hardware AND software. In my solution (which by the way: more and more distro's are now made to work from a USB stick!) you have a portable OS that you can use with any (host) hardware/PC.

But reasearching some more into this subject already made me come up with something I think would be the scenario needed to achieve this:

1) 2 partitions on my HDD: one that is either fat16 or 32 to be able to boot from (probably emulating either a LS120 floppy or just USB-boot)
2) Have the DVD image on its own partition
3) have some sort of bootsector that loads the DVD image, boot Knoppix and start
4) use the fat partition to be able to 'share' files between Knoppix and other OS's, write all settings etc... (home/dir)

I was just hoping that anyone could somehow guide me on how to achieve all that....

PS: I do run SUSE 9.3 Professional on a desktopsystem as a secondary OS, and I have used both Red Hat (untill it became commercial) and Mandrake (untill it became Mandriva) so I do have limited Linux experience....

d00m3d
08-21-2005, 02:43 AM
Be warned, Knoppix is designed to be a LiveCD in principle. The use and installation to any media are at your own risks.

I haven't tried the installation of Knoppix-4.0 DVD version, but installing Knoppix to a USB is indeed possible, but tricky.

I have installed successfully Knoppix3.9 to a USB HDD, major steps are:

1. Prepare a custom kernel without the ub support
2. Install Knoppix into USB HDD, GRUB will fail at this point because of the nasty ub support
3. Reboot an existing Linux system (or other LiveCD without ub), chroot into the Knoppix-partition in your USB HDD and install the custom kernel from (1).
4. Make few changes to the mkinitrd.conf and modules in the /etc/mkinitrd directory
5. Create a initrd for this kernel so that the kernel is capable to find the necessary modules during boot process.
6. Install GRUB into the MBR of your USB HDD

I know Knoppix-4.0 already get rid of the ub, so it may be more straightforward.

If you are still interested in the steps as described above, I may write in more details.

If you don't want to go thru these tedious steps, then the easiest way is to download and install the latest version of Kanotix (bleeding edge variant of Knoppix).

craigerd2
08-21-2005, 03:08 AM
I know this is not what you are looking for but could you not:


Boot from usb flash or CD and tell knoppix to run from iso image on external usb hardrive or will it not be detected at that point?

hgoor
08-21-2005, 10:31 AM
Be warned, Knoppix is designed to be a LiveCD in principle. The use and installation to any media are at your own risks.

I haven't tried the installation of Knoppix-4.0 DVD version, but installing Knoppix to a USB is indeed possible, but tricky.

I have installed successfully Knoppix3.9 to a USB HDD, major steps are:

1. Prepare a custom kernel without the ub support
2. Install Knoppix into USB HDD, GRUB will fail at this point because of the nasty ub support
3. Reboot an existing Linux system (or other LiveCD without ub), chroot into the Knoppix-partition in your USB HDD and install the custom kernel from (1).
4. Make few changes to the mkinitrd.conf and modules in the /etc/mkinitrd directory
5. Create a initrd for this kernel so that the kernel is capable to find the necessary modules during boot process.
6. Install GRUB into the MBR of your USB HDD

I know Knoppix-4.0 already get rid of the ub, so it may be more straightforward.

If you are still interested in the steps as described above, I may write in more details.

If you don't want to go thru these tedious steps, then the easiest way is to download and install the latest version of Kanotix (bleeding edge variant of Knoppix).

Hmm, well maybe I need to clarify something...

I want knoppix 4 on a USB HDD were it should act like its the DVD. So basically the only difference is the medium it's booting from. Now, if you treat the DVD as an ISO-image then I suspect there should be the following involved:

a) bootimage to actaully boot from from the USB HDD
b) some way to mount the ISO-image
c) continue booting and the whole hardware detection, setup etc. like the DVD does from the DVD Image

presto: instead of booting from DVD it booted from the harddisk

Because in your version I need to actually do the knoppix-install thingy in step 2. I do not want to alter anything in the sense that it's just not the DVD I'm booting from but just another medium (USB harddisk)...

In this scenario I would have the benefit of all the Knoppix hardware detection, have about 8gig of software and be still able to take my own files with me on a fat32 partition and share it etc. etc...

Btw: I wonder how this performs and works: http://www.fingergear.com/computer_on_a_stick.php

ruymbeke
08-21-2005, 07:25 PM
I have your setup working using grub on a USB dongle and external usb hdd.
To figure out how I did it, have a look at my posts in here:
http://www.knoppix.net/forum/viewtopic.php?t=20215
http://www.knoppix.net/forum/viewtopic.php?t=11796
Please, let me know if this works for you. Hope this helps, cheers,
Gilles

hgoor
08-21-2005, 07:33 PM
I have your setup working using grub on a USB dongle and external usb hdd.
To figure out how I did it, have a look at my posts in here:
http://www.knoppix.net/forum/viewtopic.php?t=20215
http://www.knoppix.net/forum/viewtopic.php?t=11796
Please, let me know if this works for you. Hope this helps, cheers,
Gilles

Hey thanks: unfortunately I won't have time to mess with it untill next weekend, but I will let you know for sure!

James419
09-24-2005, 11:49 PM
I am using both PCLinuxOS 8 and Mandriva (Mandrake) 10.1 on external USB hard drives. My drives are USB 2.0 and I think that USB 1.1 would be a problem. Mandriva even sell a USB hard drive with Mandriva 10.1 preinstalled. It includes both a floppy and cd bootdisk for systems that can not boot for USB drives. The Mandriva 10.1 Offical installation lets you make these two disks if wanted.

I use the USB drives as I wish to try and learn about linux without having my wife complain that she does not have Windows for her use. I have set my system to boot from USB first- the only thing is I have to remember to either cut off or remove my USB drives to boot to the ide drive.

I have not thied to install Knoppix but have installed Debian Sarge- I need to do some work with the boot as I get a kernel panic on boot up still.

I also have booted Win 98 from a Iomegs Zip 250 USB drive on my computer.

System- Dell Dimension 3000, P4, 512MB memory, 80GB Windows ide drive, 2 external 80GB linux drives and a 15GB external USB drive with Mandriva 10.1.

Many distributions will not easily boot from USB- I have gotten many kernek panic messages trying.

Jim
(also new to linux- less than 4 months trying)

d00m3d
09-25-2005, 09:32 AM
I have not thied to install Knoppix but have installed Debian Sarge- I need to do some work with the boot as I get a kernel panic on boot up still.

...

Many distributions will not easily boot from USB- I have gotten many kernek panic messages trying.

Many distros do not boot from USB easily because your system will attempt to mount the root filesystem before the USB device in which the real root filesystem is located. As the USB device cannot be recognized, the mounting will fail and lead to kernel panic.

See the steps I posted here, the magic is to build the right initrd before your system can boot. http://www.knoppix.net/forum/viewtopic.php?t=20961

mindwave
01-01-2007, 02:41 AM
James,

do you have the step by step instructions for making the mandrake 10.1 usb device?

i just bought the mandriva flash key (it hasnt arrived yet) but would LOVE to have hat on a 120gb usb hd.

if you have them or knw the location i'd love an email.

thanks

j

E-mail address removed by moderator to prevent spammer harvesting. Contact by this site's Private Message feature if private communication is needed. Please don't feed the spammers.



quote="James419"]I am using both PCLinuxOS 8 and Mandriva (Mandrake) 10.1 on external USB hard drives. My drives are USB 2.0 and I think that USB 1.1 would be a problem. Mandriva even sell a USB hard drive with Mandriva 10.1 preinstalled. It includes both a floppy and cd bootdisk for systems that can not boot for USB drives. The Mandriva 10.1 Offical installation lets you make these two disks if wanted.

I use the USB drives as I wish to try and learn about linux without having my wife complain that she does not have Windows for her use. I have set my system to boot from USB first- the only thing is I have to remember to either cut off or remove my USB drives to boot to the ide drive.

I have not thied to install Knoppix but have installed Debian Sarge- I need to do some work with the boot as I get a kernel panic on boot up still.

I also have booted Win 98 from a Iomegs Zip 250 USB drive on my computer.

System- Dell Dimension 3000, P4, 512MB memory, 80GB Windows ide drive, 2 external 80GB linux drives and a 15GB external USB drive with Mandriva 10.1.

Many distributions will not easily boot from USB- I have gotten many kernek panic messages trying.

Jim
(also new to linux- less than 4 months trying)[/quote]