LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 01-24-2006, 04:48 AM   #1
mattedue
LQ Newbie
 
Registered: Jan 2006
Distribution: still lookin' for...
Posts: 4

Rep: Reputation: 0
Install linux on USB HDD


well, i searched this forum to & fro but i didn't find anything really helpful (at least, not resolutive )...
after an intense fight i managed to install linux on an USB HDD: the distro is mandriva 2006 and lilo the bootloader.
After the successful installation it booted, but "obviously" in few seconds it raised the kernel panic error
(as far as i understood, due to USB slowy connection that goes out of sync)

in this forum found what i needed... but some steps are unclear to me (obviously noob :P ): i tried to follow this sort of how to :
Quote:
Originally Posted by Izkhandar
That is indeed true. When installing Fedora, enter
expert mode, that will load (amongst other things)
the usb modules that will allow to detect your usb
disk, then install as "usual".
Later, once installation is "done", you will have to
boot the computer with the install CD (or rescue CD
if you have it) in expert rescue mode (that is, you
will give 'expert' and 'rescue' as parameters to the
boot loader). Mount your usb drive and navigate to
your /boot directory/partition. You will have to make
a new initrd file, one including the usb modules. To
do that, run the following:

mkinitrd --with-usb --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod ./usbinitrd-X.X.XX-X.XXXX_LLL X.X.XX-X.XXXX_LLL

where X.X.XX.-X.XXXX_LLL is your kernel's version
(for example 2.6.11-1.1369_FC4). If you don't know
what is your kernel version run:

uname -r

(Both command lines could be combined as follows:

mkinitrd --with-usb --preload=ehci-hcd --preload=usb-storage --preload=scsi_mod --preload=sd_mod ./usbinitrd-`uname -r` `uname -r`

)

I've run Fedora in a makeshift portable usb Hardrive
I assembled a little while ago, with no complications,
just plug the usb cord into a free computer and go :-).

As far as I know, this should work no matter if your
usb drive is an usb hardrive or an usb stick, etc.
In the case of a hardrive, depending on the bios of
the "host" computer you may need to have grub/lilo/??
on a usb stick or in a boot diskette. Thus it will be a
good idea if you made a "boot diskette".
I hope this helps,
Izkhandar
but, maybe due to my handicap, maybe due to the different distro, i didn't manage to succeed
is there anyone who has a lot of patience and will to help me ?
thank you in advance,
Matt
 
Old 01-24-2006, 08:44 AM   #2
mattedue
LQ Newbie
 
Registered: Jan 2006
Distribution: still lookin' for...
Posts: 4

Original Poster
Rep: Reputation: 0
up ? help plz
 
Old 02-16-2006, 10:29 PM   #3
yekibud
Member
 
Registered: Apr 2005
Location: Sacramento, California
Distribution: Ubuntu 8.04, Fedora 10
Posts: 37

Rep: Reputation: 15
I've been trying this for a long time. The only success I've had is installing Feather to a Cruizer Mini 256KB USB-FD and (better) Ubuntu to a 80GB USB-HDD.
 
Old 12-13-2006, 09:59 PM   #4
pegazuz
Member
 
Registered: Dec 2006
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by yekibud
I've been trying this for a long time. The only success I've had is installing Feather to a Cruizer Mini 256KB USB-FD and (better) Ubuntu to a 80GB USB-HDD.
I have been trying for several days and have succeeded in getting Puppy on USb flash drive where it boots and runs fine. I used the master installer on Puppy live Linux CD for two different 256 mb flash drives.

I finally got Kubuntu to install and boot from a USB external Western Digital Passport hard drive. No additions or tweaking needed from an install with Kubuntu Live CD. Several other distros wouldn't run on my new Acer laaptop, some wouldn't install to external hard drive and Mepis would istall but wouldn't boot. I tried seveal times to install Ubuntu 6.10 on external hard drive with no luck. Same with Puppy.

I think it is just trial and error till you find something that works on your machine unless you really understand this linux stuff and understand why things don't work and if your lucky, how to fix them.
 
Old 12-15-2006, 01:52 PM   #5
louisnells
LQ Newbie
 
Registered: Nov 2006
Distribution: FreeBSD 6.1, Debian Sarge 3.1r2
Posts: 5

Rep: Reputation: 0
Some times you have to fixit from the InitRD image. Try things like check for the existance of the USB root drive. May be you should poll around after loading the USB and SCSI modules.
 
Old 12-15-2006, 06:20 PM   #6
NDR008
Member
 
Registered: Nov 2006
Location: (Bristol or Coventry) (UK) or Malta
Distribution: openSUSE 11.0
Posts: 170

Rep: Reputation: 30
i got a sata drive in a usb enclosure, and suse 10.1 worked well. Just normal installation procedure for me...
 
  


Reply

Tags
drives, install, usb


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
HDD Install booting from USB rarsa Mandriva 10 08-24-2006 02:14 AM
Install to USB HDD, boot from CD/DVD 4partee Slackware 27 09-15-2005 02:11 AM
Install on USB hdd ? NobleSilkFairy Linux - Newbie 3 04-15-2005 11:52 PM
IBM T42 with USB External HDD install question eshurtle Linux - Laptop and Netbook 4 02-21-2005 02:18 PM
Install directly to HDD from iso on HDD/USB, with out burning cd vivinuthappa DamnSmallLinux 7 11-16-2004 11:03 AM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
Advertisement
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