LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-24-2005, 05:45 PM   #1
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993
Blog Entries: 1

Rep: Reputation: 46
Partition: write access denied


I suddenly lost control over a partition. I was using it to download some data from internet. I manually aborted the download and when I tried to continue it the error message I got informed me I had no rights to write to the destination partition.

I checked fstab.
Code:
/dev/hda6		/mnt/windows/e		vfat	defaults,users,umask=000	0 0
looks fine + has worked ok so far.

just in case I tried to umount and remount, but:
Code:
[linmix@linmix ~]$ umount /dev/hda6
umount: /mnt/windows/e: device is busy
umount: /mnt/windows/e: device is busy
so I tried to kill anything that might be accessing the drive:

Code:
[linmix@linmix ~]$ /sbin/fuser -k /dev/hda6
[linmix@linmix ~]$ umount /dev/hda6
umount: /mnt/windows/e: device is busy
umount: /mnt/windows/e: device is busy
still nothing. Umounting as root gives the same error message.
I could of course reboot, but that's the cheap way out. How do I regain control over my partition?
 
Old 09-25-2005, 02:27 AM   #2
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
you have done very well so far.....a tip in case its simply this...
close down all file managers and consoles or shells that may inadvertely been browsing your target partition then re-run your beautiful commands and see it that makes a diff.

You are correct to assume something is still using it so umount fails.
 
Old 09-27-2005, 05:27 PM   #3
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
This is getting weirder and weirder: after a new clean boot I get the same error message for both hda6 and hda7.

They are both fat partitions which are symlinked into my /home partition (there's one more, but it has no symlinks and is unaffected).

The reason why I tried to umount in the first place was a write problem informed by HTTrack (web copy tool) so I tried to alter fstab to coincide with hda7, which was different due to rw problems with amule (uid=501,gid=501,umask=000,utf8,exec,dev,suid,rw). Since I couldn't umount I had to reboot, but I can now write to hda6 again.

Still, I see no reason why I shouldn't be able to umount a volume with symlinks if those links are not being used - there is only data on those partitions (one for mirrored websites and one for media) and no config files.
 
Old 09-28-2005, 04:58 AM   #4
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
picture this and change the guilty if you agree...

/home/myname/folder link to hda6
/home/myetc/link to hda7

now redo the umount using the true path
umount /home/myname/link to hda6 etc and see if you have better luck?

and for extra luck close down all files that are writing to it and cd out of it so if
pwd......../home/myname/link to hda6 then
cd /
should help
 
Old 09-28-2005, 05:31 PM   #5
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
WIth only a terminal open after a clean boot:

[root@linmix linmix]# umount /home/linmix/websites/
umount: /mnt/windows/e: device is busy
umount: /mnt/windows/e: device is busy

??? (thanks for thinking of something anyway)
 
Old 09-29-2005, 01:10 AM   #6
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
ok if you are still interested.....using root powers edit your /etc/fstab file and delete those windows entries then reboot and now mount them manually.

then redo umount to see if that works.....if it does maybe there is something in your mtab or another program grabbing it like some audio group etc?
 
Old 09-29-2005, 04:58 PM   #7
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
I'll comment them out (just in case) and see what happens - I sure would like to learn what's going on. I'll post the resoults as soon as I get a chance.
 
Old 10-08-2005, 07:11 PM   #8
linmix
Senior Member
 
Registered: Jun 2004
Location: Spain
Distribution: FC5
Posts: 1,993

Original Poster
Blog Entries: 1

Rep: Reputation: 46
tried your suggestion , but haven't ben able to detect any anomlies. Everthing works as expected after reboot. No more trouble, but also no explanation/answer to my questions. pity I couldn't find out. ANyway, as long as everything works again and the problem doesn't come back I suppose I shouldn't complain.
 
  


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
Write access denied in Vi Hockeyfan Linux - Software 2 07-17-2005 12:03 AM
NFS write access denied on one of two filesystems TomF Linux - Security 2 02-23-2005 09:48 PM
Access denied to windows partition. akihandyman Mandriva 6 08-25-2004 03:10 AM
vfat partition access denied demmylls Linux - General 1 01-19-2004 03:09 AM
file permissions on VFAT partition - access denied cevjr Linux - Security 3 09-04-2003 05:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:36 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