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.
|
|
11-21-2005, 04:08 AM
|
#1
|
Member
Registered: Mar 2005
Posts: 288
Rep:
|
I've tried everything - Can't Change Root Ownership of USB HD
Hello forum,
I've reposted this from the hardware section to the newbee section, I hope nobody minds.
After performing a clean install of Mandriva 2006 on a freshly formated partition, one of my USB hard drives (NTFS) has a padlock on its folder meaning that root is the owner of the drive, so I can't view the contents of this hard drive unless I su it or log in the desktop as root. The other USB hard drive (fat32) has no padlock on its folder so I am able to view its contents with no problem. Both of these USB hard drives are mounted in the mnt directory, along with my other devices.
Everytime I make a change in fstab, such as adding unmask 222, it always reverts back to its original state upon reboot. In other words, any changes I make in fstab will not stick. And I am sure I am saving the changes.
I have tried the chmod command in the terminal window, (su) (chmod +rxw, etc.), I get a message saying it can't change the attributes of the drive because it is a read only file system.
I have also tried to change ownership from root to myself by creating a custom rule in msec for this drive, which is supposed to override the system settings, but it does not remove the padlock from this USB hard drive.
So, that is the problem - the owner of this USB hard drive is root and I can't seem to change the owner to myself. If I could change the owner to myself, I'm sure I could then view the contents of this USB hard drive.
I was able to view the contents of this same USB hard drive in Mandriva 10.1(no padlock on the folder) but not Mandriva 2006.
Is anyone in this forum savvy enough to give me a clue as what to do? I
Any help would be greatly appreciated,
Roy S. Smith
Last edited by rrrssssss; 11-21-2005 at 04:42 AM.
|
|
|
11-21-2005, 06:29 AM
|
#2
|
Member
Registered: Sep 2005
Posts: 244
Rep:
|
You should add user,rw at the mount options from the usb drive in the /etc/fstab file.
|
|
|
11-21-2005, 08:26 AM
|
#3
|
Member
Registered: Mar 2005
Posts: 288
Original Poster
Rep:
|
Thanks, Mr_Demilord,
I put that entry in fstab like you said using emacs and saved it, but upon reboot, it was gone.
My fstab file looks like this:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda1 / ext2 defaults 1 1
/dev/hdb5 /home/roy/secondHD ntfs umask=0,nls=iso8859-1,ro 0 0
/dev/hdc /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
/dev/hdd /mnt/cdrom2 auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850 0 0
/dev/hda2 /mnt/win_c ntfs umask=0,nls=iso8859-1,ro 0 0
none /proc proc defaults 0 0
/dev/sdd5 /mnt/USB_HD_80 vfat pamconsole,exec,noauto,codepage=850,iocharset=iso8859-1,managed 0 0
/dev/sdc5 /mnt/USB_HD_250 ntfs pamconsole,exec,noauto,utf8,iocharset=iso8859-1,managed 0 0
/dev/sda1 /mnt/LEXAR_MEDIA vfat pamconsole,exec,noauto,noatime,codepage=850,iocharset=iso8859-1,managed 0 0
Mtab looks like this:
/dev/hda1 / ext2 rw 0 0
none /proc proc rw 0 0
none /proc/bus/usb usbfs rw 0 0
none /sys sysfs rw 0 0
/dev/hdb5 /home/roy/secondHD ntfs ro,umask=0,nls=iso8859-1 0 0
none /mnt/floppy supermount rw,sync,dev=/dev/fd0,fs=ext2:vfat,-- 0 0
/dev/hda2 /mnt/win_c ntfs ro,umask=0,nls=iso8859-1 0 0
/dev/sda1 /mnt/LEXAR_MEDIA vfat rw,nosuid,nodev,noatime,codepage=850,iocharset=iso8859-1,user=roy 0 0
/dev/sdc5 /mnt/USB_HD_250 ntfs rw,nosuid,nodev,utf8,iocharset=iso8859-1,user=roy 0 0
/dev/sdd5 /mnt/USB_HD_80 vfat rw,nosuid,nodev,codepage=850,iocharset=iso8859-1,user=roy 0 0
The problem drive is in the next to the last line, /dev/sdc5. The mtab file has me as the owner, not root, but in the properties / permissions of the device, it shows root as being the owner.
Can anybody offer a solution?
Thanks much in advance,
Roy S. Smith
|
|
|
11-21-2005, 03:59 PM
|
#4
|
Member
Registered: Sep 2005
Location: Laurel, MD, USA
Distribution: Slackware 10.1, FC5
Posts: 164
Rep:
|
From the comment at the top of your fstab file, it looks like it's being generated by some program, maybe one that runs during init? Open a terminal and try "man fstab-sync".
|
|
|
11-21-2005, 04:32 PM
|
#5
|
Member
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390
Rep:
|
Try asking this in the mandriva forum. I've never had this happen to me in mandriva, but then again, I've never had an NTFS usb drive...
|
|
|
11-24-2005, 04:52 AM
|
#6
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
|
|
|
All times are GMT -5. The time now is 09:26 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
|
|