Fedora Linux Support Community & Resources Center
  #1  
Old 31st January 2007, 04:12 PM
fedora1968 Offline
Registered User
 
Join Date: Jan 2007
Location: Houston, Texas
Posts: 14
Question Cannot change owner

My computer has two HDDs. The first one is used for Windows. And the second one for Fedora. In order to swap data between windows and fedora, I created a partition /data (vfat, 50GB) on the second HDD when I installed fedora. Now I can access /data from Windows (it is disk K:, in my case). When running fedora, I can read the file in /data but I cannot write to it. Its permission is drwxr-xr-x and the owner is root. I tried to change it permission to rwxrwxrwx but failed. Then I try to change its owner but still failed.

Does any one know how to solve this problem? Thanks a lot.

My system is :

CPU AMD 64 x2 3800+
RAM 2GB
1st HDD 250GB
2nd HDD 160GB
Reply With Quote
  #2  
Old 31st January 2007, 04:32 PM
mnisay Offline
Registered User
 
Join Date: May 2005
Location: PH
Posts: 696
try to search the forum with the keyword

NTFS

the result will lead you to a starting point.

its not advisable to have your window$ drive WRITEABLE!
but it is possible.

goodluck!
Reply With Quote
  #3  
Old 31st January 2007, 08:28 PM
fedora1968 Offline
Registered User
 
Join Date: Jan 2007
Location: Houston, Texas
Posts: 14
Thanks for the reponse and the information, mnisay.

I read some posts about sharing disk between linux(fedora) and windows. One method is mount the windows disk to a directory of linux(fedora).

I think I did not express myself clearly. I have two HDD, say hda and hdb. hda is used for windows completely. I install fedora on hdb and I ceated a 50GB vfat partition on hdb. This partition is "dev/hdb2". It is the directory "/data" in fedora and windows treates it disk K. Fedora cannot access hda, which is totally for windows. And this is what I planned.

My problem is, I cannot write to "/data" unless I login as root. I created this partition during fedora installation. I want change its owner. But I was told permission denied. In my opintion, the root can do anything. But I cannot understand why I cannot change the owner of "/data".

Thanks
Reply With Quote
  #4  
Old 31st January 2007, 08:39 PM
nick.stumpos Offline
Registered User
 
Join Date: Feb 2005
Location: Lansing, Mi
Age: 30
Posts: 2,222
check your fstab and make sure its being mounted with read write perms.
__________________
As always
Love, Life, Loyalty, Wisdom, Knowledge, And Understanding
FC6: Common Questions answered
Reply With Quote
  #5  
Old 1st February 2007, 03:58 PM
mnisay Offline
Registered User
 
Join Date: May 2005
Location: PH
Posts: 696
try to post your results from

#cat /etc/fstab
#fdisk -l
#uname -a
#rpm -qa | grep ntfs

i have a feeling it was mounted as read-only.
Reply With Quote
  #6  
Old 1st February 2007, 05:08 PM
fedora1968 Offline
Registered User
 
Join Date: Jan 2007
Location: Houston, Texas
Posts: 14
Thanks Nickisgod1 and mnisy. The computer is in my home. I will try what you suggest this evening.
Reply With Quote
  #7  
Old 1st February 2007, 06:27 PM
markkuk Offline
Registered User
 
Join Date: Apr 2005
Location: Finland
Posts: 5,075
Quote:
Originally Posted by fedora1968
I install fedora on hdb and I ceated a 50GB vfat partition on hdb. This partition is "dev/hdb2". It is the directory "/data" in fedora and windows treates it disk K.

My problem is, I cannot write to "/data" unless I login as root. I created this partition during fedora installation. I want change its owner. But I was told permission denied. In my opintion, the root can do anything.
Even root can't do what's physically impossible. There isn't any file ownership information on VFAT filesystems, so you can't change the non-existent data.
Reply With Quote
  #8  
Old 3rd February 2007, 09:22 PM
fedora1968 Offline
Registered User
 
Join Date: Jan 2007
Location: Houston, Texas
Posts: 14
mnisay,
The following is the information you need to solve my problem:

#cat /etc/fstab

/dev/VolGroup00/LogVol00 / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
/dev/hdb2 /data vfat defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0
/dev/VolGroup00/LogVol01 swap swap defaults 0 0

# fdisk -l

Disk /dev/hda: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 530 30400 239938807+ 7 HPFS/NTFS
/dev/hda2 1 529 4249161 b W95 FAT32

Partition table entries are not in disk order

Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 13 104391 83 Linux
/dev/hdb2 14 13067 104856255 b W95 FAT32
/dev/hdb3 13068 19457 51327675 8e Linux LVM

#uname -a

Linux localhost.localdomain 2.6.18-1.2798.fc6xen #1 SMP Mon Oct 16 14:59:01 EDT 2006 x86_64 x86_64 x86_64 GNU/Linux


#rpm -aq | grep ntfs
Reply With Quote
  #9  
Old 4th February 2007, 07:58 AM
mnisay Offline
Registered User
 
Join Date: May 2005
Location: PH
Posts: 696
i cant try the latest vfat modules for fc6 right now. but it should work i believe.

Is it possible for you to convert /data to NTFS filesystem under your Windows?

If so, the below are tested under my systems and is currently working right now.
after NTFS convertion, just shutdown your windows properly, then go to FC6, issue

#yum install ntfs-3g

reboot. mount your shared drive as

#mount /dev/hda2 /data

walahito! no need to change ownership, you can now read/write to your /data.
this may somehow upgrade your kernel though.

make it permanent with /etc/fstab, edit the lines with vfat and change them to ntfs like so

/dev/hdb2 /data ntfs defaults 0 0

happy linux ntfs!
Reply With Quote
Reply

Tags
change, owner

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Who is the right owner for hardware? ezzetabi Using Fedora 1 18th April 2006 06:28 PM
permanent change of owner for /dev/hdc Flo Using Fedora 4 2nd March 2005 09:00 PM
change folder owner(many folders/files) elian85 Using Fedora 5 28th December 2004 07:24 PM


Current GMT-time: 11:12 (Saturday, 25-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Meskiana Photos on Instagram - Birpara Instagram Photos - Abu Tij Travel Photos on Instagram