Re: mount/unmount scripts
Dale Scheetz writes: On Thu, 16 Jan 1997 [EMAIL PROTECTED] wrote: Here are some shell scripts for mounting and unmounting DOS CDROM stuff. My DOS partition is /dev/hda1 and the cdrom drive is /dev/hdb. If yours is different, change the scripts to match your equipment. I keep these in the /root directory and use su - to access them. I'm working on automounting these devices so that I can dispose of these scripts. I use an entry in fstab to mount my DOS partition. You could do this with the CD as well except for the problem of removable media. I use a simple one line script to mount my CD. True, but if there isn't a cdrom in the drive at boot-up time, the cdrom drive won't mount 8-) That's why I created the scripts. -- -= Sent by Debian 1.2 Linux =- Thomas Kocourek KD4CIK [EMAIL PROTECTED] -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: mount/unmount scripts
[EMAIL PROTECTED] wrote: Dale Scheetz writes: I use an entry in fstab to mount my DOS partition. You could do this with the CD as well except for the problem of removable media. I use a simple one line script to mount my CD. ^^^ What he wanted to say and one advantage of using fstab is that: instead of typing % mount -t iso9660 /dev/cdrom /cdrom we just need to type % mount /cdrom as explained in CDROM-HOWTO. True, but if there isn't a cdrom in the drive at boot-up time, the cdrom drive won't mount 8-) That's why I created the scripts. -- -= Sent by Debian 1.2 Linux =- Thomas Kocourek KD4CIK [EMAIL PROTECTED] -- -- -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Seak Teng-Fong E-mail: [EMAIL PROTECTED] Bât 507 DRFC / SPPFTel: 33 (0) 4 42256125 CE / Cadarache Fax: 33 (0) 4 42256233 13108 Saint Paul lez Durance Cedex FRANCE -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: mount/unmount scripts
True, but if there isn't a cdrom in the drive at boot-up time, the cdrom drive won't mount 8-) That's why I created the scripts. Have a look at the user and noauto options (I recommend man mount) My /etc/fstab contains the lines /dev/scd0 /cdrom iso9660 user,noauto,ro 0 0 /dev/fd0 /dos/a msdos user,noauto,rw 0 0 /dev/hda2 /dos/c msdos user,noauto,rw 0 0 /dev/sda1 /dos/d msdos user,noauto,rw 0 0 /dev/sda5 /dos/e msdos user,noauto,rw 0 0 This way mount /cdrom works from a normal user account and e.g. mount /dos/d from my normal login (bsb) makes all files on /dos/d owned by bsb.bsb No need for home-brewn scripts, no need for su. Hope this helps Siggy -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]
Re: mount/unmount scripts
On Thu, 16 Jan 1997 [EMAIL PROTECTED] wrote: Here are some shell scripts for mounting and unmounting DOS CDROM stuff. My DOS partition is /dev/hda1 and the cdrom drive is /dev/hdb. If yours is different, change the scripts to match your equipment. I keep these in the /root directory and use su - to access them. I'm working on automounting these devices so that I can dispose of these scripts. I use an entry in fstab to mount my DOS partition. You could do this with the CD as well except for the problem of removable media. I use a simple one line script to mount my CD. Luck, Dwarf -- aka Dale Scheetz Phone: 1 (904) 656-9769 Flexible Software 11000 McCrackin Road e-mail: [EMAIL PROTECTED] Tallahassee, FL 32308 If you don't see what you want, just ask -- -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word unsubscribe to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]