LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-10-2014, 02:15 PM   #1
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 875

Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Slack on a thumb drive? Suggestions and pointers requested


Hi there,

Someone gave me a 128 GB thumb drive. I'd like to use it as a bootable thumb drive with full-blown Slackware on it. The thing is, I have no idea on how to do it except for the vague notion that it is indeed possible. So, how can I do it? If you can give links or pointers to information that would be really appreciated.

Some information that I would like to have:
  • How to boot Slackware from a thumb drive
  • How to define swapspace and tmp drives so that I could use local storage instead of a thumb drive (I'd like to avoid frying my drive too soon).

Thanks in advance!
 
Old 10-10-2014, 02:29 PM   #2
genss
Member
 
Registered: Nov 2013
Posts: 744

Rep: Reputation: Disabled
How to boot Slackware from a thumb drive

never did try to install lilo on an usb device
however, Didier Spaier shared some knowledge in this thread


How to define swapspace and tmp drives so that I could use local storage instead of a thumb drive (I'd like to avoid frying my drive too soon).

by editing /etc/fstab
as with lilo, you would also want to use uuid's instead of /dev/node
 
1 members found this post helpful.
Old 10-10-2014, 02:39 PM   #3
fsLeg
Member
 
Registered: Dec 2013
Location: Russia, Moscow
Distribution: Slackware, EndeavourOS
Posts: 89

Rep: Reputation: Disabled
Quote:
Originally Posted by sombragris View Post
How to boot Slackware from a thumb drive
I did that for my netbook. It's exactly the same as you would do when installing to HDD. You partition your thumb drive, you choose those partitions, you install lilo to the thumb drive's MBR. In order to boot make sure to have these two things: ramdisk (initrd; yes, even if you use the huge kernel) and rootdelay kernel option (rootdelay=5 did the trick for me). It is needed so the kernel could find and mount the root filesystem.

Quote:
Originally Posted by sombragris View Post
How to define swapspace and tmp drives so that I could use local storage instead of a thumb drive (I'd like to avoid frying my drive too soon).
What genss said.
 
1 members found this post helpful.
Old 10-10-2014, 02:42 PM   #4
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,062

Rep: Reputation: Disabled
Hi Eduardo,

Google helped me find an old post answering a similar question.

I think you could try the same method, just replacing "external HDD" with "USB stick".

Probably the
Code:
append="rootdelay=30"
is not necessary in case of an USB stick, that doesn't need time to spin (or at least you can decrease that delay).

Also, it's better, before chroot in step # 5 to insert a step #4bis. Type as root:
Code:
mount --bind /proc /mnt/proc
mount --bind /sys /mnt/sys
mount --bind /dev /mnt/dev
so these pseudo-filesystems be accessible from the USB key.

Last edited by Didier Spaier; 10-10-2014 at 02:50 PM.
 
1 members found this post helpful.
Old 10-11-2014, 11:44 AM   #5
sombragris
Member
 
Registered: Jul 2004
Location: Asuncion, Paraguay, South America
Distribution: Slackware
Posts: 875

Original Poster
Rep: Reputation: 397Reputation: 397Reputation: 397Reputation: 397
Thank you! these links are really useful. Now, a question: how would be LILO better than ISOLINUX for bootable media?
 
Old 10-11-2014, 11:48 AM   #6
fsLeg
Member
 
Registered: Dec 2013
Location: Russia, Moscow
Distribution: Slackware, EndeavourOS
Posts: 89

Rep: Reputation: Disabled
Quote:
Originally Posted by sombragris View Post
Now, a question: how would be LILO better than ISOLINUX for bootable media?
Actually, it doesn't matter what boot manager you use. Slackware comes with a variety of those, it just installs lilo by default, but you are free to use what you think is more convenient.
 
1 members found this post helpful.
  


Reply



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
Suggestions, Advice's, Pointers... boysha Linux - General 4 03-19-2012 11:24 PM
Puppy Linux Users Group - Suggestions Requested puppyite Puppy 122 07-30-2011 06:21 PM
Info on Pointers and Variables Requested theKbStockpiler Programming 7 05-03-2010 07:38 PM
mips SIGBUS crash, suggestions requested kapsikum Programming 3 01-24-2009 04:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:36 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
Open Source Consulting | Domain Registration