[opensuse] Still trying to make a bootable insall CD.
Hi all. I'm re-posting this since I'm still spinning my wheels trying to get it to work. I'm trying to build a custom install CD, but I just can't get the resulting disk to boot. I want to be able to put a disk in a system, boot the system and come back to a fully configured machine. This is what I'm doing: I'm using k3b to build an image file from the original install media. Then I'm using kiso to make the changes to the files that I need to make. After saving the new .iso file, I burn with it with k3b. The resulting CD won't boot. Now, when I burn the iso image without making any changes, that CD will boot. But as soon as I make a change, to control.xml for example, the resulting CD won't boot. Any ideas? TIA, Mike. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 17 Apr 2007, Mike Diehl
Hi all.
I'm re-posting this since I'm still spinning my wheels trying to get it to work.
I'm trying to build a custom install CD, but I just can't get the resulting disk to boot. I want to be able to put a disk in a system, boot the system and come back to a fully configured machine.
Does it have to be a CD, or would you be able to work with a DVD instead? A DVD would be much more in keeping with the "insert disc, walk away, come back to fully working system" desire so, if you can use a DVD, check out makeSUSEdvd. <Snip>
After saving the new .iso file, I burn with it with k3b.
The resulting CD won't boot.
My guess would be that kiso doesn't know how to recreate the necessary bits to make the resultant image bootable.
Now, when I burn the iso image without making any changes, that CD will boot. But as soon as I make a change, to control.xml for example, the resulting CD won't boot.
It certainly looks like kiso can't recreate a bootable image.
Any ideas?
Extract the contents of the CD to a directory on your hard drive, make the changes required, then create a bootable CD using the directory as a source. All this can be done with makeSUSEdvd. You might find this useful: URL:http://en.opensuse.org/Making_a_DVD_from_CDs and possibly this: URL:http://en.opensuse.org/Making_a_SUSE_based_distribution Regards, David Bolt -- Member of Team Acorn checking nodes at 50 Mnodes/s: http://www.distributed.net/ RISCOS 3.11 | SUSE 10.0 32bit | SUSE 10.1 32bit | openSUSE 10.2 32bit RISCOS 3.6 | SUSE 10.0 64bit | SUSE 10.1 64bit | openSUSE 10.2 64bit TOS 4.02 | SUSE 9.3 32bit | | openSUSE 10.3a2 32bit -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 17 April 2007 13:08, David Bolt wrote:
On Tue, 17 Apr 2007, Mike Diehl
wrote:- I'm trying to build a custom install CD, but I just can't get the resulting disk to boot. I want to be able to put a disk in a system, boot the system and come back to a fully configured machine.
Does it have to be a CD, or would you be able to work with a DVD instead? A DVD would be much more in keeping with the "insert disc, walk away, come back to fully working system" desire so, if you can use a DVD, check out makeSUSEdvd.
No, eventually, it WILL be a DVD. But if I can't get a CD to work, there's no point in burning a DVD, just yet.
My guess would be that kiso doesn't know how to recreate the necessary bits to make the resultant image bootable.
I agree. So, I've fallen back to cdrecord. Since I'm mastering this disk on a non-SUSE machine, I don't have makeSUSEdvd and downloading it led to some dependancy issues..... So, I extracted the "guts" of the script and continued on. So, here is the script I'm using....: =========================================== export BOOT_IMAGE=/home/mdiehl/newstart/raw/boot/loader mkisofs -v -V "SNL INSTALLER" -r -J -l -L -b "$BOOT_IMAGE/isolinux.bin" -c $BOOT_IMAGE/boot.cat \ -no-emul-boot -boot-load-size 4 -boot-info-table -graft-points -iso-level 4 -pad -allow-leading-dots -o b.iso ./raw =========================================== I've extracted the original CD into ./raw and I'm expecting to build a file called b.iso. (this is plan B, right?) When I run this script I get: =========================================== Warning: creating filesystem that does not conform to ISO-9660. Warning: Creating ISO-9660:1999 (version 2) filesystem. Warning: ISO-9660 filenames longer than 31 may cause buffer overflows in the OS. genisoimage 1.1.2 (Linux) Scanning ./raw Scanning ./raw/SLES-LICENSE Scanning ./raw/SLES-LICENSE/it Scanning ./raw/SLES-LICENSE/nl ... snip ... Scanning ./raw/yast/core9/suse Scanning ./raw/yast/core9/suse/setup Scanning ./raw/yast/core9/suse/setup/descr genisoimage: Uh oh, I cant find the boot catalog directory './raw/boot/loader'! =========================================== So it's complaining that it can't find the ./raw/boot/loader directory! But *I* can: workstation newstart # ls -la ./raw/boot/loader/ total 7056 dr-xr-xr-x 2 root root 4096 Jul 2 2004 . dr-xr-xr-x 3 root root 4096 Jul 2 2004 .. -r--r--r-- 1 root root 33043 Jul 2 2004 06400480.spl -r--r--r-- 1 root root 46989 Jul 2 2004 08000600.spl -r--r--r-- 1 root root 63015 Jul 2 2004 10240768.spl -r--r--r-- 1 root root 69943 Jul 2 2004 12801024.spl -r--r--r-- 1 root root 99571 Jul 2 2004 14001050.spl -r--r--r-- 1 root root 120205 Jul 2 2004 16001200.spl -r--r--r-- 1 root root 230400 Jul 2 2004 bootlogo -r--r--r-- 1 root root 4885034 Jul 2 2004 initrd -r--r--r-- 1 root root 15340 Jul 2 2004 isolinux.bin -r--r--r-- 1 root root 824 Jul 2 2004 isolinux.cfg -r--r--r-- 1 root root 1503455 Jul 2 2004 linux -r--r--r-- 1 root root 71744 Jul 2 2004 memtest -r--r--r-- 1 root root 510 Jul 2 2004 message So what am I doing wrong? Also, the command line above refers to a boot.cat file, but I've not been able to find one and don't know how to produce it. I've studied the makeSUSEdvd script and can't see how it creates this file, either. HELP! <grin> Mike. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 17 Apr 2007, Mike Diehl
I agree. So, I've fallen back to cdrecord. Since I'm mastering this disk on a non-SUSE machine, I don't have makeSUSEdvd and downloading it led to some dependancy issues.....
From the spec file for the RPM, the only dependency is the requirement that mkisofs be installed[0]. What dependency problems did you have?
<Snip>
export BOOT_IMAGE=/home/mdiehl/newstart/raw/boot/loader
mkisofs -v -V "SNL INSTALLER" -r -J -l -L -b "$BOOT_IMAGE/isolinux.bin" -c $BOOT_IMAGE/boot.cat \ -no-emul-boot -boot-load-size 4 -boot-info-table -graft-points -iso- level 4 -pad -allow-leading-dots -o b.iso ./raw ===========================================
<Snip>
So what am I doing wrong?
Well, apart from specifying an absolute path in $BOOT_IMAGE, not a lot.
Also, the command line above refers to a boot.cat file, but I've not been able to find one and don't know how to produce it. I've studied the makeSUSEdvd script and can't see how it creates this file, either.
It doesn't create one. It's actually created by mkisofs and makes the CD or DVD bootable.
HELP! <grin>
Okay. My suggestion is to copy the bit from makeSUSEdvd that actually does the image creation, namely these lines: pushd /home/mdiehl/newstart/raw/ BOOT_IMAGE=$(find . -name isolinux.bin) BOOT_IMAGE=$(dirname "${BOOT_IMAGE:2}") mkisofs -v -V "SLES.001" -r -J -l -L -publisher "mdiehl" \ -b "${BOOT_IMAGE}/isolinux.bin" -c "${BOOT_IMAGE}/boot.cat" \ -no-emul-boot -boot-load-size 4 -boot-info-table -graft-points \ -iso-level 4 -pad -allow-leading-dots -o "../b.iso" . popd These will change the $PWD and then locate the file isolinux.bin. From this it will create the correct path for isolinux.bin and boot.cat. Then it will call mkisofs to actually create the ISO image, which will end up as /home/mdiehl/newstart/b.iso Try that and let me know if it works or, if it fails, what the error message is. [0] Must add a few other dependencies that are actually needed but aren't listed in the spec file. Regards, David Bolt -- Member of Team Acorn checking nodes at 50 Mnodes/s: http://www.distributed.net/ RISCOS 3.11 | SUSE 10.0 32bit | SUSE 10.1 32bit | openSUSE 10.2 32bit RISCOS 3.6 | SUSE 10.0 64bit | SUSE 10.1 64bit | openSUSE 10.2 64bit TOS 4.02 | SUSE 9.3 32bit | | openSUSE 10.3a2 32bit -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Thursday 19 April 2007 16:35, David Bolt wrote:
On Tue, 17 Apr 2007, Mike Diehl
wrote:- I agree. So, I've fallen back to cdrecord. Since I'm mastering this disk on a non-SUSE machine, I don't have makeSUSEdvd and downloading it led to some dependancy issues.....
From the spec file for the RPM, the only dependency is the requirement that mkisofs be installed[0]. What dependency problems did you have?
When I run the script, I get: ================================== Starting makeSUSEdvd version 0.35 /tmp/CD_DIR already exists. Using /tmp/CD_DIR.12920 instead You seem to not have create_package_descr installed. You can install the current version with the command : rpm -Uvh autoyast2-utils-2.13.56-3.noarch.rpm after getting it from https://sourceforge.net/projects/makesusedvd. Would you like to install" automagically with RPM? [n/Y] : ================================== Not particularly interested in finding out what autoyast will do to my Gentoo workstation..... <grin> Anyway, this begs the question as to why the command below doesn't work. When I run it, I get: genisoimage: Uh oh, I cant find the boot catalog directory './raw/boot/loader'! Of course, the directory does exist and gnisoimage even scans it! I'm really getting desparate here! Any help would be appreciated. Mike
<Snip>
export BOOT_IMAGE=/home/mdiehl/newstart/raw/boot/loader
mkisofs -v -V "SNL INSTALLER" -r -J -l -L -b "$BOOT_IMAGE/isolinux.bin" -c $BOOT_IMAGE/boot.cat \ -no-emul-boot -boot-load-size 4 -boot-info-table -graft-points -iso- level 4 -pad -allow-leading-dots -o b.iso ./raw ===========================================
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, 23 Apr 2007, Mike Diehl
On Thursday 19 April 2007 16:35, David Bolt wrote:
From the spec file for the RPM, the only dependency is the requirement that mkisofs be installed[0]. What dependency problems did you have?
When I run the script, I get: ================================== Starting makeSUSEdvd version 0.35 /tmp/CD_DIR already exists. Using /tmp/CD_DIR.12920 instead
That's because you have an aborted build and /tmp/CD_DIR is left behind. There's no harm in removing it unless you used makeSUSEdvd with the "-i" option, and plan to use the "-C" option later.
You seem to not have create_package_descr installed. You can install the current version with the command : rpm -Uvh autoyast2-utils-2.13.56-3.noarch.rpm after getting it from https://sourceforge.net/projects/makesusedvd. Would you like to install" automagically with RPM? [n/Y] : ==================================
Not particularly interested in finding out what autoyast will do to my Gentoo workstation..... <grin>
No need to download autoyast2, just the create_package_descr.gz file. As long as you extract it into a directory in your $PATH it should be fine. I'll say should, I'm not presently running any non-SUSE systems[0] so can't say for certain.
Anyway, this begs the question as to why the command below doesn't work.
When I run it, I get: genisoimage: Uh oh, I cant find the boot catalog directory './raw/boot/loader'!
I don't have genisoimage installed, so have no idea why it's coming up with that error.
Of course, the directory does exist and gnisoimage even scans it! I'm really getting desparate here!
Have you tried using mkisofs itself to do the job? While limited to only (open)SUSE systems[0], the commands I gave work on all those I've tested it on, so should (there's that word again!) work on non-SUSE systems. [0] Not counting a WinXP system. I might actually try it out using Cygwin, purely as a matter of curiosity. Regards, David Bolt -- Member of Team Acorn checking nodes at 50 Mnodes/s: http://www.distributed.net/ RISCOS 3.11 | SUSE 10.0 32bit | SUSE 10.1 32bit | openSUSE 10.2 32bit RISCOS 3.6 | SUSE 10.0 64bit | SUSE 10.1 64bit | openSUSE 10.2 64bit TOS 4.02 | SUSE 9.3 32bit | | openSUSE 10.3a2 32bit -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tuesday 24 April 2007 17:51, David Bolt wrote:
On Mon, 23 Apr 2007, Mike Diehl
wrote:- Anyway, this begs the question as to why the command below doesn't work.
When I run it, I get: genisoimage: Uh oh, I cant find the boot catalog directory './raw/boot/loader'!
I don't have genisoimage installed, so have no idea why it's coming up with that error.
Of course, the directory does exist and gnisoimage even scans it! I'm really getting desparate here!
I finally got this working. The file was exactly where I said it was. The problem was that genisoimage was looking for it relative to the CD's root, not the current directory. GRrrrrrrrrr. Thanx for the help, though. Mike Diehl. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (2)
-
David Bolt
-
Mike Diehl