Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Usb storage with installer

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
phoenix_art
Posts: 134
Joined: 2013-12-08 17:47
Has thanked: 1 time

Usb storage with installer

#1 Post by phoenix_art »

Hello,

Is it possible to use my freshly created debian 11 installer usb flashdrive for put some more files on it later? I mean its in write protected filesystem and I'd like to use this device as storage too.

User avatar
FreewheelinFrank
Global Moderator
Global Moderator
Posts: 2062
Joined: 2010-06-07 16:59
Has thanked: 38 times
Been thanked: 221 times

Re: Usb storage with installer

#2 Post by FreewheelinFrank »

AFAIK no it isn't. You probably want to look at creating a live USB with persistence.

Unfortunately, the Debian on the subject is fairly terse and admits to not working on Bullseye.

https://wiki.debian.org/DebianLive/LiveUsbPersistence

Somebody on the forum seems to have got it working recently.

viewtopic.php?t=150793

As mentioned in that thread, Antix has good support for persistence, if want to try it out.

brian_p
Posts: 196
Joined: 2015-11-05 10:32
Has thanked: 1 time
Been thanked: 5 times

Re: Usb storage with installer

#3 Post by brian_p »

phoenix_art wrote: 2022-09-29 10:57 Hello,

Is it possible to use my freshly created debian 11 installer usb flashdrive for put some more files on it later? I mean its in write protected filesystem and I'd like to use this device as storage too.
In principal, what you want to do is doable. See

https://unix.stackexchange.com/question ... ing-debian

It was intriguing enough for me to give it a go.

Code: Select all

lsblk
gave me the USB device. Then I created a third partition with

Code: Select all

fdisk -w never /dev/sde
and formatted it with

Code: Select all

mkfs.ext4 /dev/sde3
The installer still booted and I took it as far as the partitioning stage. As far as I am concerned, the procedure was a success.

You have nothing to lose by trying it. Reporting back would help other users.
--
Brian.

pwzhangzz
Posts: 420
Joined: 2020-11-11 17:42
Has thanked: 9 times
Been thanked: 26 times

Re: Usb storage with installer

#4 Post by pwzhangzz »

Actually, if you are only talking about storing data files, this is ridiculously easy. All you have to do is to copy all the files, including hidden files, of a Debian hybrid iso (not the iso itself but the content thereof) to a fat32-formatted usb, which could be the entire usb or the first partition. You can boot from this usb or use it simply as an ordinary storage device.

You probably will need some Linux knowledge to make this work. We don't use Windows but we a while ago were able to make a bootable Debian liveusb from Windows 10 as what it involves is simply a copying process.

phoenix_art
Posts: 134
Joined: 2013-12-08 17:47
Has thanked: 1 time

Re: Usb storage with installer

#5 Post by phoenix_art »

Thanks for all the answers! I was short of time, but I will try to make time for these operations.

phoenix_art
Posts: 134
Joined: 2013-12-08 17:47
Has thanked: 1 time

Re: Usb storage with installer

#6 Post by phoenix_art »

brian_p wrote: 2022-09-30 13:06
phoenix_art wrote: 2022-09-29 10:57 Hello,

Is it possible to use my freshly created debian 11 installer usb flashdrive for put some more files on it later? I mean its in write protected filesystem and I'd like to use this device as storage too.
In principal, what you want to do is doable. See

https://unix.stackexchange.com/question ... ing-debian

It was intriguing enough for me to give it a go.

Code: Select all

lsblk
gave me the USB device. Then I created a third partition with

Code: Select all

fdisk -w never /dev/sde
and formatted it with

Code: Select all

mkfs.ext4 /dev/sde3
The installer still booted and I took it as far as the partitioning stage. As far as I am concerned, the procedure was a success.

You have nothing to lose by trying it. Reporting back would help other users.
~$ sudo fdisk -w never /dev/sdb

Welcome to fdisk (util-linux 2.36.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

The device contains 'iso9660' signature and it may remain on the device. It is recommended to wipe the device with wipefs(8) or fdisk --wipe, in order to avoid possible collisions.

but after running any of two recommended commands it just sent me:

~$ sudo fdisk --wipe /dev/sdb
fdisk: unsupported wipe mode

and

~$ wipefs(8) /dev/sdb
bash: szintaktikai hiba „8” váratlan token közelében (translate: bash: syntax error near "8" unexpected token)

phoenix_art
Posts: 134
Joined: 2013-12-08 17:47
Has thanked: 1 time

Re: Usb storage with installer

#7 Post by phoenix_art »

As nothing helped finally Ventoy did the trick well: https://www.ventoy.net/en/index.html.

Post Reply