-
Senior Member
registered user

Originally Posted by
Lex
the same errorrs on the real PC
It seems like mount does not want to create a RamDisk

Here is a new diff:
Code:
--- linuxrc.orig 2003-07-26 13:10:09.000000000 +0200
+++ linuxrc 2003-07-26 13:48:21.000000000 +0200
@@ -235,7 +235,31 @@
insmod -f /modules/cloop.o file=/cdrom/KNOPPIX/KNOPPIX
mountit /dev/cloop /KNOPPIX "-o ro" || FOUND_KNOPPIX=""
fi
-
+
+ COPYTORAM="yes" # yes we want to copy it
+
+ # CopyToRam ?
+if test -n "$COPYTORAM";
+then
+ # Pre-test if everything succeeded.
+ if test -n "$FOUND_KNOPPIX"
+ then
+ # copy library cache
+ cat /KNOPPIX/etc/ld.so.cache > /etc/ld.so.cache
+ echo ""
+
+ echo "Copying /cdrom to RamDisk, this will take a while ..." # Hey, we could use some fancy dialog skript here :-))
+ /bin/mkdir /cdrom2
+ /bin/mount -t tmpfs -o size=800M /dev/shm /cdrom2
+ /bin/cp -a /cdrom/* /cdrom2 # Copy everything to /cdrom2; yes we need more things then only the KNOPPIX image, we don't want to produce problems we hadn't before, do we ?
+ umount /KNOPPIX # unmount it
+ rmmod cloop # release CD
+ umount /cdrom # unmount CD
+ insmod -f /modules/cloop.o file=/cdrom2/KNOPPIX/KNOPPIX
+ mountit /dev/cloop /KNOPPIX "-o ro" || FOUND_KNOPPIX="" # if everything else did suceeded so far, this will hopefully succeed too
+ fi
+fi
+
# Final test if everything succeeded.
if test -n "$FOUND_KNOPPIX"
then
@@ -257,6 +281,13 @@
# From here, we should have all essential commands available.
hash -r
+# Did we copy from ram ?
+if test -n "$COPYTORAM";
+then
+ rmdir /cdrom
+ ln -s /cdrom /cdrom2 # make a symlink and go on to normal boot
+fi
+
# Clean up /
rm -rf /modules /static
I also uploaded necessary files and an boot.img for 06-06 and earlier (I know its deprecated, but I don't have newer version atm) to:
http://debian.tu-bs.de/knoppix/RamPatch/
You can get linuxrc also form there.
I tested everything except the copying, as I don't have that much RAM.
cu
Fabian
PS: I'm awaiting your results. VMWare test is fine
[/code]
Similar Threads
-
By colin stewart in forum Hdd Install / Debian / Apt
Replies: 4
Last Post: 03-23-2004, 02:18 AM
-
By desire in forum The Lounge
Replies: 5
Last Post: 02-19-2004, 05:06 AM
-
By Pierscoe1 in forum General Support
Replies: 3
Last Post: 12-16-2003, 05:18 PM
-
By smurfy__ in forum Customising & Remastering
Replies: 1
Last Post: 08-18-2003, 01:40 PM
-
By fingers99 in forum Hardware & Booting
Replies: 1
Last Post: 03-01-2003, 08:12 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Vintage Digital VR241-A color CRT monitor, powers on, DEC Rainbow or terminal
$150.00

Vintage DEC Digital XMI-A1 5017293-01A1 LWPR BE3-0 VAX Circuit Board T2012
$74.99

Vintage DEC Digital T1043 DWMBB/B VAXBI XMI Adapter 5018232-01 C1 VAX Board
$119.99

Vintage DEC Digital Starion 200 Desktop PC Powers On Boots To BIOS NO HDD - DW
$269.99

Vintage DEC VT100 Series Terminal (Powers On)
$499.99

Vintage DEC LK201 Digital Equipment Corporation (DEC) LK201-AA Computer Keyboard
$149.99

VINTAGE DEC 54-20470-02 MULTI-PLANE SPX COLOR GRAPHICS CARD FOR VXT2000 TERMINAL
$169.00

Vintage DEC Digital CompacTape II Tape Cartridge TK-52 TK-70
$29.99

Vintage DEC/Mostek memory systems MK 8015 AA-00 6805-08015 1100 REV C(B7)
$279.99

Vintage DEC Digital VSXXX-AA.B03 Hawley 3-Button Mouse 1986 Tested Working
$111.00