Modify iso to run usb disk by default

Started by julio, July 07, 2013, 12:41:36 PM

Previous topic - Next topic

julio

Hello I have got a machine that does not usb boot option in BIOS.

I download the iso, burn it and I choose the usb with cursor keys and works well.

I like modify the iso (I suppose Grub files) and I want by default thet computer loads usb disk and not hard disk.

My idea is load the CD and turn on the mahine and it loads usb SO, and not use the control keys to load the usb option.

Do you know how can I do it?

Regards,

Julio


julio

Quote from: vesalocal on July 08, 2013, 13:42:34 PM
Hi!

You might want to read
http://www.plop.at/en/bootmanager/full.html#l_iso  ;-)

Best wishes

Hello, I have download http://download.plop.at/files/bootmngr/plpbt-createiso.zip and I have download http://download.plop.at/files/bootmngr/plpcfgbt-0.11.zip
and I have created a folder to create my iso file.

I think that I want is modify isolinux.cfg from iso, and I do not know to do it.

I think that to solve this question is modify isolinux.cfg in the iso and regenerate the new iso

I want modify the isolinux.cfg file and add the last line
append "hiddenusb usb1=1"
I think that with this code machine loads the usb by default

default plp
label plp
linux plpbt.bin
append "hiddenusb usb1=1"


To do it

I execute
./plpcfgbt hiddenusb plpbt.bin
and the result is data changed

Then I execute ./create-iso.sh and the result is
Warning: creating filesystem that does not conform to ISO-9660.
I: -input-charset not specified, using utf-8 (detected in locale settings)
Size of boot image is 4 sectors -> No emulation
Total translation table size: 2048
Total rockridge attributes bytes: 751
Total directory bytes: 0
Path table size(bytes): 10
Max brk space used 0
269 extents written (0 MB)


plpbtmycd.iso created.


The I look the isolinux.cfg in plpbtmycd.iso file and it is
default plp
label plp
linux plpbt.bin


Do you know how I do wrong?

Regards.

vesalocal

I think you did nothing wrong!

Did you try to boot from your generated plpbtmycd.iso file?  It should work.

Your configured plpbt.bin contains the setting "hiddenusb".
The isolinux.cfg is a directive for isolinux, which loads just your plpbt.bin. No need to change isolinux.cfg.

Best wishes

julio

Quote from: vesalocal on July 08, 2013, 20:22:53 PM
I think you did nothing wrong!

Did you try to boot from your generated plpbtmycd.iso file?  It should work.

Your configured plpbt.bin contains the setting "hiddenusb".
The isolinux.cfg is a directive for isolinux, which loads just your plpbt.bin. No need to change isolinux.cfg.

Best wishes
I do not want to burn a CD because I thought the isolinux.cfg must be changed. I burn a CD and it is Ok.

Thanks for your help. it is works well. :)

Elmar

hello,

just for your info.

plpcfgbt modifies the standalone program plpbt.bin and not isolinux.cfg

plpbt.bin is able to receive commands from isolinux via isolinux.cfg, so in your case, there are two different ways to solve your problem.

either modify plpbt.bin or change the isolinux.cfg to send parameters to plpbt.bin.

you changed plpbt.bin and you have seen thats enough for your needs.
changing isolinux.cfg without modifying plpbt.bin would also work. btw. you need only a simple text editor to change  the isolinux.cfg


a last hint, when you dont want to take the risk of a not working burned cd, then use a virtual machine to test the iso. a smart, free and easy virtual machine program is qemu.

best regards
elmar

ps: greets to vesalocal

julio

Hi all, thanks for your help. Now my machine loads my usb distro with my personal cd.

My first idea was changed the isolinux.cfg and put usb disk by default.
I do not know how I can modifiy this file because when I mounted the iso file the system say that is "only read".

mount plpbt.iso /tmp/mnt/ -t iso9660 -o loop=/dev/loop0
or similar.

I think that it is not possible modify the iso with this system, however it is possible create a personal CD with the other system.

Thanks again.