bug#34487: dd (coreutils) 8.30 – A written ISO image cannot not be booted from BIOS

2019-02-15 Thread Assaf Gordon

tags 34487 notabug
close 34487
stop

Hello,


On 2019-02-15 5:02 a.m., Ricky Tigg wrote:

Hi. An ISO image cannot not be booted from BIOS


[...]
# dd if=debian-9.7.0-amd64-DVD-3.iso of=/dev/sdc 


A CD/DVD image is not the same as a hard drive.
The internal structure differs,
and one can not be copied to the other and expected to work.

Since this is not a bug in dd, I'm closing this item.


For general help regarding operating system installation,
please contact the relevant operating system's mailing list.
In this case, likely Debian-user mailing list:
  https://lists.debian.org/debian-user/
See also https://wiki.debian.org/DebianMailingLists .

regards,
 -assaf






bug#34487: dd (coreutils) 8.30 – A written ISO image cannot not be booted from BIOS

2019-02-15 Thread Ricky Tigg
Hi. An ISO image cannot not be booted from BIOS

Initial device state:
# parted /dev/sdc unit s print free
Model: (...) (scsi)
Disk /dev/sdc: 15638480s
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End   SizeType   File system   Flags
   2s15638479s 15638478s  Free Space

Then commands executed were (Note: a non-live ISO image is involved):

# dd if=debian-9.7.0-amd64-DVD-3.iso of=/dev/sdc bs=4M oflag=direct && sync
$ df -hT | tail -n1
/dev/sdciso9660   4.4G  4.4G 0 100% /run/media/yk/Debian 9.7.0
amd64 3
# parted /dev/sdc unit s print free
Error: /dev/sdc: unrecognised disk label
Model: (...) (scsi)
Disk /dev/sdc: 15638480s
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

That dd command was also executed without option/parameter 'oflag=direct'.
but final result remained identical. I could notice that *dd* erased
existent *partition table* and didn't add flag *boot.* Once at last the
system was rebooted, then proper device selected from BIOS , the following
message was produced:

> *Reboot and select proper boot device or insert boot media in selected
> boot device and press a key.*
>