Re: [SOLVED] Re: UUID permanent at removable device?

2023-11-14 Thread Hans
Am Sonntag, 12. November 2023, 19:43:13 CET schrieben Sie: Hi folks, although I already marked my problem as solved, I just want to tell, that I found the best solution for me. Thanks to Andi's hint I am now using /dev/disk/by-id/my_serial for the usb stick. As I am using always the same

Re: UUID permanent at removable device?

2023-11-12 Thread Thomas Schmitt
Hi, Hans wrote: > I want to automatically create a bootable USB-stick using dd from an > ISO-file. The landscape of ISO files is wide and varied. An URL for getting the ISO would help to make more specific statements. > However, after generating the stick the UUID of the first partition >

Re: [SOLVED] Re: UUID permanent at removable device?

2023-11-12 Thread Andy Smith
Hi, On Sun, Nov 12, 2023 at 07:43:13PM +0100, Hans wrote: > Am Sonntag, 12. November 2023, 19:27:20 CET schrieb Andy Smith: > Yes, this is looking promising. Looks like thisis what I exactly need. I am still intrigued by the idea of an iso file having a UUID when it's written directly to a USB

Re: UUID permanent at removable device?

2023-11-12 Thread David Wright
On Sun 12 Nov 2023 at 18:27:20 (+), Andy Smith wrote: > On Sun, Nov 12, 2023 at 07:03:41PM +0100, Hans wrote: > > I want to dd it automatically like > > > > dd if=/path/to/my/image.iso of=UUID=34567890-afde-.-1234 > > If your use case is writing an ISO file directly to a USB device (no

[SOLVED] Re: UUID permanent at removable device?

2023-11-12 Thread Hans
Am Sonntag, 12. November 2023, 19:27:20 CET schrieb Andy Smith: Yes, this is looking promising. Looks like thisis what I exactly need. I will try it. Thanks for the fast response! Best Hans > Hello, > > On Sun, Nov 12, 2023 at 07:03:41PM +0100, Hans wrote: > > I want to dd it automatically

Re: UUID permanent at removable device?

2023-11-12 Thread Hans
Hi Andy, to make things more clear. This is what I want to do: I am using bootcdwrite, which writes its cdimage.iso to a mounted (because of to few disk space) to a mounted external harddrive. This one got a UUID, which never changes, so I can mount it automatically. All this is working

Re: UUID permanent at removable device?

2023-11-12 Thread Andy Smith
Hello, On Sun, Nov 12, 2023 at 07:03:41PM +0100, Hans wrote: > I want to dd it automatically like > > dd if=/path/to/my/image.iso of=UUID=34567890-afde-.-1234 If your use case is writing an ISO file directly to a USB device (no partitioning) then I'd think you could use the ID of the USB

Re: UUID permanent at removable device?

2023-11-12 Thread Andy Smith
Hello, TL;DR: Use filesystem labels. This is the sort of thing they're for. On Sun, Nov 12, 2023 at 06:55:33PM +0100, Hans wrote: > However, after generating the stick the UUID of the first partition > (/dev/sdc1) > is changing, so next time, the script will not work again, of course. Do you

Re: UUID permanent at removable device?

2023-11-12 Thread Hans
Correct myself: NOT: > As I want to always the same USB-stick, I would like to mount it using a shell script. > I want to dd it automatically like dd if=/path/to/my/image.iso of=UUID=34567890-afde-.-1234 or similar. Sorry for making things unclear. Hans

UUID permanent at removable device?

2023-11-12 Thread Hans
Hi folks, just a question. I want to automatically create a bootable USB-stick using dd from an ISO-file. As I want to always the same USB-stick, I would like to mount it using a shell script. However, after generating the stick the UUID of the first partition (/dev/sdc1) is changing, so