-
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

Genuine Cisco SFP-10G-SR 0-2415-03 10 Gigabit Transceiver
$5.40

Cisco SFP-10G-LR-S Reset & Tested Lot of 2
$32.99

NEW Sealed Cisco SFP-10G-LR 10GBASE-LR SFP+ 1310nm 10km *US Shipping*
$24.00

Cisco Acacia DP04QSDD-E25-840 400G QSFP-DD Coherent DCO Transceiver Module
$699.99

SFP TO RJ45 TRANSCEIVER SFP MODULE COPPER SFP OPTICAL PORT TO RJ45 ETHERNET PORT
$7.99

Intel X520-DA2 10Gb 10Gbe 10 Gigabit Network Adapter NIC Dual Port E10G42BTDA
$28.94

HP 560SFP+ 10GB 2-port PCIe NIC Ethernet ADAPTER 669279-001 w/ (2) 10GB SFP+
$16.99

Cisco SFP-10G-SR-S 10-3105-01 SFP+ Transceiver Module W/ Hologram Lot of 14
$98.00

Lot of 32 Cisco GLC-T 30-1410-03 1000BASE-T SFP Transceivers
$150.00

Cisco WS-C3650-12X48UR-L 48-Port Stackable Layer 3 8x10G SFP+ Port Switch
$129.99