LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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


Reply
  Search this Thread
Old 11-09-2004, 04:15 PM   #1
hitlaur
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Rep: Reputation: 0
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. (:
 
Old 11-09-2004, 04:34 PM   #2
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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 04:54 PM.
 
Old 11-09-2004, 09:45 PM   #3
hitlaur
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 11-09-2004, 10:13 PM   #4
mjrich
Senior Member
 
Registered: Dec 2001
Location: New Zealand
Distribution: Debian
Posts: 1,046

Rep: Reputation: 45
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 10:31 PM.
 
Old 11-09-2004, 11:16 PM   #5
hitlaur
LQ Newbie
 
Registered: Nov 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Aha! Thank you very much for your help! Now all my silly fonts and documents can stop collecting dust on Windows.

Thank you again. (:
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gedit problems openning files UmneyDurak Linux - Software 6 11-24-2005 08:45 PM
gedit problems ffenliv Linux - Software 3 08-09-2005 06:51 PM
Can't update Gedit rvoigt Linux - Newbie 1 09-28-2004 07:15 AM
how can i reinstall gedit? vree13 Linux - Newbie 5 03-05-2004 05:17 PM
Gedit JsCAMRY Linux - Software 10 11-06-2003 02:54 PM


All times are GMT -5. The time now is 11:11 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration