bootable usb flash disk

Hello, please is it possible to create bootable usb flash disk on one of its partition ? E.g. on /dev/sdb2

I’ve tried openSUSE-Leap-15.0-Rescue-CD-x86_64-Current.iso using dd and unetbootin but it doesn’t boot.


# fdisk -l
/dev/sdb1                4220    12031     7812   3,8M ef EFI (FAT-12/16/32)
/dev/sdb2    *          12288  9062399  9050112   4,3G 83 Linux
/dev/sdb3             9062400 30851071 21788672  10,4G 83 Linux
#
#
# dd if=openSUSE-Leap-15.0-Rescue-CD-x86_64-Snapshot20.130-Media.iso of=/dev/sdb2 bs=4M

No, not with one of the isos, As you can see it will create partitions in the partition. This works with the Live images, they’re using an overlayfs.
An option you have is to perform a real install and create the necessary partitions in empy space on the USB flash disk.

Those rescue images should go to the device, not to a partition.

Thus to answer your questions: no

It should be of=/dev/sdb. And it will destroy all that is on the device, including the partition table.

@boycottsystemd:

On the openSUSE Download URL <https://software.opensuse.org/distributions/leap> on the “Installation” tab, there’s a pointer to “How to create a bootable USB stick on Linux.”

  • Don’t forget to verify the SHA256 checksum (download URL is alongside that of the ISO image) of the downloaded ISO image file …
  • It seems that, the current recommendation is to use the “SUSE Studio Image Writer” to set up the USB stick …

A simple "dd (with parameters) or “cp” to the device – and NOT to a partition on the device (ie: to sdX and NOT sdXN) – does it just fine.