On Sun, 27 Jan 2002 19:21:03 GMT, Bruce M Beach <brucemartinbeach at 21cn.com> wrote:> to do is somehow automatically determine what drive the cd > is on so I can mount it with out a command line prompt. > This would be quite useful since I would like the students > to be able walk up to any WindToad(TM) system in the University,assuming kernel >= 2.2 set up fstab to use /dev/cdrom as device, then cddev for i in hda hdb hdc hdd do if [ -f /proc/ide/$i/media ]; then media=`cat /proc/ide/$i/media` if [ "$media" = "cdrom" ]; then cddev=/dev/$i break fi fi done if [ -n "$cddev" ]; then ln -s -f $cddev /dev/cdrom fi -- giulioo at pobox.com
On Sun, Jan 27, 2002 at 12:35:35PM +0100, Giulio Orsero wrote:> On Sun, 27 Jan 2002 19:21:03 GMT, Bruce M Beach <brucemartinbeach at 21cn.com> > wrote: > > > to do is somehow automatically determine what drive the cd > > is on so I can mount it with out a command line prompt. > > This would be quite useful since I would like the students > > to be able walk up to any WindToad(TM) system in the University, > > assuming kernel >= 2.2 > set up fstab to use /dev/cdrom as device, then[snip script] you can also use the scsi-ide stuff. It will put all cdroms on /dev/scdN, where N = the number of the cd player. grtz, Tijn -- 3:05PM up 2 days, 1:50, 4 users, load averages: 0.70, 0.27, 0.18
Hello All;
I have a linux system on a CD that I use to teach
a graduate course on Unix. I use isolinux to boot
the kernel then simply mount the CD ro and set
up some symbolic links pointing to /tmpfs for the stuff
that needs be writable. (mainly /var and /tmp). Something like
gcc is a little bit slow the first time you use it but
then it gets cached and after that it is all right.
Isolinux works just fine. No problems. What I would like
to do is somehow automatically determine what drive the cd
is on so I can mount it with out a command line prompt.
This would be quite useful since I would like the students
to be able walk up to any WindToad(TM) system in the University,
and boot Linux. The problem is that it is not known before
hand which IDE channel the CD is residing on.
Bruce
Bruce M Beach wrote:> Hello All; > > I have a linux system on a CD that I use to teach > a graduate course on Unix. I use isolinux to boot > the kernel then simply mount the CD ro and set > up some symbolic links pointing to /tmpfs for the stuff > that needs be writable. (mainly /var and /tmp). Something like > gcc is a little bit slow the first time you use it but > then it gets cached and after that it is all right. > Isolinux works just fine. No problems. What I would like > to do is somehow automatically determine what drive the cd > is on so I can mount it with out a command line prompt. > This would be quite useful since I would like the students > to be able walk up to any WindToad(TM) system in the University, > and boot Linux. The problem is that it is not known before > hand which IDE channel the CD is residing on. >Here is a copy of the find-cd script used on the SuperRescue CD. It works for SCSI, USB and IDE (i.e. all modern CD-ROMs): -hpa -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: find-cd URL: <http://www.zytor.com/pipermail/syslinux/attachments/20020127/74815d7b/attachment.ksh>