Re: bootcd (next step)
Stephane Boireau <[email protected]> Sat, 6 Mar 2004 20:32:59 +0100
| Newsgroups | gmane.linux.tomsrtbt |
|---|---|
| Message-ID | <[email protected]> |
Hi, Le Samedi 6 Mars 2004 15:12, Tom Oehser a =E9crit : > > 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-=20 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=20 > 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=20 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=20 to mount cdrom doesn't work? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D ... 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/tt= y1 [ "$J" ]&&if [ "$J" =3D "y" ]; then mkdir -p /mnt/cdrom mount -t iso9660 /dev/hdb /mnt/cdrom||mount -t iso9660 /dev/hdc=20 /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=3D`sh -c 'shift 2;echo $8' \`dd if=3D/proc/meminfo 2>/dev/null\` ` ... =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The way keyboard language is asked to user isn't really clear to me.=20 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= =20 should be mounted). Can you explain me why errors occur when I try to add a file to initrd.bz= 2? =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Thank you very much. --=20 Stephane Boireau Personne Ressource TICE du Coll=E8ge Le Hameau =E0 Bernay (27)