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 10-06-2022, 07:24 PM   #1
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Rep: Reputation: Disabled
Trouble interpreting instructions for Live Slackware usb


Hi!

I am afraid I may be asking a pretty dumb question, but unfortunately I can't avoid it, as I need a persistent Live Slackware USB. I have made a couple in the past but I never cared whether they were persistent or not, before.

Will the following command produce a persistent USB?

Code:
# ./iso2usb.sh -i ~/download/slackware64-live-daw-current.iso -o /dev/sdX
And if so how does one produce a non persistent one? (this one is just a matter of curiosity).
 
Old 10-06-2022, 07:43 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,272
Blog Entries: 28

Rep: Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124Reputation: 6124
It might help provide some context if you were to provide a link the instructions you are trying to follow.
 
Old 10-06-2022, 08:28 PM   #3
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
My Bad ! I apologize.

I edited what had become a too long post, and in the process I eliminated the link:
https://docs.slackware.com/slackware:liveslak

and the parts I was not sure of how to interpret:
Quote:
Create a version of Slackware Live, where the stick is known to the system as '/dev/sdX. Note - the value for the output parameter is the device name of the stick and not one of its partitions!
# ./iso2usb.sh -i ~/download/slackware64-live-14.2.iso -o /dev/sdX

Create a Live with an encrypted /home (allocating 30% of the stick's free space for /home) and where the persistent data will be stored in a container file instead of a directory:
# ./iso2usb.sh -i slackware64-live-current.iso -o /dev/sdX -c 30% -P

You might have noticed that the “-P” parameter does not accept a size parameter. This is because the unencrypted container file is created as a 'sparse' file that starts at zero size and is allowed to grow dynamically to a maximum of 90% of the initial free space on the Linux partition of the stick.

-P --persistfile Use an unencrypted 'persistence' file insteadof a directory
(for use on FAT filesystem).

-p|--persistence <name> Custom name of the 'persistence' directory/file.
If it does not exist yet, create it manually.
Thanks for caring.
 
Old 10-06-2022, 08:35 PM   #4
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
This also is not clear to me:
Quote:
The CD/DVD versions (and the USB stick if you configure it accordingly) operate without persistence, which means that all the changes you make to the OS are lost when you reboot.
as how to achieve it, but as stated previously, just a matter of curiosity, as I don't remember how I did it in the past.
 
Old 10-06-2022, 08:41 PM   #5
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
I think it's just the presence or absence of the -p
(like the presence or absence of -l on ls gives you a long listing or not)

You can't write on a typical CD.
I think 'accordingly' meant without the -p

I'm learning too! Slackware is amazing! You'll get there!

Last edited by !!!; 10-06-2022 at 08:42 PM.
 
1 members found this post helpful.
Old 10-06-2022, 09:07 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,330

Rep: Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579
nevermind
 
Old 10-06-2022, 09:39 PM   #7
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Question UNclear

But I always mind!!!
Code:
-p|--persistence <name>    Custom name of the 'persistence' directory/file.
                            If it does not exist yet, create it manually.
-P|--persistfile           Use an unencrypted 'persistence' file instead
                            of a directory (for use on FAT filesystem).
Examples:
What/Who 'create it manually': the script,
or must the user, before running the script?

Why doesn't the -P (uppercase) take a file name?
 
1 members found this post helpful.
Old 10-07-2022, 09:57 AM   #8
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,330

Rep: Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579
-P toggles from a persistent directory to a persistent file. -p <name> changes the name of the persistence directory/file from the default name persistence.

To disable persistence add nop to the boot loader config files on the usb or use dd/copy to put iso onto usb (will make usb read only).

Last edited by colorpurple21859; 10-07-2022 at 09:59 AM.
 
1 members found this post helpful.
Old 10-07-2022, 12:50 PM   #9
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
Thanks guys. I guess I understand it now.

Is it OK to ask here what is the concrete, practical difference between using a file and using a directory for persistence?
 
Old 10-07-2022, 12:54 PM   #10
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
...And is the nop parameter valid for different bootloaders, or is it limited to some preferred ones?

Pardon me if I am too curious.

Last edited by fredmyra; 10-07-2022 at 12:55 PM. Reason: typo
 
1 members found this post helpful.
Old 10-07-2022, 02:15 PM   #11
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
Question nop???

Quote:
nop
must be a typo here. It is a CPU instruction operation code!!!
https://en.m.wikipedia.org/wiki/Opcode
Quote:
Originally Posted by colorpurple21859 View Post
... To disable persistence
add nop
to the boot loader config files on the usb ...

What do all of you mean by: bootloader?
grub? loadlin? (I couldn't find the three character token ' nop ' in any documentation)
https://en.m.wikipedia.org/wiki/Bootloader
https://en.m.wikipedia.org/wiki/Comp...of_bootloaders

I don't think you mean a kernel boot parameter:
https://www.kernel.org/doc/html/v6.0...arameters.html

S wanna know
In words: :confused: :banghead: :newbie:S :cry: wanna know :study: :scratch:

Added: while desperately googling, I did find something that mentions
Quote:
'nopersistent'
https://askubuntu.com/questions/1181...h-ubuntu-19-10

Last edited by !!!; 10-07-2022 at 02:52 PM.
 
Old 10-07-2022, 04:12 PM   #12
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,330

Rep: Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579
nop is one of the boot parameters for liveslak mentioned about the middle section of the liveslak documentation


Add nop as a kernel boot parameter to the linux line of the EFI/BOOT/grub.cfg file on the efi partition of the usb for uefi mode and the append line of boot/extlinux/menu/vesamenu.cfg on the liveslak partition for legacy mode

Or add nop as a boot option to the boot menu at start-up as a temporary fix.

Last edited by colorpurple21859; 10-07-2022 at 04:29 PM.
 
2 members found this post helpful.
Old 10-07-2022, 08:38 PM   #13
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,330

Rep: Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579Reputation: 1579
Quote:
Is it OK to ask here what is the concrete, practical difference between using a file and using a directory for persistence?
The liveslak persistence directory is readily accessible when liveslak is auto-mounted with a file manager, whereas a persistence file requires an extra step of mounting to access the persistence files.



On a side note I think deleting the persistence directory/file will disable persistence, not sure if there is any downside to this.
 
1 members found this post helpful.
Old 11-20-2022, 05:35 PM   #14
fredmyra
Member
 
Registered: Dec 2019
Location: Sweden
Posts: 295

Original Poster
Rep: Reputation: Disabled
@colorpurple21859: thanks for once again clarifying.

Marking as solved.
 
  


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
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
[SOLVED] Slackware-live "su" instructions in README gus3 Slackware 5 09-04-2019 10:39 AM
[SOLVED] Looking for Slackware 13.37 instructions to Chromium O/S on a USB Robert.Thompson Slackware 6 07-05-2011 04:50 PM
GnuStep live cd install instructions victoralejanro Linux - Desktop 1 01-24-2010 05:28 AM

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

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