LinuxQuestions.org
Visit the LQ Articles and Editorials section
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

Closed Thread
 
LinkBack Search this Thread
Old 11-21-2005, 04:08 AM   #1
rrrssssss
Member
 
Registered: Mar 2005
Posts: 263

Rep: Reputation: 32
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.
 
Old 11-21-2005, 06:29 AM   #2
mr_demilord
Member
 
Registered: Sep 2005
Posts: 244

Rep: Reputation: 30
You should add user,rw at the mount options from the usb drive in the /etc/fstab file.
 
Old 11-21-2005, 08:26 AM   #3
rrrssssss
Member
 
Registered: Mar 2005
Posts: 263

Original Poster
Rep: Reputation: 32
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
 
Old 11-21-2005, 03:59 PM   #4
burntfuse
Member
 
Registered: Sep 2005
Location: Laurel, MD, USA
Distribution: Slackware 10.1, FC5
Posts: 164

Rep: Reputation: 30
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".
 
Old 11-21-2005, 04:32 PM   #5
purelithium
Member
 
Registered: Oct 2005
Location: Canada
Distribution: Mandriva 2006.0
Posts: 390

Rep: Reputation: 30
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...
 
Old 11-24-2005, 04:52 AM   #6
MasterC
Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 64
Please post follow ups here:
http://www.linuxquestions.org/questi...hreadid=385098
 
  


Closed Thread


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot change ownership jamaso Slackware 11 11-08-2010 11:01 AM
Can't change root ownership of NTFS USB hard drive rrrssssss Mandriva 14 07-10-2006 04:42 PM
Change ownership apffal Suse/Novell 1 11-09-2005 02:08 AM
unable to change ownership arjunjeyaprakash Linux - Newbie 12 09-06-2005 02:02 PM
change ownership Johng Linux - General 4 04-06-2004 02:24 AM


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