[101607] in RedHat Linux List
Re: Newibie: Mounting/ unmounting CDroms
daemon@ATHENA.MIT.EDU (steinbr@mediaone.net)
Fri Nov 27 17:57:33 1998
From: steinbr@mediaone.net
Date: Fri, 27 Nov 1998 17:46:17 -0500
To: redhat-list@redhat.com
In-Reply-To: <19981125115313.B19539@klondike.ml.org>
Resent-From: redhat-list@redhat.com
Reply-To: redhat-list@redhat.com
Firstly, Thank you to all who responded to my request about automating
Mounting and umounting CDroms.
What I ended up doing was put two alias commands in /etc/.bashrc and in the
home/papa/.bashrc file to accommodate the availability of the aliass when
logged in as root and papa.
alias out="umount /dev/cdrom; eject -u /dev/cdrom"
alias in="mount /dev/cdrom -t iso9660 /mnt/cdrom"
The reason for the umount command in out is simply the -u option did not
seem to work. This is alluded to in the man pages.
This works well when logged on as root but not when logged on as user papa.
I ran the linuxconf program that come with Redhat 5.2 (and 5.1 I thnk).
Under the
config >filesystem>access local drive>cdrom>option
I chose user mountable
This didnot help being able to mount and umount under papa.
Can I enable users or a group of users to mount and umount CDroms?
PS. I have not tried autofs yet as I am still reading up on that.
Charles Kaucher
Useful Predictions
*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*
"It's hard to make predictions, especially about the future."-Yogi Berra,
Visionary, 19??
"I think there is a world market for maybe five computers."-Thomas Watson,
IBM Chairman, 1943
"640 K ought to be enough for anybody."-Bill Gates, Microsoft Chairman, 1981
"With over 50 foreign cars already on sale here, the Japanese auto industry
isn't likely to carve out a big slice of the U.S.
market for itself"- Business Week, 1958
"TV won't be able to hold on to any market it capture after the first six
months. People will soon get tired of staring at a pl
ywood box every night."- 20th Century Fox's Daryl F. Zanuck, 1946
"Don't sweat petty things. Don't pet sweatty things."-Anonymous
At 11:53 AM 11/25/98 -0800, you wrote:
>If you wish all users on the system to be able to use them, place the
>aliases below into /etc/bashrc. If you wish only specific users to be
>able to use these aliases, place them in ~/.bashrc.
>
>Blair.
>
>On Wed, Nov 25, 1998 at 02:38:39PM -0500, Jan Carlson wrote:
>> steinbr@mediaone.net wrote:
>>
>> > In Windoze 95 I can take out and put in CDs at will. In Linux it appears
>> > that I have to mount and umount each CD. So I have setup an alias to do
>> > both of these. I have two questions.
>> >
>> > 1. An Alias seem to only last for the session., Can I put them into a
>> > script file that will load every time I log on? If, so where should this
>> > file go and from where should it be executed?
>>
>> Assuming your CD is an ATAPI/IDE as secondary master,
>>
>> alias out="eject -u /dev/hdc"
>> alias in="mount -t iso9660 /dev/hdc /mnt/cdrom
>>
>> And install the eject rpm from the RedHat CD.
>>
>> Then type in and out to your hearts content.
>> People were having trouble with the automounting packages.
>> Maybe they work now.
>>
>>
>> --
>>
>> Jan Carlson
>> janc@iname.com Scarborough, Ontario, Canada
>> Mailed with Netscape 4.5 on Red Hat Linux 5.2
>
>--
>--- end ---
>Blair Craft
>bsc@klondike.ml.org
>http://www.klondike.ml.org/~bsc
>
>
>
>--
> PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
> http://www.redhat.com http://archive.redhat.com
> To unsubscribe: mail redhat-list-request@redhat.com with
> "unsubscribe" as the Subject.
>
--
PLEASE read the Red Hat FAQ, Tips, Errata and the MAILING LIST ARCHIVES!
http://www.redhat.com http://archive.redhat.com
To unsubscribe: mail redhat-list-request@redhat.com with
"unsubscribe" as the Subject.