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
[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
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
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]
mount/unmount scripts
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. c.on --- ## Mount C: (/dev/hda1) to /C directory (mkdir /C) mount -t msdos -o user /dev/hda1 /C echo C drive now connected to /C c.off -- ## Unmount C: from /C directory umount /dev/hda1 echo C drive now disconnected from /C cdrom.on --- ## Mount CDROM drive to /cdrom (already in root directory) mount -t iso9660 -r /dev/hdb /cdrom echo CDRom connected to /cdrom cdrom.off -- ## Unmount CDROM drive from /cdrom umount /dev/hdb echo CDrom drive now disconnected from /cdrom floppy.on -- ## Mount 3 1/2" DOS floppy in drive A: to /floppy mount -t msdos /dev/fd0H1440 /floppy echo Floppy drive now connected to /floppy floppy.off - ## Unmount 3 1/2" floppy from /floppy umount /dev/fd0H1440 echo Floppy drive now disconnected from /floppy -- -= 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]