Mailinglist Archive: opensuse (911 mails)

< Previous Next >
Re: [opensuse] making iso from distribution bootable usb stick
On 27/12/15 08:04 AM, Stanislav Baiduzhyi wrote:
On Sun, Dec 27, 2015 at 12:35 PM, jdd <jdd@xxxxxxxxx> wrote:
as a complementary word, usb sticks are 8Gb, so a simple dd is not a
solution, may be with some argument??
I've read the sources of suse image writer, it just copies the content
of the ISO to the device. So I would guess the same can be done
backwards? I'm just not sure how ISO will behave if the image file
length is bigger than actual contents.
So, what I would try:
I am pretty sure that this is not going to work. I used image writer to
create a usb stick to install Leap. It contains two partitions, a very
small EFI (FAT-16) partition and a hidden 4GB NTFS or HPFS partition
containing the files from the ISO image:

loki:~ # fdisk -l /dev/sdf

Disk /dev/sdf: 15.2 GiB, 16296967680 bytes, 31830015 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x20ca2c8b

Device Boot Start End Sectors Size Id Type
/dev/sdf1 3780 11339 7560 3.7M ef EFI (FAT-12/16/32)
/dev/sdf2 * 11340 9078783 9067444 4.3G 17 Hidden HPFS/NTFS

Notice that the number of sectors on that second partition is more than
5MB smaller than the original ISO image.

Here is what is on the first partition (the second, hidden, partition
contains all the files from the ISO image):

loki~ # mount /dev/sdf1/oldsys
loki~ # ls -l /oldsys
total 4
-rwxr-xr-x 1 root root 106 Oct 29 14:21 .packages.grub2-efi
drwxr-xr-x 3 root root 2048 Oct 29 14:21 EFI

loki~ # ls -l /oldsys/EFI
total 2
drwxr-xr-x 3 root root 2048 Oct 29 14:21 BOOT

loki~ # ls -l /oldsys/EFI/BOOT
total 3166
-rwxr-xr-x 1 root root 1161312 Oct 29 14:21 MokManager.efi
-rwxr-xr-x 1 root root 1157056 Oct 29 14:21 bootx64.efi
-rwxr-xr-x 1 root root 1760 Oct 29 14:21 grub.cfg
-rwxr-xr-x 1 root root 915832 Oct 29 14:21 grub.efi
drwxr-xr-x 2 root root 2048 Oct 29 14:21 locale

Evidently, the system is booting from the EFI partition, using the files
from the second partition to set up the installation environment.

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups