-
Senior Member
registered user
[PATCH] cloop: Add suspend feature
Hi,
long time no post.
I just sent a message to debian-knoppix.
The implemented idea is to do:
# cp necessary files to ramdisk or load them into the block-layer cache
# load k3b first and also load cdrecord then into cache.
# then ...
cloop_suspend /dev/cloop
eject /cdrom
# put other CD in and burn it for example
# ...
# eject other cd
eject /cdrom
# mount it again
mount /cdrom
# Resume cloop
losetup /dev/cloop /cdrom/KNOPPIX/KNOPPIX
While in suspend mode all accesses are answered via kernel cache. If a file / dir is not in cache, the corresponding application is blocked until cloop resumes again.
Ideas? Comments?
cu
Fabian
PS: See: http://lists.debian.org/debian-knopp.../msg00001.html for patch and more information ...
-
with care...
I haven't tried it yet, but from the citation at the end of your post it seems workable and useable, if potentially pitfall-full.
Having also need to do this my workaround was to use the toram cheat (effectively caching the entire disk)... thus no danger of blocked X-processes etc... but this was essentially a hardware solution (requiring me to install more RAM) and now that the new RAM is installed, having a low-resource way to do this (at least the lower runlevels) will be useful.
Another workaround has been to stop booting before the any /dev/cloops are allocated...
load just the things I need, etc, into ramdisk, eject the CD, burn one, and then continue booting. No X that way either, of course, and also less elegant than suspending
the device
Having a few more spare cloop devices than just eight would help too
-
Senior Member
registered user
Re: with care...

Originally Posted by
jef
I haven't tried it yet, but from the citation at the end of your post it seems workable and useable, if potentially pitfall-full.
Okay, it works now as explained from Knoppix 5.2:
Here is a small script sniplet:
Code:
#!/bin/sh
echo "Please start now all apps you'll need for doing what you want while the Knoppix-CD is ejected."
echo " (including just running cdrecord/growisofs once if you are burning a CD/DVD)"
echo "Press any key to continue."
read -n1
eject --help >/dev/null 2>&1
cloop_suspend >/dev/null 2>&1
losetup >/dev/null 2>&1
while true
do
echo "Suspending cloop interfaces ..."
[ -f /cdrom/KNOPPIX/KNOPPIX2 ] && cloop_suspend /dev/cloop2
cloop_suspend /dev/cloop0
echo "Ejecting /cdrom ..."
eject /cdrom
echo "Please take the CD/DVD out of your drive, burn your CD/DVD, put it back in and press a key."
read -n1
echo "Re-Mouting /cdrom ..."
mount /dev/cdrom /cdrom || continue
echo "Awakening suspended cloop interfaces ..."
losetup /dev/cloop0 /cdrom/KNOPPIX/KNOPPIX || continue
if [ -f /cdrom/KNOPPIX/KNOPPIX2 ]
then
losetup /dev/cloop2 /cdrom/KNOPPIX/KNOPPIX2 || continue
fi
break
done
echo "All setup again. Thanks for using this program."
cu
Fabian
Similar Threads
-
By modsoul in forum General Support
Replies: 0
Last Post: 10-06-2007, 02:41 PM
-
By abcc in forum Hdd Install / Debian / Apt
Replies: 1
Last Post: 04-03-2007, 10:32 AM
-
By Targaryen in forum Ideas
Replies: 0
Last Post: 10-29-2005, 11:29 PM
-
By sunburnt in forum Ideas
Replies: 1
Last Post: 04-12-2005, 12:12 AM
-
By Albert in forum Customising & Remastering
Replies: 7
Last Post: 10-26-2004, 05:26 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 RARE Overland 9 Track tape drive for mainframe computer storage
$800.00

IBM MST-2 370 Integrated Circuit Computer Chips Lot Of 43 Rare 1970s Vintage
$249.00

HP 5060-8359 8K Semiconductor Memory Module 5080-9747 Vintage HP Computer
$165.58

Mystery Vintage Computer Mizar Motorola 68000 Based System W Shugart Drives
$500.00

Vtg IBM Mainframe Prototype Chip Module Lot 146 pc 1988-1993 ES/9000 Lab Arcive
$649.00

Vintage Sperry Rand Univac Mainframe Control Board Gold IC Rare Piece Of History
$289.95

IBM Prototype ES/9000 Mainframe Computer MCM CPU Vintage White Ceramic Gold
$1000.00

Vintage IBM #192726 Paper Tape Punch Mainframe Computer Programming Tool 1960s
$94.95

Vintage Telex 952003-112 Mechanical Terminal Keyboard IBM 3270 Mainframe DB25
$679.15

FOR PARTS Asus CUSL2-C Motherboard PGA370 SDRAM, Intel Pentium III 800EB 800Mhz
$69.99