Solved

mount

Posted on 2000-04-22
8
472 Views
Last Modified: 2010-04-20
Hello, currently I am using redhat 6.1 with gnome. my question is:
   How can I mount the drive "automatically" in X-window without go to xterm and have a type of command like mount -t ....
0
Comment
Question by:ahchong
8 Comments
 
LVL 1

Expert Comment

by:fbjean
ID: 2740454
I`m not sure it`s the best way, but you could go into the /root or /"your user"
and add the command for mounting the cdrom in the .bash_profile
So every time you will log the cdrom will be mount . What will happen if there is no cd in the reader ? You will have to try

good luck
0
 
LVL 1

Expert Comment

by:andrewljohn70
ID: 2741606
Hi ahchong,

Try this out...

1. do not mount the cdrom but have a cdrom when you re-start the computer in linux.

2. Click on the Gnome start button and select the File Manager of gnome - select the /mnt/cdrom directory and see if it reads your cdrom.

3. if you have a data cd in the drive and it is not being read. Just open the drive manually and close it again with the cdrom in it.
This should have you read the CD without you having to type the mount command again and again.

Please let us know if your problem is solve...

have fun :)) Andrew
0
 
LVL 1

Expert Comment

by:Ted22
ID: 2741834
In /etc/fstab

example

/dev/hda2       /mnt/win98   vfat  defaults 0 0


You must make the directory in /mnt "win98"

It should mount when you boot.

fdisk
p
will show your drives
q
to quit
I think this is what your asking.
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 3

Expert Comment

by:DVB
ID: 2741867
Heres what I did:
Manually make a link to the /mnt/cdrom directory in your desktop folder.
Then when you have to mount, simply double click on the icon, to unmount, close any window/xterm pointing to the cdrom, then right click and select unmount.
0
 
LVL 3

Expert Comment

by:DVB
ID: 2741875
Ted22, the question was about mounting cdroms, not hard disks!
0
 
LVL 1

Expert Comment

by:Ted22
ID: 2741938
I read "the drive" so I wasn't sure.
0
 
LVL 1

Accepted Solution

by:
friebele earned 10 total points
ID: 2749783
If you open /etc/fstab firstly change the cdrom item so that is contains iso9660,users,ro to allow other users to open the cdrom. While holding the mouse over the gnome panel, right mouse click to bring up a menu and somewhere in there there should be an add mount drive icon. Select it and chose the icon you want and make sure that the device is /dev/cdrom. You can also do this for floppies and harddrive partitions provided that all the partitions are setup correctly in /etc/fstab. Then it is a matter of clicking the icon to mount the drive.
0
 

Author Comment

by:ahchong
ID: 2854036
Answer accepted
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

777 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question