LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-08-2005, 02:20 PM   #1
robdigital
LQ Newbie
 
Registered: Jan 2005
Posts: 5

Rep: Reputation: 0
mtab is stale, cannot umount


Question 1: Is there any way to umount a device when mtab has been altered?

Details:
I did something impulsive and dumb (editing my /etc/mtab). Now I cannot umount the partition (I only altered the options a specific mounted partition). Whenever I try a umount, i receive an error message saything that mtabe is stale.

Question 2: How do you give a regular user permissions to read, write, and mount a device (and preferably keep those permissions every time my computer reboots)?

Details:

The device is a partition of a secondary IDE harddrive I have installed.
I want to mount /dev/hdb5 in /mnt/shared. It is entered in fstab.

Subquestion: Are there any fstab options that would allow me to set permissions (rwx) for a mounted device/folder?

I have repeadly tried changing the permissions for both the device and the folder using chmod, chgrp, chown with no luck (NOTE:I have tried this both before and after mounting).

Don't know if this will help, but i'm using Gentoo, kernel 2.6.11-gentoo-r3.
 
Old 07-09-2005, 09:43 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,740

Rep: Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923Reputation: 5923
You can try the umount -f command to force an unmount but I do not know if it will work with a stale mtab. And now you know to never edit the mtab file.

You haven't provided enough information but if it is a FAT32 filesystem then linux file permissions do not work. Use the umask=000 option in the /etc/fstab file. BTW a search of the website would of discovered the answer in no time flat.
 
  


Reply



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
stale users on AIX 4.3.3 RS/6000 zepplin611 AIX 10 12-21-2009 04:59 AM
Releasing stale NFS Locks Ehuwiko Linux - Software 1 10-24-2004 03:48 PM
Stale NFS file handle toneys Linux - Networking 1 10-24-2004 02:36 PM
Squid - Serving stale pages cli_man Linux - Software 0 12-08-2003 08:45 AM
Stale NFS handle error sumanjay Slackware 0 08-04-2003 09:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 07:51 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
Open Source Consulting | Domain Registration