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-13-2022, 12:04 PM   #1
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Slackware Live script


Maybe I'm having delusions of competence, but I'm getting this error after trying all the obvious stuff
Code:
bash-5.1$ cd Downloads/liveslak-1.5.0
bash-5.1$ sudo ./iso2usb.sh -d
#
# Removable devices detected on this computer:
# /dev/sdc : USB      SG Flash        : 30000 MB
# /dev/sr0 : TSSTcorp CDDVDW SN-208BB : 1023 MB
#
bash-5.1$ sudo ./iso2usb.sh -i /home/dec/Downloads/slackware-live-xfce-current.iso -p -o /dev/sdc
*** Unknown parameter '/dev/sdc'!
I have deleted my liveslak directory and untarred it afresh, checked for the device nodes (present & correct) and udev (running). I'm running Slackware-15-Current-RC1. I've tried it as sdb, and sdc, powered off the box, and both in X and from an agetty console. I've even tried with '-o' & '--outdev'

EDIT: I've even ran 'wipefs -a' to provide a clean sweep of filesystems, but the problem persists

Last edited by business_kid; 01-13-2022 at 12:22 PM.
 
Old 01-13-2022, 12:29 PM   #2
camorri
LQ 5k Club
 
Registered: Nov 2002
Location: Somewhere inside 9.9 million sq. km. Canada
Distribution: Slackware 15.0, current, slackware-arm-currnet
Posts: 6,215

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
This is my best guess.

I suspect the use of -p requires a name of the persistent file or directory. I would guess the -o is assumed to be the name. Hence, /dev/sdc is looked at as a parameter.

If your intention is to not specify a name for a file, the -P should word. ( thats capitial P ).

Hope this helps.
 
Old 01-13-2022, 12:37 PM   #3
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,356

Rep: Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067Reputation: 4067
You just need to specify the name of the directory

Code:
iso2usb.sh -i slackware64-live-lean-current.iso -p persist -o /dev/sda
Code:
blackstar :: ~ » ls /mnt/alien*
mnt/alienusb.8ZCM2M:
boot  liveslak  lost+found  persist
 
Old 01-13-2022, 01:44 PM   #4
Windu
Member
 
Registered: Aug 2021
Distribution: Arch Linux, Debian, Slackware
Posts: 589

Rep: Reputation: Disabled
Quote:
Originally Posted by marav View Post
You just need to specify the name of the directory
... or leave out that "-p" parameter completely. Then the script will use a baked-in name for the persistence directory.
There's a "-h" help function to the script.
Code:
#   -p|--persistence <name>    Custom path to the 'persistence' directory
#                              or containerfile (persistence by default).
 
1 members found this post helpful.
Old 01-14-2022, 06:33 AM   #5
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Yep. leaving out the '-p' sorted it. I evidently was having delusions of competence.
 
Old 01-15-2022, 11:31 AM   #6
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
This threw up something interesting so I thought I'd add it.

Having a Raspberry Pi 4B , I've been doing a lot of block copying of media recently. Most distributions are offered as binary images, which I have been installing with
Code:
dd if=/path/to/Some_Image of=/dev/sdX bs=whatever status=progress OR
dd if=/path/to/Some_Image of=/dev/mmcblk0 bs=whatever status=progress
and for the RazPi, that's fine. It doesn't need anything fancy to boot a RazPi. But it somehow compromises the disk's ability to be used as a boot disk in a pc. SD cards aren't bootable anyhow, but usb disks copied in this fashion work fine as data disks, but won't boot the pc. They show as a valid option in the live usb boot menu, but no option works.

If anyone has the magic to reverse this, of course, I'd welcome it.
 
Old 01-16-2022, 12:50 PM   #7
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,292

Original Poster
Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
I went one stage further with this:

All the partition tables start at sector 2048, skipping the 1st Meg. So I put in a compromised usb disk as sdb, and a known good liveslak usb drive as sdc. Then I ran
Code:
dd if=/dev/sdc of=/dev/sdb bs=512 count=2048
to rewrite sectors 0-2047. Again, it's seen as a bootable drive, but is not bootable.
 
  


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
Have you tried USB boot of Slackware Live Edition? slackware-live/1.3.5.1 or other versions? philip0 Slackware - Installation 2 05-27-2020 12:06 PM
Slackware 14.2 "Slacker" live DVD/USB featuring XFCE4, Kernel 4.19.29-xanmod15, and Linux-Live Kit linus72 Slackware 119 07-19-2019 06:47 AM
slackware live current or slackware live current lemonade Slackware 5 03-23-2018 06:28 AM
I wanna make a live slackware live cd. Please help cyto Slackware 7 08-04-2011 02:23 AM

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

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