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.
 
well, you go through all the effort of partitioning the device, and then after you geteltorito, you dd over all of that with the resulting image, rendering all the preceding commands null and void. did you mean to use of=/dev/da0s1 to get the image onto the partition instead of the device?
Care to point out where the partitioning took place?
 
the image geteltorito writes is not recognisable by the freebsd. The partition table is not default MBR or GPT, it is something probably typical lenovo. So freebsd tooling will not help in this specific case. Only trying to boot it on specific hardware but and specify in bios boot not uefi.
 
cat bios-update
sh:
gpart destroy -F da0

gpart create -s mbr da0
gpart add -t fat32 da0

gpart show da0

geteltorito -o bios.img upgrade.iso
dd if=bios.img of=/dev/da0 bs=1M && sync

gpart show da0
in this script you do a bunch of gpart and then blow away all of the gpart work.

in your other script, you don't, but you dd the image twice, for no reason we can understand besides "i asked chatgpt", which will mislead you.

again: you need to be learning what each step does, and why.
 
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
I really messed up when I pasted that above. It should look like this:-
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 && sync
gpart show da0
exit
 
oh. well, that ...should work. so your problem might indeed be the usb stick, we've had weird problems trying to BIOS-boot off of cheap ones. UEFI tends to fare a little bit better.
 
Back
Top