-
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

Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kit NEW
$13.89

LEVOIT Cordless Vacuum Cleaner, Stick Vac with Tangle-Resistant Design, Up to...
$162.04

Cordless Air Duster & Vacuum Cleaner for Keyboard & PC Cleaning - 110000RPM Powe
$53.99

Mini Computer Vacuum Cleaner & Compressed Air Duster 14500Pa, 110000RPM, Cordles
$53.99

MAYKU FormBox Desktop Vacuum Forming Machine W / Starter Kit
$399.00

US Mini Computer Vacuum USB Keyboard Cleaner PC Laptop Brush Dust Cleaning Kits
$13.89

2-in-1 Compressed Air Duster & Vacuum, Brushless Motor, 320000RPM
$37.99

2 in 1 Compressed Air Duster Air Blower & Vacuum Cleaner Cordless Duster Blower
$16.99

Cordless Handheld Vacuum Cleaner Compatible with DeWalt 20V Battery
$107.67

Electric Air Duster Blower High Power Cordless Cleaner for PC Laptop Keyboard
$17.99