LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] thanks - cdrw, loop, etc...

[ILUG] thanks - cdrw, loop, etc...

kevin lyda kevin at suberic.net
Wed Jul 11 15:30:33 IST 2001


my main server is back up with the cdrw in a usable state, upgraded
kernel, and 32 possible loop devices (of which i'm using ~17 - redhat 6.2
box set, redhat 4.2, openbsd, mandrake, loki games and a few reference
cd's).

this might be of use to people:

my method of archiving cd's is to use a format something like
producer-version-what.iso - so redhat-6.2-cpan.archive.iso might be
an example.  i put them all in a single dir (for me it's /u3/sw/cdrom)
and run this script as root with the argument start - anything else will
unmount all the mounts below /mnt/jukebox:

    #!/bin/sh

    JB=/mnt/jukebox
    ISO=/u3/sw/cdrom

    if [ -d $JB ]; then
	for f in `mount | grep $JB | awk '{print $1}'`; do
	umount $f
	done
	rm -rf $JB
    fi
    mkdir $JB
    if [ "$1" = start ]; then
	cd $ISO
	for i in *.iso; do
	dir=`echo $i | sed 'sx-x/xg;s/.iso$//'`
	mkdir -p $JB/$dir
	echo mounting $i on $JB/$dir
	mount -oro,loop $ISO/$i $JB/$dir
	done
    fi

it wouldn't be that hard to add it to /etc/exports as you go along - an
exercise for the interested reader.  now to get nis and backups working.

kevin, admin for the doolin galway office...

-- 
kevin at suberic.net          "linux is a cancer"  --steve ballmer
fork()'ed on 37058400      "released 25 august 1991, linux is a virgo" --me
meatspace place: home       linux, not just a star-sign:
http://suberic.net/~kevin                             http://www.linux.com/




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell