LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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 12-13-2009, 01:48 PM   #1
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Rep: Reputation: 94
Install Slackware in a USB Stick


Hi Forum

I want to install Slackware 13 in an USB stick of about 8 Gigs.

So far, I only see two options... :

Use unetbootin to make the install, or

Make a standard install to an USB device, taking care to include a Time Delay in Lilo, so that boot has time to "see" the partitions...

Are any of these, valid alternatives...?

AFAIK, USB stick File systems are a bit intolerant to being relentlessly written on, so, If I want my USB Stick to enjoy a rather long lifetime, I have to take some precautions on Filesystem Types, as well as mount options in my /etc/fstab,

Basically I want my layout to be something like /boot-sda1;100Megs, /-sda2;4Gb, /swap-sda3;500Mb, and all the rest to /home-sda4 in FAT32 to be accessible to windoze machines I sometimes have to use...


What do you experts think of this...?

Is it advisable, or does /swap mounted in my Usb Stick will "fry" it in notime ...?


BRGDS

Alex
 
Old 12-13-2009, 03:17 PM   #2
DonnieP
Member
 
Registered: Jan 2008
Location: Richmond, VA USA
Distribution: Slackware
Posts: 144

Rep: Reputation: 29
I'm no expert but I have installed many times to and from usb and flash drives. If you're installing directly from a CD/DVD to a usb drive then you don't need unetbootin. You need unetbootin when you want to transfer an install iso to usb for use on a machine with no optical drive to install from - or if you just want to save burning CD/DVDs for doing installs. The swap question is apparently controversial, but I have followed the advice not use a swap partition on a flash drive and haven't been burned.
 
1 members found this post helpful.
Old 12-13-2009, 03:35 PM   #3
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi DonnieP

Thx for yor answer...

I have already heard something about ZipSlack...

What is this...? is it a "USB kind" of Slackware Install...?

Brgds

Alex
 
Old 12-13-2009, 03:40 PM   #4
EricTRA
Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Hi,

I was just reading up on that too

ZipSlack
http://www.slackware.com/zipslack/
http://www.slackbook.org/html/zipslack.html

Looks very interesting for a 'carry around' Slackware.

Kind regards,

Eric
 
1 members found this post helpful.
Old 12-13-2009, 03:52 PM   #5
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,081
Blog Entries: 52

Rep: Reputation: Disabled
Or you could try:
http://slackware.osuosl.org/slackwar...README_USB.TXT
 
1 members found this post helpful.
Old 12-13-2009, 03:57 PM   #6
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,771

Rep: Reputation: 477Reputation: 477Reputation: 477Reputation: 477Reputation: 477
zipslack is only available up to slack-11.0 and uses the umsdos filesystem which will make it even slower.

I'd suggest following the plan you started with, except for swap. You definitely don't want a swap partition on a flash drive. Instead, write a small routine near the top of the init scripts which creates a small ramdisk, run mkswap on it and then use swapon to activate it. That probably sounds strange to use RAM for swapspace, but the only other easy alternative is to use no swap at all -which I also do not recommend. Even a very small swap space can save you from a locked up system.
 
1 members found this post helpful.
Old 12-13-2009, 04:41 PM   #7
DonnieP
Member
 
Registered: Jan 2008
Location: Richmond, VA USA
Distribution: Slackware
Posts: 144

Rep: Reputation: 29
Quote:
Make a standard install to an USB device, taking care to include a Time Delay in Lilo, so that boot has time to "see" the partitions...
You're right about the need to append a rootdelay in lilo.conf. Just did an install myself to an SD card and it wouldn't work without this.
 
1 members found this post helpful.
Old 12-13-2009, 04:46 PM   #8
Alexvader
Member
 
Registered: Oct 2009
Location: Japan
Distribution: Arch, Debian, Slackware
Posts: 994

Original Poster
Rep: Reputation: 94
Hi Gnashley

What would you suggest me to put in this script....?

Probably I would have to create a custom /etc/fstab also...

What do you suggest me to do...??

BRGDS

Alex
 
Old 12-13-2009, 06:26 PM   #9
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
See http://alien.slackbook.org/blog/inst...b-thumb-drive/
 
1 members found this post helpful.
Old 12-14-2009, 06:02 AM   #10
zordrak
Member
 
Registered: Feb 2008
Distribution: Slackware
Posts: 595

Rep: Reputation: 115Reputation: 115
Quote:
Originally Posted by brianL View Post
Quote:
Originally Posted by sahko View Post
Be aware, the OP asked for installing onto a thumb drive, not from a thumb drive.
 
1 members found this post helpful.
Old 12-14-2009, 06:18 AM   #11
~sHyLoCk~
Senior Member
 
Registered: Jul 2008
Location: /dev/null
Posts: 1,173
Blog Entries: 12

Rep: Reputation: 129Reputation: 129
Hi,
I have done this many times. First format the drive and make sure you turn on the boot flag. Next check BIOS to see if the "Boot from USB" is enabled. Next go install slack in your USB and make sure you check the fdisk -l output to find out your USB drive partitions. I also use my internal HDD's swap, I actually use that single 2GB swap partition for my CentOS, Slack, and my USB devices. Install lilo to the MBR of your USB and you're done. you can configure lilo seting delay and everything the way you want to.
 
1 members found this post helpful.
Old 12-14-2009, 06:55 AM   #12
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 7,081
Blog Entries: 52

Rep: Reputation: Disabled
Quote:
Originally Posted by zordrak View Post
Be aware, the OP asked for installing onto a thumb drive, not from a thumb drive.
Oh yeah!!
 
1 members found this post helpful.
Old 07-24-2013, 04:24 PM   #15
dumdadum
Member
 
Registered: May 2009
Location: Montreal, Quebec, Canada
Distribution: Slackware 14.1
Posts: 227

Rep: Reputation: 15
Post Kinda helps, kinda doesnt...

I'm also trying to do what the author of this post said, a usb stick with Slackware that works on "all" the computers it boots from, no matter what.

My case is that I have a computer that I dont want to use the harddrive, and when I say I dont want to use it, its really important because the computer isnt mine.

When I run the "lilo" command, I get a warning that says this:

Quote:
/dev/sdb is not on the first disk
Its strange cause /dev/sda is the harddrive of the computer I use and its important that I dont use it at all, at all, at all. I have no entries in the fstab concerning that ntfs partition of windows xp on the harddrive. I get a boot screen with the Slackware screen that gives me the option to boot the slackware OS. The tag is Linux, I press enter, and there it goes, gives me a notice about not being able to load slackware, and the lights on the keyboard blink, its frozen, I need to push the power button for 5 seconds in order to reboot the computer.

I was told to use UUID's in the fstab and lilo.conf files. Still, I get a warning with the "lilo" command that says what I quoted, complaining that where I install lilo its not the first disk, meaning /dev/sda, which is the windows xp device I dont want to touch or mess up. When I use the live cd of gparted, it really says that the usbkey is really sdb with the ext4 root partition with slackare and the linux swap file being /dev/sdb2 and the extra fat32 partition of the usbkey being /dev/sdb1.

I dont see myself putting sda as the usbkey cause I dont want to make a mistake and install lilo or slackware on the harddrive instead of the usbkey, just trying to avoid the error message of the "lilo" command in slackware command prompt mode.

Does the unetbootin version of slackbuilds.org have the option to install Slackware 14.0 on a usbkey? I saw a few posts talking about the usb-boot file script in the /extra folder of the slackware 14.0 DVD, and its not really what I'm looking for.

Once again, I'm in the same position as the author of this post, I want the usbkey I'm building to be able to boot on any computer and not touch a single hair of the harddrives of the computer I'm using to boot slackware 14.0 from the usbkey device.

Any help is really welcome,
Cheers

Dumdadum

Last edited by dumdadum; 07-24-2013 at 04:29 PM.
 
  


Reply


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
Slackware on a USB stick... alpha_hack Slackware 11 12-16-2011 12:47 PM
may install from cdrom to USB FLASH DRIVE(to get it a USB stick bootable) the ubuntu lse123 Linux - Newbie 5 01-02-2009 05:56 PM
usb stick in slackware 9.1 Clarence27 Slackware 16 10-15-2006 10:12 AM
How to use usb stick in Slackware 11? rsamurti Slackware 3 10-11-2006 02:54 PM


All times are GMT -5. The time now is 05:24 AM.

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