how to write a iso to a flash-drive correctly - the steps to go!?


Results 1 to 7 of 7

Thread: how to write a iso to a flash-drive correctly - the steps to go!?

Threaded View

  1. #5
    Join Date
    Nov 2024
    Posts
    224
    dear Michael, dear DemandingTruth


    first of all -- many thanks for the support and for your replies. I am glad - i am really glad to be part of your forum.

    well i want to create a iso on a usb-stick that is on

    a. sdb or
    b. sdb1

    the question is - how to name it in the dd-command?! see more here..


    Code:
    Ger?t      Boot Anfang     Ende Sektoren Gr??e Kn Typ
    /dev/sdb1  *        64 60620799 60620736 28,9G  c W95 FAT32 (LBA)
    ubuntu@T420s:~$ lsblk
    NAME            MAJ:MIN RM   SIZE RO TYPE MOUNTPOINTS
    loop0             7:0    0     4K  1 loop /snap/bare/5
    loop1             7:1    0  55,4M  1 loop /snap/core18/2846
    loop2             7:2    0  55,4M  1 loop /snap/core18/2855
    loop3             7:3    0  63,7M  1 loop /snap/core20/2496
    loop4             7:4    0  63,7M  1 loop /snap/core20/2434
    loop5             7:5    0  73,9M  1 loop /snap/core22/1748
    loop6             7:6    0  73,9M  1 loop /snap/core22/1722
    loop7             7:7    0  93,6M  1 loop /snap/featherpad/1070
    loop8             7:8    0 257,9M  1 loop /snap/firefox/5783
    loop9             7:9    0 349,7M  1 loop /snap/gnome-3-38-2004/143
    loop10            7:10   0 257,8M  1 loop /snap/firefox/5836
    loop11            7:11   0 505,1M  1 loop /snap/gnome-42-2204/176
    loop12            7:12   0   516M  1 loop /snap/gnome-42-2204/202
    loop13            7:13   0  91,7M  1 loop /snap/gtk-common-themes/1535
    loop14            7:14   0 752,9M  1 loop /snap/pycharm-community/439
    loop15            7:15   0 822,3M  1 loop /snap/pycharm-community/457
    loop16            7:16   0  12,9M  1 loop /snap/snap-store/1113
    loop17            7:17   0  12,2M  1 loop /snap/snap-store/1216
    loop18            7:18   0  44,4M  1 loop /snap/snapd/23545
    loop19            7:19   0   568K  1 loop /snap/snapd-desktop-integration/253
    loop20            7:20   0 321,1M  1 loop /snap/vlc/3721
    loop21            7:21   0   500K  1 loop /snap/snapd-desktop-integration/178
    loop22            7:22   0  44,4M  1 loop /snap/snapd/23771
    loop23            7:23   0 116,8M  1 loop /snap/zotero-snap/104
    loop24            7:24   0 321,1M  1 loop /snap/vlc/3777
    loop25            7:25   0 116,7M  1 loop /snap/zotero-snap/98
    sda               8:0    0 119,2G  0 disk 
    ├─sda1            8:1    0     1G  0 part /boot/efi
    ├─sda2            8:2    0     2G  0 part /boot
    └─sda3            8:3    0 116,2G  0 part 
      └─ubuntu--vg-ubuntu--lv
                    253:0    0 116,2G  0 lvm  /var/snap/firefox/common/host-hunspell
                                              /
    sdb               8:16   1  28,9G  0 disk 
    └─sdb1            8:17   1  28,9G  0 part /media/ubuntu/71BE-0530
    sr0              11:0    1  1024M  0 rom


    well if iwant to write a iso to the usb-stick should i do it like so:


    Code:
    ubuntu@T420s:~$ sudo dd bs=4M if=~/Videos/eos2.iso of=/dev/sdb status=progress oflag=sync



    well the question is: should i name the target sdb or sdb1 ?

    subsequently : is this a good command

    Code:
    ubuntu@T420s:~$ sudo dd bs=4M if=~/Videos/eos2.iso of=/dev/sdb status=progress oflag=sync

    for creating the iso on a usb?

    well the question is should i use sdb when, it looks like, i should be using sdb1.

    in other words should i try this:

    Code:
    sudo rsync -av --progress /home/ubuntu/Dokumente/ /media/ubuntu/sdb1
    or

    Code:
    ubuntu@T420s:~$ sudo dd bs=4M if=~/Videos/eos2.iso of=/dev/sdb1 status=progress oflag=sync
    dear Michael, dear Demanding Truth,

    i look forward to hear from you

    gretings

    update:


    if we have with

    lsblk

    Code:
    sda               8:0    0 119,2G  0 disk 
    ├─sda1            8:1    0     1G  0 part /boot/efi
    ├─sda2            8:2    0     2G  0 part /boot
    └─sda3            8:3    0 116,2G  0 part 
      └─ubuntu--vg-ubuntu--lv
                    253:0    0 116,2G  0 lvm  /var/snap/firefox/common/host-hunspell
                                              /
    sdb               8:16   1  28,9G  0 disk 
    └─sdb1            8:17   1  28,9G  0 part /media/ubuntu/71BE-0530
    sr0              11:0    1  1024M  0 rom


    my command could be so

    Code:
    sudo dd bs=4M if=/Videos/eos2.iso of=/dev/sdb1 status=progress oflag=sync
    which leads to

    Code:
                                                        /
    sdb                         8:16   1  28,9G  0 disk 
    └─sdb1                      8:17   1  28,9G  0 part /media/ubuntu/EOS_202502
    sr0                        11:0    1  1024M  0 rom  
    ubuntu@T420s:~$

    regarding the sdb and the sdb1

    but i guess that if i use sdb it will overwrite the device; ie. the input & all data (inc. metadata) will be written to the new device; so if the source [ISO] was bootable; the sdb device will also be bootable. If we write to a partition (sdb1) then we 'll have a copy there; but any metadata won't exist & even if source was bootable (metadata is hidden inside partition); the copy on sdb1 will NOT be bootable unless we create/have boot code that will perform those functions. conclusio: well i think that both commands would be probably correct ( bunt in some ways just different!); well finally - it'll depend what we trying to achieve as to which will suit our needs

    i now will do some tests - what fits best as a iso stick...



    have a nice evening.
    Last edited by dhubs; 03-15-2025 at 06:46 PM.
    ....Love Linux - and all things GNU - : and the idea exchange with the community .

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •