LinuxQuestions.org
Review your favorite Linux distribution.
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 01-14-2010, 12:43 PM   #1
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Rep: Reputation: 18
A complete Slackware setup on USB image


I need a full Slackware setup on a usb drive. I already read the http://alien.slackbook.org/dokuwiki/...ckware:usbboot but the part wheres is "A complete Slackware setup on USB image" have too a "FIXME This part remains to be written FIXME."
It is not complete. Anyone can help me setting a complete Slackware setup on USB image?
 
Old 01-14-2010, 01:30 PM   #2
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
You can follow the instructions here to create a USB slackware installer: http://alien.slackbook.org/blog/inst...b-thumb-drive/

..or if you are running Windows, follow these instructions instead: http://alien.slackbook.org/blog/welcome-windows-user/

Eric
 
Old 01-14-2010, 01:30 PM   #3
piratesmack
Member
 
Registered: Feb 2009
Distribution: Slackware, Arch
Posts: 519

Rep: Reputation: 142Reputation: 142
I just use the usbimg2disk script then copy the "slackware" directory

Code:
cd usb-and-pxe-installers
./usbimg2disk.sh -f -i usbboot.img -o /dev/sdx
cd ..
mkdir /mnt/usb
mount -t vfat /dev/sdx1 /mnt/usb
cp -av slackware /mnt/usb
umount /mnt/usb
sync
When you boot from the USB, do
Code:
mkdir /usbinstall
mount -t vfat /dev/sdx1 /usbinstall
In setup, choose "Install from pre-mounted directory" and type "/usbinstall/slackware"

Hope this helps

EDIT

Cool, I didn't know about the enhanced script.
Thanks, Eric

Last edited by piratesmack; 01-14-2010 at 02:17 PM.
 
1 members found this post helpful.
Old 01-14-2010, 01:49 PM   #4
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by Alien Bob View Post
You can follow the instructions here to create a USB slackware installer: http://alien.slackbook.org/blog/inst...b-thumb-drive/

..or if you are running Windows, follow these instructions instead: http://alien.slackbook.org/blog/welcome-windows-user/

Eric
I used the script on http://slackware.com/~alien/tools/usbimg2disk.sh and i did

Code:
chmod +x usbimg2disk.sh
./usbimg2disk.sh -f -r /home/kerml/backup/slackware/slackware-current/ -o /dev/sdd1
And received this

Code:
Unknown parameter '-r'!
What i am doing wrong?
 
Old 01-14-2010, 02:08 PM   #5
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
Quote:
Originally Posted by Laodiceans View Post
I used the script on http://slackware.com/~alien/tools/usbimg2disk.sh and i did

Code:
chmod +x usbimg2disk.sh
./usbimg2disk.sh -f -r /home/kerml/backup/slackware/slackware-current/ -o /dev/sdd1
And received this

Code:
Unknown parameter '-r'!
What i am doing wrong?
Ah, bad example... I guess you used the exact example command in the blog article, but that contained an error. I have corrected that now (as well as the example inside the script) and uploaded the updated usbimg2disk.sh script again.
This is the correct commandline:
Code:
.
/usbimg2disk.sh -f -s /home/kerml/backup/slackware/slackware-current/ -o /dev/sdd1
i.e. the "-r" should have been a "-s".


Eric
 
Old 01-14-2010, 02:20 PM   #6
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 18
Quote:
Originally Posted by Alien Bob View Post
Ah, bad example... I guess you used the exact example command in the blog article, but that contained an error. I have corrected that now (as well as the example inside the script) and uploaded the updated usbimg2disk.sh script again.
This is the correct commandline:
Code:
.
/usbimg2disk.sh -f -s /home/kerml/backup/slackware/slackware-current/ -o /dev/sdd1
i.e. the "-r" should have been a "-s".


Eric
Now i did this
Code:
sh usbimg2disk.sh -f -s /home/kerml/backup/slackware/slackware-current/ -o /dev/sdd1

# We are going to format and use this device - '/dev/sdd1':
#
# Disk /dev/sdd1: 3975 MB, 3975548928 bytes
# 123 heads, 62 sectors/track, 1018 cylinders
# Units = cylinders of 7626 * 512 = 3904512 bytes
# Disk identifier: 0x298a344e
#
# Device Boot      Start         End      Blocks   Id  System

***                                                       ***
*** If this is the wrong drive, then press CONTROL-C now! ***
***                                                       ***
Or press ENTER to continue:
--- Formatting /dev/sdd1 and creating VFAT partition...
--- Last chance! Press CTRL-C to abort!
Or press ENTER to continue:
mount: special device /dev/sdd11 does not exist
*** usbimg2disk.sh FAILED at line 37 ***
--- Cleaning up the staging area...
Still not working. I'm the first one using this script?
 
Old 01-14-2010, 02:28 PM   #7
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106Reputation: 8106
The "-o" parameter wants the device name for the USB stick, not the name of the partition on your USB stick.... try "/dev/sdd" instead of "/dev/sdd1".

Eric
 
Old 01-14-2010, 02:44 PM   #8
Laodiceans
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 188

Original Poster
Rep: Reputation: 18
Thanks! I already made the disk. I will try it soon.
 
Old 01-26-2010, 01:02 PM   #9
Lexus45
Member
 
Registered: Jan 2010
Distribution: Debian, Centos, Ubuntu, Slackware
Posts: 361
Blog Entries: 3

Rep: Reputation: 48
Hi, friends!

I have an idea to use a home Slackware server without HDD. (NAT, maybe traffic shaping and a tiny web-site)
So, I want the system to be installed to (not from!) USB-flash drive and then booted from USB, but not HDD.

I'm not sure if these scripts will allow me to do this ?!
Can you give an advice?

Best regards, Alexey

ps: I have a 512 mb USB flash drive. My common Slackware server-install uses about 350 Mb of disk space. So, I hope a 512 USB-flash will be OK.

Last edited by Lexus45; 01-26-2010 at 01:04 PM.
 
Old 01-26-2010, 02:52 PM   #10
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
Lexus45
just install to the usb instead of hdd


Eric: I'm gonna try this new script, with some other stuff
so, i also wanna install SalixOS and Slack13 in this fashion

I believe SalixoS's cd closely mirrors Slacks iso layout
so I hope your scrip works for it too
 
Old 02-01-2010, 04:37 PM   #11
valnar
Member
 
Registered: May 2005
Posts: 66

Rep: Reputation: 15
Quote:
Originally Posted by linus72 View Post
Lexus45
just install to the usb instead of hdd
That won't necessarily work. It depends if the kernel has the USB drivers loaded or if they load later. I tried to do the same with Zenwalk and that was the case.
 
Old 02-02-2010, 02:01 PM   #12
JimBrewster
Member
 
Registered: Feb 2010
Location: usa:/dev/random
Distribution: Slackware-15.0; -current
Posts: 245

Rep: Reputation: 60
Quote:
Originally Posted by valnar View Post
That won't necessarily work. It depends if the kernel has the USB drivers loaded or if they load later. I tried to do the same with Zenwalk and that was the case.
You'll probably need to put USB drivers in your initrd.gz (read the documentation on the Slack install iso), then it should work.

Jim
---
Slacking since 3.6
 
  


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
complete slackware 13 installation on a usb disc kemalposedi Slackware - Installation 2 10-17-2009 01:40 PM
Writing slackware iso image to USB pendrive jayakrishnan Linux - General 5 06-22-2009 09:05 PM
New Tinycore release for USB - Includes complete setup for FAT16/32 & EXT2/3 linus72 Linux - Newbie 2 06-03-2009 03:19 PM
Is my USB Linux Boot Disk complete? (Slackware verbose) ShellyCat Linux - Laptop and Netbook 8 07-18-2007 10:18 PM
Slackware NFS install: SETUP COMPLETE in 5 seconds mokele Slackware 2 03-26-2007 05:23 PM

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

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

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