LinuxQuestions.org
Review your favorite Linux distribution.
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 10-04-2014, 12:35 PM   #1
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 121

Rep: Reputation: 2
Unhappy How do you install ON a thumbdrive?


Okay, I've installed Slackware on a USB stick and after reboot, it won't start. The kernel panics when trying to mount the root partition.

Most of the tutorials on the Net are for installing from a thumbdrive, not onto one, so I'm a bit puzzled. The thing is I'm trying to use the huge.s kernel from the Slackware64-14.1 install DVD, which should work, right? If I do a network boot with huge.s I can mount the root filesystem, but when I supply "huge.s boot=/dev/sda1 rdinit= ro" it will panic like in the attached pic.

Am I missing something?

Click image for larger version

Name:	20141004_202122.jpg
Views:	30
Size:	281.2 KB
ID:	16571
 
Old 10-04-2014, 01:06 PM   #2
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
I've done this before too but can't remember hahah
did you try setting /dev/sdc1 as root?
 
Old 10-04-2014, 01:08 PM   #3
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 2
Quote:
Originally Posted by linus72 View Post
I've done this before too but can't remember hahah
did you try setting /dev/sdc1 as root?
There is nothing in the system that would be recognized as sda or sdb before the USB drive, so I don't see the point for doing that.
 
Old 10-04-2014, 01:12 PM   #4
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
I remember when I did it I had huge problems with fstab, etc as it would run ok on one pc but on another it would panic and couldnt find itself.
Have you considered making it a live distro so it runs like Slax with/without persistence and lots less wear on USB?
 
Old 10-04-2014, 02:17 PM   #5
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,506

Rep: Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081
The name given to a removable device can change from start up to start up, e.g depending on what other devices are present.

To make it persistent, name it in /lilo/conf and /etc/fstab by its UUID or by its LABEL, see man lilo.conf and man fstab.

Examples found in man lilo.conf:
Code:
root="LABEL=MyDisk"
root="UUID=5472fd8e-9089-4256-bcaa-ceab4f01a439"
To know the UUIDS and LABELS (if any) of your partitions (including the USB key if inserted):
Code:
lsblk -o NAME,UUID,LABEL,MODEL,SIZE
To set or change the LABEL of an ext{2,3,4} partition use e2label.

Here are quotes from my /etc/fstab and /etc/lilo.conf in a system on an USB hard disk:
Code:
bash-4.2# cat /mnt/etc/fstab
LABEL=slack     /                ext4        defaults         1   1
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0

#from /etc/lilo.conf
image = /boot/vmlinuz-generic-3.10.14
  root="LABEL=slack"
  initrd = /boot/initrd.gz
  label = Linux
  read-only
You don't need to do that for "boot = " in /etc/lilo.conf as when you issue the lilo command you of course know the name of the device or partition you want to write the boot sector on

PS of course you should have built in your kernel or in an initrd all drivers plus the root's file system needed to communicate with your USB key.

Last edited by Didier Spaier; 10-05-2014 at 06:55 AM. Reason: Example added + PS added.
 
1 members found this post helpful.
Old 10-05-2014, 09:13 AM   #6
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 2
Thanks for the advice Didier, but none of the options worked. (tried UUID and LABEL)

What else could I try?
 
Old 10-05-2014, 11:05 AM   #7
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Yeah I had many issues with it too chicken76
In the meantime this is what I use to make a live iso/usb with persistence, etc similar to Slax/Porteus
After installing stuff, etc you gotta do as root ln -s /usr/lib/liblzma.so /usr/lib/liblzma.so.0 or it wont work, at least for me.
Noticed it panics if you try copy2ram with less than a GB of ram for me too.
http://slackware-live.tuxfamily.org/-Home-

Really much better anyway than having a rw HDD install on your usb with ext3/4
My USB is a 4gb fat32 Kingston
Only bad thing is you gotta make remasters of the rom to keep it current but it doesnt take long and you can make your own live distro
 
1 members found this post helpful.
Old 10-05-2014, 11:05 AM   #8
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Yeah I had many issues with it too chicken76
In the meantime this is what I use to make a live iso/usb with persistence, etc similar to Slax/Porteus
After installing stuff, etc you gotta do as root ln -s /usr/lib/liblzma.so /usr/lib/liblzma.so.0 or it wont work, at least for me.
Noticed it panics if you try copy2ram with less than a GB of ram for me too.
http://slackware-live.tuxfamily.org/-Home-

Really much better anyway than having a rw HDD install on your usb with ext3/4
My USB is a 4gb fat32 Kingston
Only bad thing is you gotta make remasters of the rom to keep it current but it doesnt take long and you can make your own live distro
 
Old 10-05-2014, 11:06 AM   #9
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
Yeah I had many issues with it too chicken76
In the meantime this is what I use to make a live iso/usb with persistence, etc similar to Slax/Porteus
After installing stuff, etc you gotta do as root ln -s /usr/lib/liblzma.so /usr/lib/liblzma.so.0 or it wont work, at least for me.
Noticed it panics if you try copy2ram with less than a GB of ram for me too.
http://slackware-live.tuxfamily.org/-Home-

Really much better anyway than having a rw HDD install on your usb with ext3/4
My USB is a 4gb fat32 Kingston
Only bad thing is you gotta make remasters of the rom to keep it current but it doesnt take long and you can make your own live distro
 
Old 10-05-2014, 12:38 PM   #10
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,506

Rep: Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081Reputation: 4081
Quote:
Originally Posted by chicken76 View Post
What else could I try?
I think that you are missing an initrd with appropriate modules.

To check, start you system, type
Code:
lsmod|sort > lsmod1
then plug in the USB key then write:
Code:
lsmod|sort > lsmod2
then
Code:
diff lsmod1 lsmod2
PS See also this thread.

Last edited by Didier Spaier; 10-05-2014 at 03:37 PM.
 
Old 10-22-2014, 07:53 AM   #11
chicken76
Member
 
Registered: Mar 2009
Distribution: Slackware
Posts: 121

Original Poster
Rep: Reputation: 2
Thumbs up

Quote:
Originally Posted by Didier Spaier View Post
I think that you are missing an initrd with appropriate modules.

To check, start you system, type
Code:
lsmod|sort > lsmod1
then plug in the USB key then write:
Code:
lsmod|sort > lsmod2
then
Code:
diff lsmod1 lsmod2
PS See also this thread.
Thanks. It was the initrd that was missing.
I replied to your thread instead of this one.
 
  


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 VectorLinux from USB thumbdrive (?) Xeeon Linux - Newbie 1 12-06-2011 12:57 AM
slackware 13.0 64 bit install from usb thumbdrive odm4286 Slackware 1 11-10-2009 11:27 AM
4Gb thumbdrive full on 8.10 thumb-only install - but its not! ericcarlson Ubuntu 1 12-15-2008 04:11 AM
Can I fatten a USB thumbdrive Grafpup install? ciden Grafpup 2 08-04-2008 07:12 AM
thumbdrive is auto mounting as both cd-rom & thumbdrive scott1042 Fedora 2 04-27-2007 05:03 PM

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

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