PDA

View Full Version : Remastering - The easy way



Fabianx
08-09-2004, 12:01 PM
Hi guys,

greetings from UKUUG, which did end yesterday.

I have been quite busy and you can see the result here:

http://www.ukuug.org/events/linux2004/knoppix.shtml

Update:

To use this script do:



wget http://debian.tu-bs.de/knoppix/remaster/remaster-0.1-4.tar.gz
tar xzf remaster-0.1-4.tar.gz
cd remaster-0.1
sudo ./knoppix-remaster /mnt/hda7/remaster


(For /mnt/hda7/remaster you can provide any path, where your remaster lies or should lie; you can even leave it blank and select the path with the file-selector)

The program then guides you through the process of remastering:

First it checks the available memory size and if there is not enough, it'll ask if you want to create a swapfile or exit.

Next it'll ask if you want to do a new remaster or choose an old one.

If you do a new remaster, all files are copied with a nice progress bar.

(You always can later find the ISO in $REMASTER_CHOOSE_DIR/KNOPPIX.build/Knoppix.Master/KNOPPIX-CUSTOM.iso.)

Then you are in the main menu:

- Choose chroot to work in the your remaster as normal.
- Choose Create Compressed FS do make te Compressed Filesystem (you do not need to bother about manual cleanup, Klaus' scripts do that and much more automatically)
- Choose Create ISO

Finished.

You can also find a menu item to edit options, quit the program or load a sort file.

A sample sort file is provided in $REMASTER_CHOICE/KNOPPIX.build/mkisofs.sort.sample.

All Questions answered, aay?

cu

Fabian

aay
08-10-2004, 04:25 AM
Fabian,

You are the man! I truly thank you for being one of Knoppix's best contributors. I also extend thanks to Ian Naylor for his remastering scripts. I look forward to trying this stuff out. Of course you know there may be one negative result from all this: expect a lot more Knoppix spin offs to be hitting ftp mirrors in the future :-)

Adam

aay
08-10-2004, 04:45 AM
BTW, is there any documentation on this script? I guess I should just download it and have a look at it. I'd love to hear more about what is planed for this.

Fabianx
08-10-2004, 03:26 PM
BTW, is there any documentation on this script? I guess I should just download it and have a look at it. I'd love to hear more about what is planed for this.

I've answered your question above.

cu

Fabian

Vick
08-10-2004, 05:47 PM
will this remaster script work with knoppix 3.2, 3.1 with the knoppix kernel-2.4.22-xfs?
thanks for your reply.

ps:if not what can i do to make it work with knoppix-3.2 with kernel-2.4-22-xfs?

Fabianx
08-10-2004, 06:07 PM
will this remaster script work with knoppix 3.2, 3.1 with the knoppix kernel-2.4.22-xfs?
thanks for your reply.

ps:if not what can i do to make it work with knoppix-3.2 with kernel-2.4-22-xfs?

It will not out of the box.

You would need to replace the mkisofs Code with the old code from Knoppix.mkcompressed.

Why do you need it to work with so old versions?

cu

Fabian

aay
08-10-2004, 10:26 PM
BTW, is there any documentation on this script? I guess I should just download it and have a look at it. I'd love to hear more about what is planed for this.

I've answered your question above.

cu

Fabian

Thanks. I look forward to playing with it. When I am able.

Adam

Vick
08-10-2004, 11:27 PM
hi!
thanks for you fast reply,
knoppix 3.2 kernel-2.4.22-xfs is what i'm using its realy stable like rock. And me and my wife aer adicted to it, it works at home and at work with or pcs, that why!

can you help?

thanks

Fabianx
08-11-2004, 11:55 AM
hi!
thanks for you fast reply,
knoppix 3.2 kernel-2.4.22-xfs is what i'm using its realy stable like rock. And me and my wife aer adicted to it, it works at home and at work with or pcs, that why!

can you help?

thanks

Yes, but I have to find that old scripts first.

cu

Fabian

PS: I'll do it as soon as I'm home, as I'm currently still in the UK, London.

ottod
08-11-2004, 08:17 PM
As Fabian asked Vick, why so old versions? Well, I'm amazed for what the progress of Knoppix has been, but I primarily use a Toshiba laptop, which as many postings in this site confirm, many of them stopped working with Knoppix after 2003-06-06. That was the last fine working version for my machine. In all that have followed, the hard disk cannot be mounted, even if fdisk reports the partitions without problem. The computer works ok with Debian and Mandrake, but THEY ARE NOT KNOPPIX :). So, when I want to have fun with newer Knoppixes I sadly have to use another machine.
So I am also waiting eagerly for you to return home and hand us those "old" scripts for those such "old" Knoppixes.
BTW: wouldn't you have an idea what this problem of mounting the hard disk might be? What changed so deeply between 2003-06-06 and the following versions? Kudzu HW detection?
I have resorted to customizing my 06-06 with whatever I like of what is added to newer Knoppix, but I feel I might be missing some (or much) of the fun in newer versions!
Thx. :roll:

kbreen
08-12-2004, 05:11 PM
Does anyone know if the details of these new mastering scripts are covered in the new Oreilly Knoppix book?

pau1knopp
08-12-2004, 05:53 PM
My guess is that they are not in the book, although FabianX was a contributing author. The book is not due out till October.

This utility isn't really a script, per se' , it is a graphical interface that performs the steps for remastering (creating a master / source directory, copying the files to them for remastering, chrooting into the development environment). I just finished my last remaster a day before this utility came out, but it appears that it makes remastering much closer to a "no-brainer".

greenfly
08-12-2004, 06:37 PM
Does anyone know if the details of these new mastering scripts are covered in the new Oreilly Knoppix book?

These scripts are not covered, however "Klaus's scripts" the set of scripts that Klaus uses to remaster Knoppix are included, along with the standard step-by-step command-by-command method.

Klaus's scripts make it pretty simple as well, there just isn't a GUI you can click :)

brainphreak
08-12-2004, 10:55 PM
Hi, Sorry if this is a dumb question. I tried using this customize script and keep getting an error that there is not enough space on the device? Do I need to be running the knoppix distro from the CD? I currently have it installed on my HD.

I tried running with the CD installed etc. (but not booted)


What are the requirements to run the script? I have over 8 gigs of space so Im sure this error is incorrect and due to something I may have missed?


I just run the script with no argument and made a folder called "remastered" on my root directory..

/remastered


I then tell the customizing script this path and it says its not big enough... not enough space.

thats as far as I get. Any ideas anyone?

Thanks alot

**Don White**

Fabianx
08-13-2004, 01:47 PM
Hi, Sorry if this is a dumb question. I tried using this customize script and keep getting an error that there is not enough space on the device? Do I need to be running the knoppix distro from the CD? I currently have it installed on my HD.


I tried running with the CD installed etc. (but not booted)


What are the requirements to run the script? I have over 8 gigs of space so Im sure this error is incorrect and due to something I may have missed?
[...]


Yes, you need to run it directly from the CD, as for creating the chroot it wants to access /KNOPPIX/, once created you should be able to run the script also from Harddisk.

I'll add that to the initial post.

cu

Fabian

Vick
08-16-2004, 11:08 PM
hi!
thanks for you fast reply,
knoppix 3.2 kernel-2.4.22-xfs is what i'm using its realy stable like rock. And me and my wife aer adicted to it, it works at home and at work with or pcs, that why!

can you help?

thanks

Yes, but I have to find that old scripts first.

cu

Fabian

PS: I'll do it as soon as I'm home, as I'm currently still in the UK, London.

thank you Fabian for you support! I will wait patiently for your return

locutus
08-19-2004, 09:01 PM
I'm new to remastering Knoppix and this "Easy Way" script seems to have worked pretty nicely. One thing though, it doesn't generate an ISO of the same size as the original( I didn't do the update ).

Is there some different compressor that used for the released CD or is there some other reason for the size differences?

BTW, it's REALLY nice being able to install with "fromhd=" option for remastering and CD burning on the same machine.

redss
08-19-2004, 11:56 PM
The prerequisites are not clear as to whats needed to run the script. As in min size hard disk space, ram, and swap size. I have a 6 gig drive to work with..

Do I understand correctly that all I need is my HD to be partitioned with maybe 800 Mb swap (I have 300 Mb RAM) and the rest (5.2 Gb) empty, and I can boot off the CD and run the script? And then once I chroot, I will be able to apt-get to remove and install packages, and use dpkg to install .DEB packages etc?

locutus
08-20-2004, 12:55 AM
The prerequisites are not clear as to whats needed to run the script. As in min size hard disk space, ram, and swap size. I have a 6 gig drive to work with..

Do I understand correctly that all I need is my HD to be partitioned with maybe 800 Mb swap (I have 300 Mb RAM) and the rest (5.2 Gb) empty, and I can boot off the CD and run the script? And then once I chroot, I will be able to apt-get to remove and install packages, and use dpkg to install .DEB packages etc?

first, it seems to want a total of 1GB of working memory( RAM + SWAP ). I have 512MB of RAM and created a 500MB swap file to handle this requirement.

second, the 700MB KNOPPIX CD is compressed and the script uncompresses/installs this to the HD. This decompresses to almost 2GB. Add to that the fact that you'll need space for the NEW rebuilt/compressed image AND that you'll probably want to run KNOPPIX "fromhd" and it would be best to have around 5GB of harddisk space.

third, the script has an update option for apt-getting to update the build but also has the chroot option which you should be able to manually "tune" the build image too( I've not tried this yet ).

My brief experience with this script is that it does work( builds a working KNOPPIX ISO ) but as I mentioned earlier, the new build is larger than the original for some reason. The author mentioned that you have to boot from the CD to run the script and since that would prevent you from also using the CD drive for burning the image, using the "tohd" and then "fromhd" cheat-code makes this all work pretty nicely. YMMV.

redss
08-20-2004, 03:41 AM
Will the script allow you to "apt-get remove" packages? If so I'd expect that to reduce the image size accordingly...

mwgrenier
08-20-2004, 04:51 AM
In remaster_create(), it seems to assume that we are running KNOPPIX from the CD on the machine that we are using for remastering.

Note the line:
cp -a /KNOPPIX/* $REMASTER_CHOICE/

It would be good if we could specify the location or device that hold the original master image, e.g. /dev/cdrom.

I'm currently running from a hard disk installed Knoppix (Thanks Fabian for that script as well)

Let me know if I'm missing something.

locutus
08-20-2004, 05:15 PM
In remaster_create(), it seems to assume that we are running KNOPPIX from the CD on the machine that we are using for remastering.

Note the line:
cp -a /KNOPPIX/* $REMASTER_CHOICE/

It would be good if we could specify the location or device that hold the original master image, e.g. /dev/cdrom.

I'm currently running from a hard disk installed Knoppix (Thanks Fabian for that script as well)

Let me know if I'm missing something.

It's listed in this thread that you currently must remaster from the CD but you can also run with the "fromhd=" cheatcode to allow for quicker operation and free up the CDROM drive to write the new images.

BTW, since you have the script, you can change it to meet your needs. ie, just change that line of code to point to your own "KNOPPIX" data image. :-)

heldersepu
08-21-2004, 10:20 AM
Hi guys,
greetings from UKUUG, which did end yesterday.
I have been quite busy and you can see the result here:
http://www.ukuug.org/events/linux2004/knoppix.shtml
Fabian
Hello Hello

First of all THANK YOU Fabian for the remastering script.
I'm getting an error when I run the script,
after it copies all the files to the partition (hdb1)
I select the option #1 to chroot, the script ends and I receive this...

mount: fs type sysfs not supported by kernel

the first time it happened I thought it might be the Ext3 format
I reformat the partition to Ext2, but nothing, it breaks in the same point
I've tried it several times, always same error
no idea what's going on,

My PC is P4 1.70 Ghz, 786 MB of RAM
2 hard drives
Master --> 2 NTFS partitions (hda1, hda2)
Slave --> 1 Ext3(6Gb) 1 Swap(1Gb)

In the process I took some snapshots if U want I can send it to U
feel free to Email me at heldersepu@yahoo.com

Thank U in advance
Helder

locutus
08-21-2004, 09:51 PM
Hi guys,
greetings from UKUUG, which did end yesterday.
I have been quite busy and you can see the result here:
http://www.ukuug.org/events/linux2004/knoppix.shtml
Fabian
Hello Hello

First of all THANK YOU Fabian for the remastering script.
I'm getting an error when I run the script,
after it copies all the files to the partition (hdb1)
I select the option #1 to chroot, the script ends and I receive this...

mount: fs type sysfs not supported by kernel

the first time it happened I thought it might be the Ext3 format
I reformat the partition to Ext2, but nothing, it breaks in the same point
I've tried it several times, always same error
no idea what's going on,

My PC is P4 1.70 Ghz, 786 MB of RAM
2 hard drives
Master --> 2 NTFS partitions (hda1, hda2)
Slave --> 1 Ext3(6Gb) 1 Swap(1Gb)

In the process I took some snapshots if U want I can send it to U
feel free to Email me at heldersepu@yahoo.com

Thank U in advance
Helder

I get the same "mount" error but it looks like it still works. Looking at the script, it must be complaining when it mounts /sys since it's the sysfs error getting reported. I'm running apt-get update now so I can't check to see if /sys is or isn't mounted.

locutus
08-21-2004, 09:54 PM
I'm still wondering what the reason is for a different size iso image when this script is run to create a duplicate/no-change system.

If this question has been answered before, just say so and I'll go back to looking for it. Thanks.

locutus
08-22-2004, 06:33 PM
I'm not sure if anybody is following this but I mentioned earlier that one could use the "tohd=" and "fromhd=" cheatcodes to enable booting from the CD for remastering with this script but also to then free up the CD drive for burning a master. One thing I left out was that you'll need to copy the rest of the CD's root contents( and boot directory ) to the root partition of where you're using "fromhd=" for. This is because the script goes out and gets the rest of the CD for the boot images and the rest of the remastered CD stuff.

As a side note:
My remastered image ends up being 714MB while the initial Knoppix v3.4 CD image is 689MB with the default compression. I'll see what the change in the config file( option 5? ) does when optimized compression is enabled.

It looks like this script is going to be a great place to start for many remasterers.
Good work and thanks to the author.

redss
08-23-2004, 05:33 PM
locutus: I for one am following this thread, as I am in the midst of trying it myself.

Correct me if I'm wrong, but I believe for "fromhd=" the only additional thing that needs to be copied from the CD is the boot directory. Especially if you change konquerors startup page by modifying /etc/X11/Xsession.d/45xsession.

Since chrooting allows you to apt-get and dpkg etc, I wonder what the advantages are of booting into the image with "fromhd="? It would be useful to verify that the new installation works, but I'd be paranoid of leaving extra temporary files behind.

I'm also curious if the final image size needs to be <700 Mb because ultimately I will transfer the image to a 1 Gb compact flash card with ide adaptor (I'll be following the instructions on this excellent page:
http://staff.washington.edu/gray/KnoppixCFguide.html )

redss
08-24-2004, 04:33 AM
locutus: I'm having a problem booting using the "fromhd=" cheatcode.

my knoppix remaster is in /mnt/hda2/remaster, so what exactly would my fromhd string be? And where exactly would I copy the boot directory from the CD, would it be into /mnt/hda2/boot?

locutus
08-24-2004, 06:10 PM
locutus: I'm having a problem booting using the "fromhd=" cheatcode.

my knoppix remaster is in /mnt/hda2/remaster, so what exactly would my fromhd string be? And where exactly would I copy the boot directory from the CD, would it be into /mnt/hda2/boot?

The fromhd= needs to point to a partition having the /KNOPPIX directory at the root level and it's the whole /KNOPPIX directory from the CD IIRC though it might just need the KNOPPIX compressed image file. I'm not sure you can point it deep into your filesystem to find your remastered xxxx/KNOPPIX directory or not.

You are probably right on needing only the /boot directory since the other stuff is fluff. But then again, I'm initially interested in matching the abilities of the Knoppix creators so I know I'm remastering correctly and I plan on building CD images so I need things to fit.

As I stated earlier, the reason for using fromhd= is so the CDROM "DRIVE" is available for burning to CD. If you are not doing this then obviously you don't need this capability. Isn't it "sweet" how the CF format maps to IDE so easily? Makes for a nice solid state only system. :-)

redss
08-24-2004, 07:36 PM
Here is the source of confusion with tohd:

The 4th line in Fabians directions say "sudo ./knoppix-remaster /mnt/hda7/remaster"

But if you want to boot into it with "tohd=" cheatcode, I believe you'd need to remaster into the root directory of the partition (/mnt/hda7) rather than a subdirectory called "remaster".

My guess is that if you create the remaster in the root directory of a partition then you'd need to create the iso in a DIFFERENT partition, so having a separate partition just for the iso would be advised.

BTW I haven't tried the knoppix on compact flash yet, but per the article above, at least one person got it working. If anyone else has tried this please let me know how it went!

locutus
08-24-2004, 11:59 PM
Here is the source of confusion with tohd:

The 4th line in Fabians directions say "sudo ./knoppix-remaster /mnt/hda7/remaster"

But if you want to boot into it with "tohd=" cheatcode, I believe you'd need to remaster into the root directory of the partition (/mnt/hda7) rather than a subdirectory called "remaster".

My guess is that if you create the remaster in the root directory of a partition then you'd need to create the iso in a DIFFERENT partition, so having a separate partition just for the iso would be advised.

BTW I haven't tried the knoppix on compact flash yet, but per the article above, at least one person got it working. If anyone else has tried this please let me know how it went!

My comments with regard to fromhd= were only for the purpose freeing up the CDROM drive for burning. It appears you are attempting to use fromhd= to test your remaster and it's a good point/target. I may be required that you copy your KNOPPIX directory to the root of SOME partition so fromhd= will work. The compressed filesystem obviously must have been generated too.

Hey, maybe hard linking /KNOPPIX on the same partition to /remaster/Knoppix.build/KNOPPIX.Master/KNOPPIX will work also.

redss
08-25-2004, 06:52 PM
I was able to boot into the compressed filesystem I created by creating a directory called KNOPPIX in /mnt/hda2, and I cd'd to that directory and created a symbolic link this way:


ln -s ../remaster/KNOPPIX.build/Knoppix.Master/KNOPPIX-CUSTOM/KNOPPIX/KNOPPIX KNOPPIX


This works but it only allowed me to boot into my remaster in readonly mode. Only useful for testing, before creating and burning the iso, since no further customizations can be done at that point.

Is there a way to boot into the remaster in readwrite mode running kde? (in other words is it possible to boot into the remaster before creating the compressed fs?)

redss
08-26-2004, 05:32 PM
After we add/remove programs, then can the sample sort file still be used?

Since I don't know how to create a sort file, would one be needed? As there is no documentation on the sort file, its confusing...

veuf
08-30-2004, 09:26 AM
I've already remastered a Knoppix-CD the "hard" way.
The hardest part was to get my customized KDE-Settings like icon-sets, background-images, and all the things you can set to change the look&feel of KDE.

There are many places where these settings are stored ...

Is there an EASY way to give a customized look&feel to KDE and being sure, that after a hdinstall it dosn't get lost?

Thanks for any tips...

Veuf

redss
08-30-2004, 04:38 PM
Just curious, why worry about customizing KDE for the remaster?

I skipped KDE customization during the remaster, since I was able to customize it later and save the settings into knoppix.sh/configs.tbz.

veuf
08-30-2004, 07:58 PM
Why not extend the save-knoppix scripts to save to the cd on an new session on the knoppix-CD.

So even newbies could then habe a customized knoppix-cd without having to know anything.

ProDJ Tech
09-04-2004, 05:02 AM
I've tried all versions of the remastering script (0.1-4, 0.1-5, 0.1-6). In all of them, the scripts crashes when attempting to create the swapfile.

My hard drive is one empty 20GB partition.

The error message I get is:

Fatal error: Could not create swapfile. Exiting....

I am trying to make the swapfile 1048MB in size. (I have tried other sizes, too--800MB, 500MB, etc.) The script actually does create a swapfile of only 1.1+ MB in size.

Does anyone have any ideas as to what is causing this?

System Specifications:
MSI Via KM266 motherboard
Onboard Video
Maxtor 20GB HDD
256MB PC2100 DDR RAM
Knoppix 3.6 CD

I really need to get this project going and have had little luck in the past with the manual remastering instructions.

Thanks,
Dwight Porter

kempston
09-04-2004, 11:48 AM
So is there a way to make this 714Mb iso be 700Mb?
I can strip some software of course, but i'd like to use same compression as original iso does.

kempston
09-04-2004, 11:52 AM
ProDJ Tech
Why don't you just create swap partition with mkswap (or with qtparted)?

ProDJ Tech
09-04-2004, 02:08 PM
ProDJ Tech
Why don't you just create swap partition with mkswap (or with qtparted)?

I thought about that, but I wasn't sure if the script would recognize/ acknowledge the existence of the swapfile. I know the script checks your memory first. If it's under 1GB, then it asks you to create a swapfile. If you answer "no" to creating a swapfile, the script exits.

I may try it just for grins.

redss
09-04-2004, 02:22 PM
Thats the way I did it, created the swap file outside the script so that I didn't have to do that when inside the script. My remaster worked out really well too, since I remastered to a 1 Gb flash card instead of CD, I didn't have to worry about trimming the iso back down to 700 Mb either. Remastering to flash doesnt even require the step to create the iso; only the step to create the compressed FS. And now my system totally flies, since it never has to access CD anymore. BTW I spent < $150 on the flash card and CF-IDE adaptor.

ProDJ Tech
09-04-2004, 05:05 PM
Thank you for the suggestion to create the swapfile before running the script. That worked wonderfully. This script has made remastering a lot easier. Of course, I say that before having produced a final result. :wink:

Let's just say, so far, so good.

bfree
09-04-2004, 05:22 PM
So is there a way to make this 714Mb iso be 700Mb?
I can strip some software of course, but i'd like to use same compression as original iso does.
http://www.knoppix.net/forum/viewtopic.php?t=10804&highlight=create_compressed_fs
Basically use -b with the create_compressed_fs command though it will take a lot longer to create the cloop file.

Anyone know the status of the distributed cloop tool, any chance of it appearing in knoppix/klik/live-installer? It would sure make it easier to use -b for people who can get there hands on extra machines (and it's even an improvement on smp machines)!

ProDJ Tech
09-04-2004, 05:26 PM
Ok, I've run into another little problem here.... Where do you edit the launch bar across the bottom and where do you set the default background image at? I'm having a little difficulty finding this information.

redss
09-04-2004, 06:52 PM
for the background you can modify /usr/local/lib/knoppix.jpg (during bootup) and /KNOPPIX/background.jpg

hurrells
09-06-2004, 02:00 AM
Just curious, why worry about customizing KDE for the remaster?

I skipped KDE customization during the remaster, since I was able to customize it later and save the settings into knoppix.sh/configs.tbz.

How is this done and where are the files?

redss
09-06-2004, 04:04 AM
in the knoppix menu in the quicklaunch tray on the bottom (picture of the penguin), choose configure->save knoppix configuration. It'll save a knoppix.sh into a mounted filesystem you select such as a floppy drive or usb key drive.

darkonc
09-06-2004, 06:40 AM
As Fabian asked Vick, why so old versions? Well, I'm amazed for what the progress of Knoppix has been, ..... but I primarily use a Toshiba laptop, which as many postings in this site confirm, many of them stopped working with Knoppix after 2003-06-06. That was the last fine working version for my machine. In all that have followed, the hard disk cannot be mounted, even if fdisk reports the partitions without problem.
Thx. :roll:

Try booting nodma I had a similar problem with a desktop box. and booting nodma seemed to work fine. dunno why.

locutus
09-08-2004, 12:58 AM
As Fabian asked Vick, why so old versions? Well, I'm amazed for what the progress of Knoppix has been, ..... but I primarily use a Toshiba laptop, which as many postings in this site confirm, many of them stopped working with Knoppix after 2003-06-06. That was the last fine working version for my machine. In all that have followed, the hard disk cannot be mounted, even if fdisk reports the partitions without problem.
Thx. :roll:

Try booting nodma I had a similar problem with a desktop box. and booting nodma seemed to work fine. dunno why.

Good recommendation. DMA was ENABLED by default in one of the more recent version of KNOPPIX( v3.3 something or maybe v3.4 ). I know this because I used to always hack my knoppix.sh script to add hdparm -c1 -d1 /dev/hda( and hdc ) to turn on 32bit interfacing and DMA.

jrp
09-12-2004, 04:03 PM
This looks like a great leap forward.


Where can I get a copy of the BOOTSRC (/KNOPPIX.build/Knoppix.System/Bootdisk/Knoppix3.x files?

I want to add USB driver support to the miniroot so that I can boot from a USB drive as well as adding drivers for the Intel IPW2200 wireless chipset, etc.

bongski55
09-17-2004, 06:48 AM
Tried the script to remaster .Encountered errors are:

1.Could not chroot. Error is "mount: fs type sysfs not supported by kernel ".I saw this error in one post here but did not find any solution posted. I use the partition for "hard" way of remaster(ext3) so why will it not work here?

2. No compressed file generated. Several "read-only" errors generated.

In other words it is definitely NOT the easy way to remaster. I have done the "hard" way of remastering in almost all versions,even other knoppix based distros so I am not new to this.

Anyway,needs alot of work yet.

Just my opinion.

lilsirecho
09-19-2004, 10:06 PM
I wish to remaster a DVD knoppix to reduce the size, which is 2.181MB compressed.

How much space is necessary in my ram and swap to enable the use of your program?

This assumes it will work with a remastered DVD.

Flash00
09-20-2004, 12:41 AM
Why not extend the save-knoppix scripts to save to the cd on an new session on the knoppix-CD.

So even newbies could then habe a customized knoppix-cd without having to know anything.

For newbies to be able customize Knoppix without having to know anything would be the best of all possible worlds, but for "script kiddies." If they were easy to do, live OSs with hidden "features" would proliferate all over the place and destroy Mr. Knopper's wonderful creation.

Rixel
09-20-2004, 05:22 AM
Tried the script to remaster .Encountered errors are:

1.Could not chroot. Error is "mount: fs type sysfs not supported by kernel ".I saw this error in one post here but did not find any solution posted. I use the partition for "hard" way of remaster(ext3) so why will it not work here?

2. No compressed file generated. Several "read-only" errors generated.



Got the same error as well. Frustrating.

jrp
09-20-2004, 08:03 PM
Well. I have tried the Klaus scripts with 3.6 and they seem to work, but my new kernel (2.7.6 or 2.6.8.1) won't boot ("Can't find Knoppix filesystem").

The recipe that I have followed is:

- take a vanilla kernel and configure the compilation with the config-2.6.7 settings as a starting point.

- add various wireless networking patches, including adding Intel ipw2200 drivers

- try to compile up latest cloop from developer.linuxtag.net/knoppix. They won't compile directly: one of the structures has changed; they won't compile using the debian make-kpkg modules-image (no target cloop.o). So can't produce a new compression tool either, but must use the one that comes with Klaus' scripts.

- so try to patch the block device driver in the kernel tree directly (there are a couple of patch links for 2.6.7 and 2.6.8.1 in these forums). Set cloop either as a module or build it into the kernel.

- build the new kernel (make-kpkg kernel_image) and install it (dpkg -i).

- copy the new kernel into the KNOPPUX-CUSTOM boot directory, replacing the existing linux26 or adding a new linux268 entry

- amend minirt26.gz to include the new module/cloop.o (where that was compiled as a module) or just leave alone, where the cloop is built in. (should I be using the .ko version renamed??)

- On booting the new kernel, the disk at hda and the cd-rom at hdc are detected, but get "Can't find Knoppix filesystem, sorry". Trying to boot into 2.4 works OK, however.


Help / suggestions, please.[/img]

szy
09-21-2004, 10:35 PM
...Yes, you need to run it directly from the CD, as for creating the chroot it wants to access /KNOPPIX/, once created you should be able to run the script also from Harddisk.
...
Fabian


Hello all there!

I had the idea to try this knoppix-remaster under a running HD-version of Knoppix - well, I am kinda lazy. I did not want to play with so many cd-s, and I had 5G of free space, wanted to solve this KNOPPIX file thing.

So I did the following (in the HD-started system):



mkdir /KNOPPIX
mount /cdrom ## with the Knoppix-cd
modprobe cloop file=/cdrom/KNOPPIX/KNOPPIX
mount -r -t iso9660 /dev/cloop /KNOPPIX


(the modprobe stuff is from the beginning of the big KNOPPIX file) And there you go! you have the /KNOPPIX filesystem for the knoppix-remaster script.

after done with the copying, you can free the drive like:



umount /KNOPPIX
rmmod cloop
umount /cdrom



This way you can start the remastering from your already installed system. Hmm. I hope I did not forget anything :P

I just started to play with the new 3.7 Knoppix, after downloading, entering the command:


mount ./knoppix_3.7_PC-Welt.iso /cdrom/ -t iso9660 -o loop=/dev/loop1


This way I did not even needed to write out the 3.7 iso to a disk :P

Hope someone finds it useful!

Bests!

gander
10-07-2004, 11:06 AM
I've seen this on one of my older machines. It hangs at ... /etc/fstab while booting.

Problem appears to be that the system enables DMA accelleration for the hard-disks by default, which my disks support but my motherboard doesn't.

Booting with "knoppix nodma" works for me though.

Greg.


As Fabian asked Vick, why so old versions? Well, I'm amazed for what the progress of Knoppix has been, but I primarily use a Toshiba laptop, which as many postings in this site confirm, many of them stopped working with Knoppix after 2003-06-06. That was the last fine working version for my machine. In all that have followed, the hard disk cannot be mounted, even if fdisk reports the partitions without problem. The computer works ok with Debian and Mandrake, but THEY ARE NOT KNOPPIX :). So, when I want to have fun with newer Knoppixes I sadly have to use another machine.
So I am also waiting eagerly for you to return home and hand us those "old" scripts for those such "old" Knoppixes.
BTW: wouldn't you have an idea what this problem of mounting the hard disk might be? What changed so deeply between 2003-06-06 and the following versions? Kudzu HW detection?
I have resorted to customizing my 06-06 with whatever I like of what is added to newer Knoppix, but I feel I might be missing some (or much) of the fun in newer versions!
Thx. :roll:

gmamorim
10-08-2004, 02:56 AM
Well, this will sound like an cat barking but... i really have to ask the comunitty to try...
I read much about remastering the knoppix and other things.. I tried to make a small customizing in my knoppix.... but it failed.. very much :shock: !
No i could suggest to you.... :idea: Why dont u make an Windows( :oops: ) very small software that is capable to choose:
> Distros inside debian.... :!:
> Be bootable or not, like knoppix is!!!
> The packages avaliabes in stable, testing and even in unstable!!!
> Make the package depedencies files automatically
> the conf files setup based on the hardware u have!!!!
> Make the iso files to you!

This might sound really stupid, but i have a very limitted experience in linux, i am used to windows :oops: ....
It would be very useful to change the windows by the freedom that linux based system offers to me.... It would be much easier (wrong spell?) to convince the MS user to migrate to linux.....
I really hope u could do this....
By now, i will just thanks the time all will lose reading this....

cesman
11-05-2004, 12:23 AM
Thanks for the great script Fabian! The only issue I've noted is after cleaning up and making cloop image and iso, if I chroot back in to apt-get something I cannot. How can I resolve this?

Thanks,
cesman

Fabianx
11-24-2004, 07:43 PM
Thanks for the great script Fabian! The only issue I've noted is after cleaning up and making cloop image and iso, if I chroot back in to apt-get something I cannot. How can I resolve this?

Thanks,
cesman

Just do a apt-get update again, then apt-get install works again.

(The cleanup does remove the apt-get files to save space)

cu

Fabian

rrolsbe
01-22-2005, 05:40 PM
First off thanks for the great remastering tool! I am new to the remastering process so the tool is a great aid towards my remaster attempts. I have successfully produced a remaster where all I did was add a couple of additional cheat codes to the remaster; however, the remaster is to large to fit on a 700MB CD-R, had to burn the ISO file to a DVD-RW to test. Here are my questions for you remaster masters.

I think I performed all the required steps using the GUI including selecting cleanup before building the compressed file system. Why is my remaster to large? I have a Gig of memory and would like to run from RAM like the toram cheat code allows; however, I would like to load the compressed file system from a hard drive partition that contains a compressed boot image from a previous tohd boot. IE.. toram from HD instead of toram from CD. Is this possible? Also, since the file system is mounted read-only when the fromhd cheat code is selected, would it be possible to copy the compressed file system on the boot CD to an NTFS partiion using XP and then select the fromhd cheat code and select the NTFS partiion?

Thanks again for the great tool and any answers to the questions above!
Ron

benjy
02-28-2005, 02:13 AM
First of all let me just issue the standard warning - bit of a newbie. Well, with regards to remastering anyway. After reading this and googling around for a lot of information I had a read through the knoppix remastering howto and thankfully a lot of it makes sense - in a very lengthy round about sort of way. What your script promises seems awesome and I am keen to give it a try (unfortunately I only have my girlfriends xp laptop all week coming instead of my BeatrIX pc... oh well).

What I would like to know is information regarding the use of this script and using a different distrobution for the source of the remaster. I for example would like to do a remaster of Luit Linux. How would the method change if I wished to do this? Or is it simply not possible without a total change of the script you've produced?

I hope you're able to answer as i'd like to get some background info before I delve too deeply into this.

Thanks

A. Jorge Garcia
06-08-2005, 01:10 AM
...Yes, you need to run it directly from the CD, as for creating the chroot it wants to access /KNOPPIX/, once created you should be able to run the script also from Harddisk.
...
Fabian



mkdir /KNOPPIX
mount /cdrom ## with the Knoppix-cd
modprobe cloop file=/cdrom/KNOPPIX/KNOPPIX
mount -r -t iso9660 /dev/cloop /KNOPPIX


after done with the copying, you can free the drive like:



umount /KNOPPIX
rmmod cloop
umount /cdrom


This way you can start the remastering from your already installed system. Hmm. I hope I did not forget anything :P

OOO, I think I like the way you think, szy, lazy or no. Do you mean to say that you can customize a hd-installed system the way you want and then make an ISO of that? This would be great!

TIA,
AJG

SNIa
07-06-2006, 07:36 AM
http://www.knoppix.net/wiki/Debootstrap_to_LiveCD

mcreel
07-07-2006, 08:36 AM
That looks interesting. Can you explain what advantages this system has? Why are you doing this?

WallyWallWhackr
05-25-2007, 09:17 AM
:cry: That site is dead. Is there any other resource for that file, or can it be posted here, perhaps? :cry:

WWW

dtzxdtzx1
06-18-2007, 09:35 PM
I have visited debian.tu-bs.de and there is no knoppix directory. Where can I find this script?

Thanks

Frank

hal8000
12-02-2007, 05:03 PM
Does the remsaster script still exist?

orac:/home/anc # wget http://debian.tu-bs.de/knoppix/remaster/remaster-0.1-4.tar.gz
--15:59:00-- http://debian.tu-bs.de/knoppix/remaster/remaster-0.1-4.tar.gz
=> `remaster-0.1-4.tar.gz'
Resolving debian.tu-bs.de... 134.169.172.5
Connecting to debian.tu-bs.de|134.169.172.5|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
15:59:01 ERROR 404: Not Found.


I'm receiving a 404 error. Thanks in advance.

tr
12-03-2007, 05:36 PM
Does the remsaster script still exist?

wget http://debian.tu-bs.de/knoppix/remaster/remaster-0.1-4.tar.gz


Not in that location. I have repacked version of remaster script which works with new programs but only in .deb package:
http://linux.ilmainen.net/suomiknoppix/remaster_0.1-6_i386.deb

-tapsa-

hal8000
12-03-2007, 06:07 PM
Hi, thanks for your reply, Ive just completed things the harder way, using the remaster wiki.
Came across a few problems and fell at the final hurdle in creating the iso image. Howver
I discovered that mkisofs is now a symlink to genisofs and its either a typo or a package fault
but the final command:

mkisofs -pad -l -r -J -v -V "KNOPPIX" -no-emul-boot -boot-load-size 4 \
-boot-info-table -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
-hide-rr-moved -o /mnt/hda1/knx/knoppix.iso /mnt/hda1/knx/master

Results with an error "unknown option1" . The man page of genisofs clearly
states this is an option, so I omitted the -1 and my iso was created.

I will download these scripts as my first iso although working is not perfect.

johnrw
02-16-2008, 06:49 AM
tapsa,
First, thanks for making it easy to get those scripts in your deb.

I gathered that I should be booted from the CD/DVD so I did that and then refused mounting my persistent home when asked. (I usually boot from a bootable knoppix DVD on an 8GB usb thumb drive now that they are cheap.)

After I installed the package... I ran it and picked a directory I had made before running knoppix-remaster as root, on an 20GB ext3 partition. That would be /media/hdb5/remaster. I had told it to create a new remaster there.

I ran knoppix-remaster and I picked the first, then second, and then third options.
The first one made a long copy process. No error was reported there.
/media/hdb5/remaster/KNOPPIX.build/Knoppix.Master/KNOPPIX-CUSTOM/KNOPPIX has the files which are going to be compressed into iso. It seems to have everything I would expect to see in such a target.

But the curious thing is the KNOPPIX file.
301 bytes. The first part of the file is...
#!/bin/sh
#V2.0 Format
modprobe cloop file=$0 && mount -r -t iso9660 /dev/cloop $1
exit $?
with some binary bytes following that.


So I looked at the files and Knoppix-3.4.mkcompressed defines some environment vars pointing to files that do not exist.

CDRECORD=/KNOPPIX.build/cdrecord
MKISOFS=/KNOPPIX.build/genisoimage
BOOTSRC=/KNOPPIX.build/Knoppix.System/bootdisk/Knoppix3.4

Should the deb have installed those? There is no Knoppix.System at all for instance.
I will probably just try and copy those files to KNOPPIX.build/ and try again.

cheers!

johnrw
02-16-2008, 09:10 AM
Well I copied those files to /media/hdb5/remaster/KNOPPIX.build/ and got a little further along. Now I have a huge iso file.
Here is what make iso says at the end...
Total translation table size: 2048
Total rockridge attributes bytes: 10277
Total directory bytes: 36296
Path table size(bytes): 262
Max brk space used 21000
1035723 extents written (2022 MB)

Well it doesn't seem to be zipping anything. It only takes about 3 minutes to do too!
Bummer. This was also strange... I hope I don't need -publisher instead. I'll check that next.
I'm also not using /KNOPPIX.build but one buried deeper into /media/hdb5/remaster/KNOPPIX.build.

Checksumming...Done.
/KNOPPIX.build/genisoimage: The option '-P' is reserved by POSIX.1-2001.
/KNOPPIX.build/genisoimage: The option '-P' means 'do not follow symbolic links'
/KNOPPIX.build/genisoimage: Mkisofs-2.02 will introduce POSIX semantics for '-P'
/KNOPPIX.build/genisoimage: Use -publisher in future to get old genisoimage behavior
Unknown file type (unallocated) /KNOPPIX.build/Knoppix.Master/KNOPPIX-CUSTOM/.. - ignoring and continuing
Size of boot image is 4 sectors -> No emulation

johnrw
02-16-2008, 09:25 AM
Ok well since I did boot from the DVD maybe it is supposed to be that big... so I'll go ahead and try a burn even though I did not try and make a KNOPPIX2 cloop file or even manually copy the files in it to the source image files. Here goes nuthin... lol

johnrw
02-16-2008, 10:12 AM
Well I'll be darned... It was all okay. I am booted into my new Knoppix, with my slight changes... Wow.

I only did this so I could try out a couple of bug fixes...
1. I removed pump from the BLACKLIST of processes that get left running in knoppix-halt. It leaves some open files that cause a fsck on my persistent home on every boot I use it.
2. I am trying out a patch offered to automount a persistent home if it finds one. Well see.

I just wanted to let others who come along know what I found wrong with it as I did it.

Thanks again tapsa.