Other Converting ISO to img

In my opinion, the img file should be dd to the device, not the partition. When I did it, I did not do any partitioning of the device at all. I did it on linux, but later, I will do it again on my FreeBSD laptop and report back what happened. I know it shouldn't make any difference, but balanga - do you have another usb stick you can try?
I have tried about five. I have no problems creating partitions on them using gpart add which suggests that there is nothing wrong with the sticks.
 
that dd command undoes the partitioning you just did — you are overwriting the partition table you created! try creating the partition table and dding the image onto the partition, not the drive.
 
Code:
mdconfig -a -t vnode -f bios.img
gpart show md0
It doesn't show anything. I'm using md3 and I can't mount it.

file -s /dev/md3
/dev/md3: DOS/MBR boot sector, code offset 0x3c+2, OEM-ID "*P%5!IHC" cached by Windows 9M, sectors/cluster 2, root entries 112, sectors 1440 (volumes <=32 MB), sectors/FAT 3, sectors/track 18, serial number 0x124b0cf8, label: "DISK 1", FAT (12 bit), followed by FAT
 
balanga - I edited my post above - I didn't realise you had already responded. I have done the process on my FreeBSD laptop, and it worked as expected. I am not sure why you are not able to do it.
 
balanga :
  • In my opinion, your assertion that the dd command is the only one that matters is correct, once you have the file in the correct format (the job of geteltorito).
  • I also agree you should be able to mount the partition using the command you specified. If you can't do this, then I would take this as an indication the drive won't work.
What laptop are you using to run the commands? Do you have other sticks with data that mount and run correctly? Do you have another device on which you can try again?
 
balanga :
  • In my opinion, your assertion that the dd command is the only one that matters is correct, once you have the file in the correct format (the job of geteltorito).
  • I also agree you should be able to mount the partition using the command you specified. If you can't do this, then I would take this as an indication the drive won't work.
What laptop are you using to run the commands? Do you have other sticks with data that mount and run correctly? Do you have another device on which you can try again?
I've tried it on four different laptops all running FreeBSD 15.0 using different USB sticks.

I'm completely baffled by it not working, as it seems to be down to one command.
 
ok , i don't know the tool , maybe you need additional command line actions to put actual partitions on the .img/.iso ?
The instructions are simple enough. Give this a try and tell me where I'm going wrong.

sh:
pkg install -y geteltorito
gpart show da0
BIOSFILE='upgrade.iso'
fetch -o $BIOSFILE https://download.lenovo.com/ibmdl/pub/pc/pccbbs/mobiles/7nuj22uc.iso
geteltorito -o bios.img $BIOSFILE
dd if=bios.img of=/dev/da0 bs=1M status=progress
geteltorito -o bios.img $BIOSFILE
dd if=bios.img of=/dev/da0  bs=1M && sync
gpart show da0
exit
 
Verify the dd works then,
"No Bootable Device": If it fails to boot, re-verify that Legacy Support is enabled in the BIOS settings, as these older Lenovo update images often do not support native UEFI booting.
 
Back
Top