LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 08-05-2020, 02:26 PM   #16
captain_sensible
Member
 
Registered: Apr 2010
Posts: 270

Rep: Reputation: 85

i've been using ventoy for a few weeks. The ventoy2Disk.sh formats the pendrive into 2 partitions ; the only one you see is the first partition and where you copy or just drag and drop iso's.The other partition lurking is the one that does the magic using grub.

Not all Linux iso's work. Also some work but don't work with persistence.I put linuxmint-19.3-cinnamon-64bit.iso on a stick using ventoy yesterday and that works treat. I haven't tested this one yet but did confirm a week or 2 back that one of the Mint cinnamon will work with persistence. To do that you need to have a json file eg

Code:
{
   
   
    "control": [
        { "VTOY_DEFAULT_MENU_MODE": "0" },
        { "VTOY_FILT_DOT_UNDERSCORE_FILE": "1" },
        { "VTOY_DEFAULT_SEARCH_ROOT": "/ISO" }
    ],

  
   
     "persistence": [
        {
           "image": "/ISO/linuxmint-19.3-cinnamon-64bit.iso",
            "backend": "/persistence.img"
        }
    ]
   

   
}
Also use the CreatePersistentImg.sh script which as defualt will create a 1gig .img of file label casper-rw


For Aliens live slack use his iso2usb script which will put the iso on the usb with persisitence

Last edited by captain_sensible; 08-05-2020 at 02:27 PM. Reason: forgot about Alien slack live
 
Old 08-05-2020, 03:33 PM   #17
ReFracture
Member
 
Registered: Oct 2007
Location: Utah
Distribution: Slackware64-current-multilib
Posts: 125

Rep: Reputation: 149Reputation: 149
It's a neat program. I used it to install Windows 10 and slackware64-current.
 
1 members found this post helpful.
Old 08-05-2020, 05:36 PM   #18
drgibbon
Member
 
Registered: Nov 2014
Distribution: Slackware64 -current
Posts: 764

Rep: Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507Reputation: 507
Quote:
Originally Posted by Gordie View Post
I found this and have decided to give it a try. Used it for CentOS7 and it worked very well. Maybe now I wont ruin so many usb flash drives
Just tested this out, very cool. It works with Slackware -current, PureOS, and Ubuntu. Nice to have them all available on one USB, thanks!
 
1 members found this post helpful.
Old 08-06-2020, 02:55 PM   #19
scdbackup
Member
 
Registered: Oct 2013
Posts: 149

Rep: Reputation: Disabled
Hi,

(Didier said "xorriso". So here i am.)

Both dd and cp just put the bytes onto the device file. More is not needed.
All partitioning and boot sectors are defined by the bytes which get copied.

But both are darn dangerous because normally only the superuser is allowed
to overwrite a block device file. And the same superuser (or sudoer) is also
allowed to shoot the own foot by overwriting the system disk.

So i developed a shell script which shall keep the user from copying to
the wrong device. Its best trick is to identify the proper target device
by watching it getting plugged in.
https://wiki.debian.org/XorrisoDdTarget

Have a nice day

Thomas
 
1 members found this post helpful.
Old 08-06-2020, 04:25 PM   #20
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-14.2.1.2 on Lenovo Thinkpad W520
Posts: 9,476

Rep: Reputation: Disabled
Hi Thomas,

thanks for sharing.

I hope that I may write the path to a Slint ISO as argument of -image_file

Very small nitpick: pasting the script in https://www.shellcheck.net/ highlight that in POSIX sh, echo flags are undefined (like echo -n). printf is your friend

More seriously, wouldn't you want to exclude dm-crypt encrypted, RAID, LVM and Xen storage devices? Maybe you do already, I just had a quick look at the script.

While you are here, please read this post. I will propose in the new Slint installer to use an f2fs file system for SD cards, USB sticks and eMMC drives, but am at a loss to find a way to make sure a drive belongs to these kinds.

Do you know a way, either using existing commands or looking into /proc or /sys for instance to do that? That would help as I will list these kinds of drives for the user, but maybe he will not know what is an eMMC, and if the machine has one.

Thanks again, have a good day.
 
Old 08-07-2020, 01:44 AM   #21
scdbackup
Member
 
Registered: Oct 2013
Posts: 149

Rep: Reputation: Disabled
Hi,

Didier Spaier wrote:
> I hope that I may write the path to a Slint ISO as argument of -image_file

Well, if it was made with xorriso ...

Pun aside, it is supposed to work with images of any type or origin.


> echo flags are undefined (like echo -n). printf is your friend

But printf is new-fangled in comparison to echo. I.e. not mentioned in
S.R.Bourne's "The Unix System". I will ponder ...

Do you know a Linux shell where echo does not have option -n ?


> More seriously, wouldn't you want to exclude dm-crypt encrypted,
> RAID, LVM and Xen storage devices?

I considered a whitelist of applicable devices.
But reading
https://github.com/torvalds/linux/bl...de/devices.txt
gives me the impression that this is not an easy decision.

There is a little blacklist with "sr[0-9]", "fd[0-9]", "loop[0-9]",
"zram[0-9]", and partitions of "sd[a-z]", "mmcblk", "nvme".

Re-reading devices.txt, i should probably reject partitions of
"sd[a-z][a-z]".

dm-crypt: How would i recognize ?
RAID: "md[0-9]" could be added to the blacklist. But there are other RAID
devices in devices.txt.
LVM: How would i recognize ?
Xen: Wouldn't a USB stick of the host system show up as Xen block device ?

> I will propose in the new Slint installer to use an f2fs file system
> for SD cards, USB sticks and eMMC drives, but am at a loss to find a
> way to make sure a drive belongs to these kinds.

I gave up on surely identifying the device class. The file names of devices
are not guaranteed to be stable in future, and i do not want to put the
script's fingers deeper into Linux than by running lsblk.

So more than on device classification the script relies on recognizable
filesystems and especially on the plug-in test, which gives an unambiguous
interface to the user. It can hardly fail, unless the user does not know
which physical USB stick is the one to be overwritten by the image.

Have a nice day

Thomas
 
  


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
LXer: How to create a multiboot USB with Ventoy LXer Syndicated Linux News 0 07-01-2020 03:21 PM
LXer: Create Persistent Bootable USB Using Ventoy In Linux LXer Syndicated Linux News 0 06-13-2020 04:30 AM
LXer: How To Create Multiboot USB Drives With Ventoy In Linux LXer Syndicated Linux News 0 05-23-2020 06:52 AM

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

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