We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
Add files to bootable Linux CD ISO image...?
Options

esuhl
Posts: 9,409 Forumite


in Techie Stuff
I have a live CD .ISO image file for an old unsupported Linux OS, which I've tested (by booting it from a burnt CD). But now I want to add new files to the .ISO.
Also, it would be rather handy to boot from USB or hard drive, rather than CD.
I tried using Rufus, which supposedly "burns" CD ISO images to USB, but my USB stick wasn't recognised as bootable even before I'd tried adding new files. (And my PC boots other USB sticks.)
Can anyone suggest anything I could try...? (In either Windows or Linux).
Also, it would be rather handy to boot from USB or hard drive, rather than CD.
I tried using Rufus, which supposedly "burns" CD ISO images to USB, but my USB stick wasn't recognised as bootable even before I'd tried adding new files. (And my PC boots other USB sticks.)
Can anyone suggest anything I could try...? (In either Windows or Linux).

0
Comments
-
The boot file or partition needs to ne written. Sticking an ISO file onto a USB stick does not make it bootable. You need to select the boot OS.
With windows there is a hidden boot.img file that makes the media bootable.
Extract the ISO and copy the boot file/sector and then add your files and write it back. Sounds like you missed the boot file.Censorship Reigns Supreme in Troll City...0 -
try unetbootin on linux and examine this stick with gparted?4.8kWp 12x400W Longhi 9.6 kWh battery Giv-hy 5.0 Inverter, WSW facing Essex . Aint no sunshine ☀️ Octopus gas fixed dec 24 @ 5.74 tracker again+ Octopus Intelligent Flux leccy0
-
If you use VMware or VirtualBox you could create a Linux instance which will run in a box on any machine you like and which you could copy (no licence issues with Linux).
I do this often and it's also handy if you've got software which only runs on an older version (I've got a Windows XP one to run a couple of legacy devices).0 -
With a "Live CD/USB" you can't change anything in the image.
Their is something called "Persistence storage" file which you can use to store changes to a "Live" image when you boot using a USB stick.
https://askubuntu.com/questions/841843/what-program-to-use-when-you-want-to-create-a-persistent-storage-live-usb-in-ubu
http://live.learnfree.eu/en/download/Laters
Sol
"Have you found the secrets of the universe? Asked Zebade "I'm sure I left them here somewhere"0 -
Perhaps a stupid question, but since you say you want to be able to boot from hard disk, why not just install the CD to hard disk, *then* add the files ? (Live CDs usually include an option to install to hard disk.)
Multisession CDs let you append new files to a CD - I do my backups that way - but you can only do that if the original session wasn't "closed" (Sorry, not sure of the technical details.) growisofs -M ... on linux. But that may not let you put the new files into the correct place on the mounted filesystem.
Not quite sure of the architecture of live images - probably more than one way to do it - but one old live CD I have for gparted here has a container file which is a squashfs filesystem image, which is a compressed read-only file system. You could presuably unpack it, add your files, then recreate it, and then burn a new iso image with the modified filesystem.0 -
Depending on what you're trying to achieve, another option might be to use an overlay filesystem to supplement what's mounted on the live cd from different media (or possuibly even another container filesystem added to the cd image to keep it self-contained).0
-
In the past I used an application called (from memory) Remastersys to do this.
I had a normal live USB then downloaded the various apps I wanted, deleted ones I didn't then used Remastersys to create a new bootable USB of my custom setup.
It was reasonably straightforward. However this was several years ago so I have no idea if it is still current.0 -
0
-
I would copy that iso locally, first I would try 7zip, but doubt it would work.
In the past, about 2 decades ago think I used poweriso, but it could have been ultraiso, or magiciso. PowerIso was a name I remember and know i rarely used it... so taking a stab
Also had difficulty with Linux on Rufus. I used what debitcardmayhem suggested.0 -
forgotmyname wrote: »Extract the ISO and copy the boot file/sector and then add your files and write it back. Sounds like you missed the boot file.
How do I copy the boot file/sector...?
I haven't messed around with CDs for ages, but I vaguely remember having making bootable CDs in Nero (an old XP-only version), and having to choose an option to write the ISOLINUX (?) file to the MBR(?) to make the CD bootable...? Something about El Torito compatibility...? I had a google, but it's not coming back to me.psychic_teabag wrote: »Multisession CDs let you append new files to a CD
I don't think it's possible to use multisession mode when burning an ISO.
---
Thanks, everyone, for all your suggestions. Maybe it would help to explain a bit more:
The CD image is for the latest release of KnoppiXMAME v.1.3b19, released in 2004. There's not much documentation or support available. But it looks like a perfect way to turn an old PC into a games machine. However, it doesn't support installation onto hard drive or USB. The author says:I still don't really plan on offering a HD install option because i break a lot of debian stuff to make the file size small so upgrading a system would not be trivial once it's installed.
There's a boot option to create a new ISO image with new files, but neither the hard drive nor USB stick are mounted, and there are no programs (not even a terminal emulator!!!) to mount anything. It boots a single application and prompts to reboot if you close it.
I've tried putting the ROM files onto my hard drive in a "rom" directory, or in "knoppixmame/home" (as suggested in the link), but the OS just doesn't see any other drives.
So... it would be really cool if I could figure out a way to rebuild the bootable ISO.
---
At the moment, I have a PC running RetroArch in Arch Linux. It works perfectly, but... I hate the GUI.
Also I have a friend with a broken games cabinet. Inside it is an old 233MHz PIII PC. I've no idea what OS it was running, but it booted up to a menu of thumbnail images of games that you could select with a joystick. That's the kind of thing I want!
And if I could fix his machine by installing something that could be controlled with a joystick and fire buttons, and just switched on/off, that would be great.
At the moment, KnoppiXMAME looks like it might do that... if I can add my own ROMs, boot from USB/HDD, downgrade the MAME version for the old hardware, etc... Maybe... :-/0
This discussion has been closed.
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 351.1K Banking & Borrowing
- 253.1K Reduce Debt & Boost Income
- 453.6K Spending & Discounts
- 244.1K Work, Benefits & Business
- 599K Mortgages, Homes & Bills
- 177K Life & Family
- 257.4K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards