Unix Technical Forum

Running Linux from USB drive

This is a discussion on Running Linux from USB drive within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> -----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 I have a friend that wants to start playing with Linux. Naturally, they ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 07:34 AM
Michael B. Trausch
 
Posts: n/a
Default Running Linux from USB drive

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

I have a friend that wants to start playing with Linux. Naturally, they
do not want to disturb their Windows partition to do so, and it's a
laptop, so that's the end of that, pretty quickly.

However, he has a 250GB IDE drive in a IDE-to-USB housing that works
pretty well, and the laptop recognizes it as a device that can be booted
from. I'm still waiting on Slackware to download at home before I make
any more attempts at installing anything on it, but I know that RH and
Xandros (both systems I "won" at a local LUG meeting, but haven't yet
found a good home for) refuse to see /dev/sda even though the kernel
sees it just fine. They will only install to /dev/hda - at least,
that's the only option that their installers are giving me.

I half expect the same behavior in Slackware's case, since it will find
that the system itself is IDE based, before trying to find any other
drives. In any case, I was thinking, take the drive out of the housing
and install it in a desktop machine, install Linux on it, and with the
bootloader and all (since no boot loader that I know of, can communicate
with USB drives, it'd be pointless to put it on the Hard disk of the
laptop), and then just tell the laptop to boot off of that after I put
it back.

The only problem is this: I'm not exactly sure how one would go about
setting it up to actually boot from a USB drive - the Laptop can talk to
the drive to get it to boot, but what kind of hoops am I going to need
to jump through to get it to successfully boot the Linux system and get
it running, after the drive is placed back on the USB bus? Do I merely
place a USB / SCSI enabled kernel into an initrd? In theory, I would
think it'd be sorta simple like that, but I'm not entirely sure... so,
here I am.

Anyone have any ideas before I jump into this? It'll (obviously) be my
first time installing a distribution of Linux to run from a USB drive,
but it seems like it should work.

Thanks!

Mike

- --
Michael B. Trausch <fd0man+spam@gmail.com>
Website: http://fd0man.chadeux.net/spm Jabber: mtrausch@jabber.com
================================================== =================
Do you have PGP or GPG? Key located at pgp.mit.edu!
Remove filter trigger from e-mail, or I won't get it, and -spm with
the web URL, as well, to protect from spammers.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCWQ0XPXInbkqM7nwRAwP+AJ9avIWjPcacE1mJdr86TR zpiWNdXACffn/U
LZLJW901whND81hOpXr5eeo=
=TGZB
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 07:34 AM
ray
 
Posts: n/a
Default Re: Running Linux from USB drive

On Sun, 10 Apr 2005 07:25:11 -0400, Michael B. Trausch wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
>
> I have a friend that wants to start playing with Linux. Naturally, they
> do not want to disturb their Windows partition to do so, and it's a
> laptop, so that's the end of that, pretty quickly.
>
> However, he has a 250GB IDE drive in a IDE-to-USB housing that works
> pretty well, and the laptop recognizes it as a device that can be booted
> from. I'm still waiting on Slackware to download at home before I make
> any more attempts at installing anything on it, but I know that RH and
> Xandros (both systems I "won" at a local LUG meeting, but haven't yet
> found a good home for) refuse to see /dev/sda even though the kernel
> sees it just fine. They will only install to /dev/hda - at least,
> that's the only option that their installers are giving me.
>
> I half expect the same behavior in Slackware's case, since it will find
> that the system itself is IDE based, before trying to find any other
> drives. In any case, I was thinking, take the drive out of the housing
> and install it in a desktop machine, install Linux on it, and with the
> bootloader and all (since no boot loader that I know of, can communicate
> with USB drives, it'd be pointless to put it on the Hard disk of the
> laptop), and then just tell the laptop to boot off of that after I put
> it back.
>
> The only problem is this: I'm not exactly sure how one would go about
> setting it up to actually boot from a USB drive - the Laptop can talk to
> the drive to get it to boot, but what kind of hoops am I going to need
> to jump through to get it to successfully boot the Linux system and get
> it running, after the drive is placed back on the USB bus? Do I merely
> place a USB / SCSI enabled kernel into an initrd? In theory, I would
> think it'd be sorta simple like that, but I'm not entirely sure... so,
> here I am.
>
> Anyone have any ideas before I jump into this? It'll (obviously) be my
> first time installing a distribution of Linux to run from a USB drive,
> but it seems like it should work.
>
> Thanks!
>
> Mike
>
> - --
> Michael B. Trausch <fd0man+spam@gmail.com>
> Website: http://fd0man.chadeux.net/spm Jabber: mtrausch@jabber.com
> ================================================== =================
> Do you have PGP or GPG? Key located at pgp.mit.edu!
> Remove filter trigger from e-mail, or I won't get it, and -spm with
> the web URL, as well, to protect from spammers.
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.1 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFCWQ0XPXInbkqM7nwRAwP+AJ9avIWjPcacE1mJdr86TR zpiWNdXACffn/U
> LZLJW901whND81hOpXr5eeo=
> =TGZB
> -----END PGP SIGNATURE-----


It would be a hell of a lot easier to give them a Knoppix live CD. If the
bios has an option to boot from a USB drive, I don't see what the problem
is. I have a distro I can boot from a USB flashdisk.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 07:34 AM
Joost Kremers
 
Posts: n/a
Default Re: Running Linux from USB drive

Michael B. Trausch wrote:
[boot linux from USB drive]

have you tried google? a search for 'boot linux usb' gives me quite a few
pages that look interesting.

--
Joost Kremers joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 07:34 AM
danube
 
Posts: n/a
Default Re: Running Linux from USB drive

On Sun, 10 Apr 2005 08:40:41 -0600, ray wrote:

> On Sun, 10 Apr 2005 07:25:11 -0400, Michael B. Trausch wrote:
> them a Knoppix live CD. If the
> bios has an option to boot from a USB drive, I don't see what the problem
> is. I have a distro I can boot from a USB flashdisk.


Mepis is pretty good as well.

JB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 07:34 AM
Two Ravens
 
Posts: n/a
Default Re: Running Linux from USB drive

ray wrote:

Four lines, and added them to sixty lines of quotes, why? Please trim
the quoted material. http://home.online.no/~shughes/a57998/quote.html

--
Two Ravens
"...hit the squirrel..."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 07:36 AM
ste
 
Posts: n/a
Default Re: Running Linux from USB drive

Hi
I have no experience with usb external HD but I'm sure that it i
possible to install Slackware on a SCSI disk. I'm guessing, but
think that the install procedure will end successfully using th
default bare.i kernel, because the install disk is a virtual SCS
disk that is seen as SCSI by the usb-storage kernel module
BUT the problem will rise at the first boot... the kernel will no
find root device /dev/sdaX because at that moment usb-storage and th
usb subsystem will not present in the kernel
My idea is: from another Linux box make a bootdisk using Slackwar
bare.i config file but with usb-storage and the usb hosts driver
statically compiled in
Then use this floppy to boot from the external usb disk: surely yo
will get many error messages, but at this stage the important is onl
booting the system
At last you can make your definitive kernel with usb, usb hosts
usb-storage, scsi, scsi-disk support statically compiled in, an
modify /etc/lilo.conf to boot the new kernel from the external us
device
If anyone has a simpler and better solution I will be very glad t
learn it!!
Best Regards
St

Message posted via
====================
www.linuxpackages.net/foru
www.linuxpackages.ne
Expanding the world of Slackwar
=====================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 07:36 AM
bmgz
 
Posts: n/a
Default Re: Running Linux from USB drive

Two Ravens wrote:

Two lines of totally unhelpful, uninsightful nonsense.

Sadly your AUTHORITAR does not apply in this realm. Go hide in a bush
and get smited by a thunderbolt.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 07:36 AM
Michael B. Trausch
 
Posts: n/a
Default Re: Running Linux from USB drive

-----BEGIN PGP SIGNED MESSAGE-----
Hash: RIPEMD160

ste wrote:
>
> BUT the problem will rise at the first boot... the kernel will not
> find root device /dev/sdaX because at that moment usb-storage and the
> usb subsystem will not present in the kernel.
> My idea is: from another Linux box make a bootdisk using Slackware
> bare.i config file but with usb-storage and the usb hosts drivers
> statically compiled in.
> Then use this floppy to boot from the external usb disk: surely you
> will get many error messages, but at this stage the important is only
> booting the system.
>


No floppy drive to speak of... it's a new(er) IBM ThinkPad.

Perhaps it'd be easier to use an initrd image to turn around and mount
the root partition? The only thing then is that my guess is that it
would make upgrading the kernel a PITA because then you'd need to
regenerate the initrd every time you compile the kernel, right?

I'm not exactly sure how it works, as I've never needed to use one.
I've seen them used, but... is it easy to implement, or am I going to be
banging my head for a couple of hours after the kernel building is done?

- Mike

- --
Michael B. Trausch <fd0man+spam@gmail.com>
Website: http://fd0man.chadeux.net/spm Jabber: mtrausch@jabber.com
================================================== =================
Do you have PGP or GPG? Key located at pgp.mit.edu!
Remove filter trigger from e-mail, or I won't get it, and -spm with
the web URL, as well, to protect from spammers.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFCWmTxPXInbkqM7nwRA39VAJoDUr0RKjDfKvEFS878Yb 4WBvpZJACdEbIV
ejkQBnahmp9qK39t8AEmf0k=
=iMH6
-----END PGP SIGNATURE-----
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 07:36 AM
Two Ravens
 
Posts: n/a
Default Re: Running Linux from USB drive

bmgz wrote:

> Two Ravens wrote:
>
> Two lines of totally unhelpful, uninsightful nonsense.


I'm sorry that you feel that way. I was pointing out that where one does
not follow the conventions usual in the group in which one finds
oneself, one is likely to be disregarded by some within that group.

> Sadly your AUTHORITAR does not apply in this realm. Go hide in a bush
> and get smited by a thunderbolt.


Whatever an "AUTHORITAR" is, neither mine, nor yours, applies, thus it
is extremely unlikely that I will suffer the fate you seem to desire.
(Incidentally, I think the word you were grasping for, was 'smitten'.)

--
Two Ravens
"...hit the squirrel..."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 02-20-2008, 07:36 AM
bmgz
 
Posts: n/a
Default OT: Re: Running Linux from USB drive

Authoritar -> "Authority" from that fat guy from South Park.
Smited -> you were right, it is "Smitten".

I suppose it's foolish for ONE of me to lash out to TWO of you. apologies.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:34 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com