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 05-21-2010, 05:23 AM   #1
Asmita_Nag
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
Unhappy mount is not working


Hello,
this is my first post in this forum. I am new to the world of FC9 and just started experimenting with it.
1.Today morning when I started FC9 all my Windows-xp' s drives were properly mounted; I inserted a USB drive and that was mounted properly.

2.After that I was trying to install qtsdk and it was facing some problem.
I was tensed and removed my USB drive without Unmounting.

3 Then I rebooted my machine, now neither my Xp-partitions nor my USB drive is getting mounted.

4. I opened the file /etc/fsatb
and added a line there:
/dev/sda2 /mnt/Folder ntfs umask=000,defaults 0 0

5. did mount-a
6. The error message I got:
mount: can't open /etc/mtab for writing: Stale NFS file handle
7 I tried to open mtab file
[B]Could not open the file /etc/mtab

So, 1. What I need to do now?
2. Is formatting the only one option left?
Thanks!
Regards,
Asmita Nag.
 
Old 05-21-2010, 07:27 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
/etc/mtab should be on a local drive, the error message suggests it's on a network (NFS) share.
Could you do
Code:
ls -la /etc
and post the results?

What is interesting, is that /etc/fstab can be opened (normally mounts are on folder-level, so fstab & mtab would be part of the same mounted
filesystem, except if mount --bind were used). If there is a remote share involved, a reboot of the NFS server (or restart of nfsd) & a reboot of your machine should cancel any NFS connections.

The mtab file could be locked for writing (access blocked by the umount of the USB drive), but the reboot should have fixed that.
The same should be true for the stale NFS handle.

A copy of the contents of /etc/fstab would be nice too, as well as a summary of the drives (XP & other) you are talking about.

What you could try, is to boot up interactively or in a special mode without mounting any drives (perhaps even from a LiveCD).
 
Old 05-21-2010, 12:19 PM   #3
Asmita_Nag
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks Timmeke!
1. My machine is a stand-alone one and is not connected to any network
2. I ran the command but can't post the detailed result (Actually USB drive is not working, so I could not bring the result) but what i noticed:

-????????? ? ? ? ? ? mtab
-rw-r--rww 1 root root 635 2010-05-21 19:51 fstab
-rw-r--rww 1 root root 586 2010-05-21 19:50 fstab~


these are some important extract from the result.

3. If it does not help, then I will copy the content of fstab too.
4. I did not try any interactive booting or special-mode booting. How can I do that?

Thanks & Regards,
Asmita Nag.
 
Old 05-21-2010, 06:41 PM   #4
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
fstab~
is just a backup copy of fstab, saved by the text editor.

The mtab with question marks is more worrysome.
I would suggest switching to root user, and then trying
Code:
rm -f /etc/mtab
touch /etc/mtab
Make sure the new mtab file is read-write accessible for root user.
Then reboot - Linux should fill the mtab file when it mounts filesystems.

Do you know which boot loader (grub, lilo) you're using?
Usually, there is a quick hint (e.g. press "I" for interactive setup), press "F2" for boot menu,...).
I suggest you google around for the exact way to do it with FC9.
 
Old 05-22-2010, 12:54 AM   #5
Asmita_Nag
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks again!

I tried to do rm and touch. In both the cases, it is saying that
rm: cannot remove '/etc/mtab' :Stale NFS file handle
touch: cannot touch '/etc/mtab' :Stale NFS file handle


Thanks & Regards,
Asmita Nag.
 
Old 05-22-2010, 01:13 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
That is strange because the error you get is related to the NFS shares being removed even when they are still shared on clients. But as you do not have NFS server it seems bit weird. I googled for it and could not find very relative answers. But the options told are to use -O option while mounting.
Look at these if you have not:

http://sysunconfig.net/unixtips/stale_nfs.txt

http://www.cyberciti.biz/tips/nfs-st...-solution.html

http://www.unix.com/unix-advanced-ex...le-handle.html

http://linux.derkeiler.com/Mailing-L.../msg00040.html
 
Old 05-22-2010, 02:10 AM   #7
John VV
Guru
 
Registered: Aug 2005
Posts: 13,452

Rep: Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799Reputation: 1799
Quote:
I am new to the world of FC9 and just started experimenting with it....

1. My machine is a stand-alone one and is not connected to any network
so this is why you have installed / are running a old and no longer supported version of fedora

fedora 9 hit End Of Life about a year ago
the current is 12 and 13 will be released in a few days.

-------------
was the usb a ntfs formatted ? most are fat32

and if ntfs ( i do not recall if kmod-ntfs was still in use in 9 )
or the ( at the time the very EXPERIENTIAL) ntfs-3g . what is installed on the no-longer supported fedora 9
 
  


Reply

Tags
mount


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
[SOLVED] NFS mount not working ? your_shadow03 Linux - Newbie 5 01-05-2010 10:53 AM
I'm working with symlinks with mount command to mount remote shares lhorace Linux - Newbie 1 11-21-2009 05:05 PM
mount working on one machine but not another?? everyday Linux - Networking 6 07-28-2008 05:23 PM
CDROM mount is not working any more shreks Fedora 5 09-05-2006 10:05 PM
mount as user not working paul_mat Linux - Newbie 10 12-22-2004 09:56 AM


All times are GMT -5. The time now is 12:31 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration