PDA

View Full Version : toRAM bug?



Bernd Blaauw
12-06-2003, 10:30 PM
Hi people,

I've added Knoppix to my DVD, which uses Isolinux as bootloader.
no problem there.

however, the DVD is about 3GB.

when I type 'knoppix toram' , it goes copying, but complains about a full Ramdisk. from further output I see it tries the entire DVD content!

toRAM parameter is only used for copying the KNOPPIX file to the ramdisk (not the entire disc!), or am I wrong here?

any help / comments appreciated
regards,

Bernd Blaauw

aay
12-06-2003, 11:31 PM
Check the size of that Knoppix file. It's nearly the size of the whole CD. All of Knoppix is compressed using Cloop. You need to have around 1gig of ram to use the toram option. Optionally, you can remaster the cd and remove unwanted applications or just copy the image onto your hd and boot from there like this: "knoppix tohd=/dev/hda1"

Adam

budhy
12-07-2003, 02:38 AM
toRAM parameter is only used for copying the KNOPPIX file to the ramdisk (not the entire disc!), or am I wrong here?


yes, it is true!!

Bernd Blaauw
12-07-2003, 02:50 AM
actually,

I *do* have 1GB,
using the toram option,
Knoppix says something about
"please hold"

and then it should copy the file KNOPPIX to RAM.
nothing else.

unfortunately my Linux knowledge is almost zero so if I use a cd I can't see if it copies only the Knoppix file, or entire contents..

I found the "error". irritating.
LINUXRC in the boot-image: line 265..270

/bin/mkdir /cdrom2
if [ -n "$COPYTORAM" ]
then
# Hey, we could use some fancy dialog skript here :))
echo -n "${CRE} ${GREEN}Copying KNOPPIX CDROM to ${MAGENTA}ramdisk${GREEN}
/bin/mount - tmpfs -o size=800M /dev/shm /cdrom2
if [ -z "$NOCD" ]
then
/bin/cp -a /cdrom/* /cdrom2 # Comment
else
/bin/cp -a /cdrom/KNOPPIX/ /cdrom2 # Copy only KNOPPIX-dir as we
fi

OK, found it. Now find a way to remedy it.
(yes, I know the above patch, but how to create boot.img again :)