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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-26-2005, 05:08 PM
|
#1
|
LQ Newbie
Registered: Mar 2005
Location: Glenrothes, Scotland
Distribution: Red Hat Enterprise
Posts: 3
Rep:
|
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
|
|
|
03-26-2005, 05:23 PM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
03-26-2005, 05:29 PM
|
#3
|
LQ Newbie
Registered: Mar 2005
Location: Glenrothes, Scotland
Distribution: Red Hat Enterprise
Posts: 3
Original Poster
Rep:
|
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
|
|
|
03-26-2005, 09:57 PM
|
#4
|
Member
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505
Rep:
|
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 09:59 PM.
|
|
|
03-27-2005, 04:35 AM
|
#5
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
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.
|
|
|
All times are GMT -5. The time now is 06:02 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|