LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 11-22-2015, 05:51 AM   #1
dodger666
LQ Newbie
 
Registered: Oct 2013
Distribution: Slackware
Posts: 7

Rep: Reputation: Disabled
Slackware 14.1 on a USB drive


Hello all,

After reading Didier Spaier's Slackware 13.37 installation howto, I thought I'd give it ago and install Slackware 14.1 to a 64GB Thumb drive.
YMMV, but it worked for me...

1. Boot slackware install DVD
2. Setup partitions on USB drive using either fdisk or cfdisk, make sure your working with correct drive - eg. cfdisk /dev/sdb
Where /dev/sdb = USB drive.
3. Run setup, setup swap & install to the USB drive.
4. Use the 3.10.17-huge-smp kernel.
5. Upon exiting setup, reboot into your desktop.
6. Mount USB drive, make sure its /dev/sdb, on /mnt.
a. blkid /dev/sdb1 to get id & do the same for swap partition
b. chroot /mnt
c. mkinitrd -c -k 3.10.17-smp -m ehci_hcd:ehci_pci:usb_storage -f ext4(or whatever you chose) -r /dev/disk/by-uuid/(your rootfs blkid).
d. edit lilo.conf

# LILO configuration file
lba32
boot = /dev/sdb
compact # faster, but won't work on all systems.
# Append any additional kernel parameters, adjust rootdelay to suit
append="rootdelay=30"
vga = normal
image = /boot/vmlinuz
root = /dev/sdb1
initrd = /boot/initrd.gz
label = SlackUSB
read-only # Partitions should be mounted read-only for checking

e. edit fstab

/dev/disk/by-uuid/(your swap blkid) swap swap defaults 0 0
/dev/disk/by-uuid/(your rootfs blkid) / ext4 defaults 1 1
/dev/cdrom /Cdrom auto noauto,owner,ro,comment=x-gvfs-show 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
/tmp /dev/shm tmpfs defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0

f. lilo & exit.
7. Reboot into SlackUSB & enjoy...

----------------------------------------------------------------------

Shame, they bought their tickets, they knew what they were getting into. I say, let 'em crash.
 
Old 11-22-2015, 07:54 AM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,055

Rep: Reputation: Disabled
Quote:
Originally Posted by dodger666 View Post
After reading Didier Spaier's Slackware 13.37 installation howto
Almost forgot it

Small update:
  • Instead of "blkid" one could run:
    "lsblk -o model,name,size,uuid,label"
  • The partitions can be named by label as well as by uuid
  • After having mounted the USB drive and before chroot, preferably run:
    mount --bind /proc /mnt/proc
    mount --bind /sys /mnt/sys
    mount --bind /dev /mnt/dev
  • I should have written the instructions as an article in http://docs.slackware.com long ago, but will soon if I do not lose my TO-DO list again...

Last edited by Didier Spaier; 11-24-2015 at 06:52 AM. Reason: s/loose/lose/ thanks bassmadrigal.
 
  


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
Install slackware on a USB drive without creating an USB livecd Barx Slackware 4 06-28-2010 01:31 PM
Slackware 12.* on USB Drive shaanay Slackware 2 09-25-2008 10:31 PM
Slackware 12.* on USB Drive shaanay Linux - General 2 09-25-2008 06:47 PM
slackware 12 usb drive Clarence27 Slackware 3 09-26-2007 10:14 PM
Slackware on USB drive freelancer42 Linux - Hardware 4 10-11-2006 05:11 AM

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

All times are GMT -5. The time now is 12:56 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