Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
11-09-2004, 03:15 PM
|
#1
|
LQ Newbie
Registered: Nov 2004
Posts: 3
Rep:
|
problems with gedit
I recently added Fedora Core to my computer to coexist with Windows, and have them on two different hard drives. I wanted to be able to retrieve data from the Windows hard drive, and to do that, I had to add the drive to the fstab file, right?
So, I opened the terminal window, became root, typed in gedit /etc/fstab, and I got a message that said this: (gedit:2449): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
I wasn't sure if this made any difference, so I typed in the data that corresponded with the windows drive into gedit: dev/hda /mnt/windows vfat defaults,users,auto 0 0
I pressed save, and exited gedit. I created the mountpoint using mkdir /mnt/windows, and I thought nothing happened for some reason, so I typed it in again. I figured it must have worked this time, so I restarted, and the icon wasn't there on the desktop. (I typed "auto" in the fstab file) So, I right clicked on the desktop and clicked "windows" under the "drives" section, and it said that Nautilus was unable to mount selected volume because the directory did not exist, so I removed it, and created it again.
I opened up gedit again to see if I had made a typo (which some people are prone to do) and it said that the file "ect/fstab" did not exist. I told the program I would like to create it, and I got another error message saying I couldn't create the file because a directory component in the filename doesn't exist or is a dangling symbolic link.
I am completely stumped. Any help would be much appreciated. (:
|
|
|
11-09-2004, 03:34 PM
|
#2
|
Senior Member
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046
Rep:
|
The first error is probably due to root not having access to X, for security reasons. When you opened Gedit, did you actually see /etc/fstab, or was it a new file, or did it fail entirely ?
The second error is due to using /dev/hda rather than /dev/hda1 (or /dev/hda2 - there's often a small extra partition at the front of a windows drive). Anyway, I'd do it all from the command line:
Code:
# su
# (root password)
# mount
# mkdir /mnt/windows
# man vim
# vim /etc/fstab
Then add the following line:
/dev/hda1 /mnt/windows vfat ro,user,auto,umask=0022 0
Cheers,
mj
Last edited by mjrich; 11-09-2004 at 03:54 PM.
|
|
|
11-09-2004, 08:45 PM
|
#3
|
LQ Newbie
Registered: Nov 2004
Posts: 3
Original Poster
Rep:
|
Thank you for the help, but I have another problem with editing the fstab file. When I first opened gedit, in the beginning, I saw the fstab file. Now, when opening it, the file will not show at all.
After entering what you said in the fstab file from the command line, I got the error, "E486: Pattern not found: dev". I'm not really sure, except for not putting the correct drive name, what I could have done to mess up the fstab file.
|
|
|
11-09-2004, 09:13 PM
|
#4
|
Senior Member
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046
Rep:
|
If using Vim (highly recommended ) then you'll need to go to 'insert' mode before trying to add /dev/hda1 etc. Download a cheat sheet from vimdoc.sourceforge.net/ or have a quick glance at the manual page for Vim (man vim).
Essentially: type "i" to go to insert mode, then use the cursors to navigate to where you want to go (there are quicker methods, but that'll suffice for now), type what you want, then press "escape" to return to control mode, then type ":wq" to write the file, and then quit. Voila !
Good luck,
mj
Last edited by mjrich; 11-09-2004 at 09:31 PM.
|
|
|
11-09-2004, 10:16 PM
|
#5
|
LQ Newbie
Registered: Nov 2004
Posts: 3
Original Poster
Rep:
|
Aha! Thank you very much for your help! Now all my silly fonts and documents can stop collecting dust on Windows.
Thank you again. (:
|
|
|
All times are GMT -5. The time now is 08:32 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|