Hi,

Le Samedi 6 Mars 2004 15:12, Tom Oehser a �crit :
> > mkdir -p /mnt/cdrom
> > mount -t iso9660 /dev/hdb /mnt/cdrom||mount -t iso9660 /dev/hdc
> > /mnt/cdrom||mount -t iso9660 /dev/hdd /mnt/cdrom
>
> The catch is that it could be a scsi device, could be on hda or on
> hde-hd?, could be even I think be on a /dev/rd/ device, and I'm
> not 100% comfortable with what the side effects might be of just
> randomly trying to mount every device as a CD- 

It doesn't seem to cause trouble.
The "-t iso9660" option causes an error if type is wrong.
So drive isn't really mounted if type is wrong.

> and this still 
> doesn't address what if hdc is the one that booted, but there *is*
> a CDROM on hdb, in which case it won't work...

I know but in most cases, machines I have to work with only have one 
cdrom-drive.

I think, I'll use it.
But I would like to do a modification...

Could you explain me why the way I copied a part of rc.custom to ask if I want 
to mount cdrom doesn't work?
========================================
...
route add -net 127.0.0.0 lo
#Beginning of what is added
echo P>P
sh<<'X'&

echo "Mount cd?"
read -p "
Do you want to mount CD/DVD drive (5sec)? (y/n) [n] " J</dev/tty1>/dev/tty1
[ "$J" ]&&if [ "$J" = "y" ]; then
mkdir -p /mnt/cdrom
mount -t iso9660 /dev/hdb /mnt/cdrom||mount -t iso9660 /dev/hdc 
/mnt/cdrom||mount -t iso9660 /dev/hdd /mnt/cdrom
echo "sh /mnt/cdrom/toms_addons/index.sh" > /bin/cd.sh
chmod +x /bin/cd.sh
fi

rm P
X
(sleep 5;kill $!;rm P)2>$NU&
#End of what is added

FM=`sh -c 'shift 2;echo $8' \`dd if=/proc/meminfo 2>/dev/null\` `
...
========================================
The way keyboard language is asked to user isn't really clear to me. 


The other solution would be:
Be able to add a script to initrd.bz2
(I could put a script with questions to ask witch is the cdrom-drive that 
should be mounted).

Can you explain me why errors occur when I try to add a file to initrd.bz2?
=========================
init started: Busybox v0.61.pre...
Bummer, could not run '/etc/rc.S': Exec format ettor
Bummer, could not run '/etc/rc.S': Exec format ettor
_setutent: Can't open utmp file: No such file or directory
_setutent: Can't open utmp file: No such file or directory
_setutent: Can't open utmp file: No such file or directory
=========================

Thank you very much.
-- 
Stephane Boireau
Personne Ressource TICE du Coll�ge Le Hameau � Bernay (27)


Reply via email to