LinuxQuestions.org
Help answer threads with 0 replies.
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 03-26-2005, 04:08 PM   #1
alan_the_eagle
LQ Newbie
 
Registered: Mar 2005
Location: Glenrothes, Scotland
Distribution: Red Hat Enterprise
Posts: 3

Rep: Reputation: 0
Can't change ownership of files on windows partition


Hi

I'm running RedHat Enterprise (not sure which version but think it is 9). I have 3 main partitions:-

Windows OS
Data
Linux OS

I have the Data set up as D:\ on Windows and mounted in two locations in Linux. I have it mounted as /mnt/win/d and that works perfectly. I also have it mounted on /home/alan/Data - this works apart from I can't delete anything!

The files are all shown as owner root but chown fails 'changing ownersip of xxx: Operation not permitted'

fstab is as follows, what am I missing - as far as I can see both the mountings are the same.

Thanks!

Alan

====================================================

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0

/dev/hda1 /mnt/win/c ntfs rw,auto,user,umask=0 0 0
/dev/hda5 /mnt/win/d vfat defaults,umask=000 0 0
/dev/hda5 /home/alan/Data vfat defaults,umask=000 0 0
/dev/fd0 /mnt/win/floppy auto noauto,user,rw\t0 0
/dev/sda1 /mnt/win/removable auto noauto,user,rw\t0 0
/dev/hde1 /mnt/win/microdrive auto noauto,user,rw\t0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
 
Old 03-26-2005, 04:23 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
it's not permitted, no.. where do you suppose that information would get held?? fat32 certainly can't handle that sort of information. you need to specifiy the ownership for the *whole* device on mount. everything has the same owner and group.
 
Old 03-26-2005, 04:29 PM   #3
alan_the_eagle
LQ Newbie
 
Registered: Mar 2005
Location: Glenrothes, Scotland
Distribution: Red Hat Enterprise
Posts: 3

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by acid_kewpie
it's not permitted, no.. where do you suppose that information would get held?? fat32 certainly can't handle that sort of information. you need to specifiy the ownership for the *whole* device on mount. everything has the same owner and group.
OK - I see.

But even though the owner is root I can use Nautilus as a user and delete folders that are mounted on /mnt/win/d but not on /home/alan/Data.

These two lines appear to be the same to me:-

/dev/hda5 /mnt/win/d vfat defaults,umask=000 0 0
/dev/hda5 /home/alan/Data vfat defaults,umask=000 0 0

so I don't understand where the difference is coming from.

Alan
 
Old 03-26-2005, 08:57 PM   #4
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
Mounting the same filesystem to two different locations doesn't sound like a good idea. I think what happens is that the second entry in your fstab is automatically mounted read-only because the fileystem is already mounted writeable elsewere and mounting it writeable again might mess up something (just guessing though). Why don't you make /home/alan/Data a symlink pointing to /mnt/win/d?

Last edited by alienDog; 03-26-2005 at 08:59 PM.
 
Old 03-27-2005, 03:35 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
oh blimey.. yeah that's a seriously bad idea. if you really want them accessible in both locations, then just use a symlink found one mountpoint to the other.
 
  


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
moving files from windows partition to linux partition M O L8ingN2dust Linux - Newbie 11 01-08-2006 09:11 PM
sudo: How can i change the ownership of particular files? anoopp Linux - Security 1 03-18-2005 02:03 AM
change ownership on files written by apache/php to maintain effective quotas untoldone Linux - Software 2 01-14-2005 07:18 PM
Couldn't change ownership on a Fat32 partition kt8993 Linux - Security 2 01-09-2005 10:21 AM
How can I access files in my Windows 98 partition from my Linux partition, /w BASH? Fabyfakid Linux - Newbie 4 09-17-2004 11:05 PM


All times are GMT -5. The time now is 05:57 PM.

Main Menu
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