LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-15-2005, 06:35 AM   #1
mabalel
LQ Newbie
 
Registered: Jul 2005
Location: leeds
Distribution: Mandriva 10.1 (2006)
Posts: 6

Rep: Reputation: 0
Mounting external HDD as user


I've just installed Mandriva and have a nagging problem. As ROOT, I can see all my partitions (including windows xp) and read from them. However, this is not possible as USER. I am able to mount but cannot read. I've tried playing aroung with fstab, and a coupla other settings, but this has been fruitless.

Please assist.
 
Old 07-15-2005, 07:24 AM   #2
mgmax
Member
 
Registered: Jul 2005
Distribution: Debian
Posts: 82

Rep: Reputation: 16
Could you post your fstab's relevant entries?

Max
 
Old 07-19-2005, 06:47 AM   #3
mabalel
LQ Newbie
 
Registered: Jul 2005
Location: leeds
Distribution: Mandriva 10.1 (2006)
Posts: 6

Original Poster
Rep: Reputation: 0
Mounting external HDD as user

Thanks for the reply. I've pasted my fstab below and hope you will find it useful in assisting. Interestingly, I CAN read from all my partitions (this includes the partitionn with windows xp plus the 2 partitions on the ext HDD i.e. sda5) as ROOT. As USER, I can not.

# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/hda6 / ext3 noatime 1 1
/dev/hda8 /home ext3 noatime 1 2
/dev/hdc /mnt/cdrom iso9660 user,iocharset=utf8,noauto,ro,exec 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0022,iocharset=utf8,sync 0 0
/dev/hda1 /mnt/win_c ntfs umask=0022,nls=utf8,ro 0 0
/dev/hda5 /mnt/win_d ntfs umask=0022,nls=utf8,ro 0 0
none /proc proc defaults 0 0
/dev/hda7 swap swap defaults 0 0 5 qqqqq c q rqZZ
/dev/sdb1 /mnt/HLE_S-FLASH vfat pamconsole,exec,noauto,noatime,sync,iocharset=utf8,managed 0 0 /dev/sda5 /mnt/HLE2 ntfs pamconsole,exec,noauto,utf8,iocharset=utf8,managed 0 0 0
/dev/sda1 /mnt/HLE1 ntfs pamconsole,exec,noauto,utf8,iocharset=utf8,managed 0 0
 
Old 07-20-2005, 12:39 AM   #4
figfighter
Member
 
Registered: Jun 2005
Distribution: Mandriva LE 2005
Posts: 71

Rep: Reputation: 15
much of this is over my head, but i think i'm having the same problem.

even on other distros i've tried i can see the mounted hard drives and click on the little icons. can't with Mandriva. why?
 
Old 07-23-2005, 06:11 AM   #5
mabalel
LQ Newbie
 
Registered: Jul 2005
Location: leeds
Distribution: Mandriva 10.1 (2006)
Posts: 6

Original Poster
Rep: Reputation: 0
I suspect that it has something to do with the limited file access facilities in the Mandriva kernel, when it comes to accessing NTFS file systems. Any other ideas?
 
Old 07-25-2005, 11:04 AM   #6
moises
Member
 
Registered: Jul 2005
Location: Florida
Distribution: Fedora
Posts: 36

Rep: Reputation: 20
I went in as root and right click>properties and gave read and write rights to user under permissions tab. The problem is that you have to do that with all files in the external hdd individually. If you only do this to the folders only, some of the files in them might not get changed for whatever reason.
 
Old 07-25-2005, 04:16 PM   #7
Maldain
Member
 
Registered: Jan 2005
Posts: 112

Rep: Reputation: 15
Love it when old UNIX solutions can fix a problem

To fix this you open a terminal either while logged in as root or you $ su -
to log into root from another user. Then cd to the directory above the partition's mount point eg:

# cd /mnt

Then issue a recursive chmod command to give read/write permissions to the files and subdirectories.

# chmod -R +r-w ./<mount point of your disk>

That should add read and write abilities for all users to all the files from your disk's mount point on down.
 
Old 07-28-2005, 09:41 AM   #8
mabalel
LQ Newbie
 
Registered: Jul 2005
Location: leeds
Distribution: Mandriva 10.1 (2006)
Posts: 6

Original Poster
Rep: Reputation: 0
Mounting external HDD as USER

I've tried issuing a recursive call - AND FAILED! I get a READ ONLY FILE SYSTEM error message. That explains it! NTFS is automatically mounted with RW rights to ROOT only. The question now is how do I mount/remount so I give RW ability to USER so I am able to view my files (like I can when I log in as ROOT) as USER?
 
Old 07-28-2005, 02:53 PM   #9
Maldain
Member
 
Registered: Jan 2005
Posts: 112

Rep: Reputation: 15
Try unmounting the drive changing the permissions on the mount point. If this is an nsf drive from another computer there are some nsf configs you'd need to do to resolve this issue. I can't remember them but when I dig out my notes on nsf i'll post more.
 
Old 01-19-2006, 10:43 AM   #10
mabalel
LQ Newbie
 
Registered: Jul 2005
Location: leeds
Distribution: Mandriva 10.1 (2006)
Posts: 6

Original Poster
Rep: Reputation: 0
I figured it out in the end! The problem was that my drive was being mounted as read only, which is why each time I tried to chmod (as root) file access rights the error was always "Cannot change file permissions. Read-only file system." If the filesystem is read-only, then obviously you can't write to it to change file permissions in the first place.

Anyway, I've since installed the latest PowerPack (Mandrake) version and that problem is now sorted.
 
Old 01-19-2006, 04:57 PM   #11
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Linux can't write to NTFS partitions, what partitions are did you get it working on?
 
Old 01-20-2006, 04:08 AM   #12
mabalel
LQ Newbie
 
Registered: Jul 2005
Location: leeds
Distribution: Mandriva 10.1 (2006)
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for the post. It was NTFS partitions actually. I didn't know Linux cannot write to these. The problem I was having was that it was mounting them as read-only. As user I was unable to access my external HDD, while trying chmod to change access rights as root failed. What could have been causing this?
 
Old 01-20-2006, 05:03 AM   #13
tkedwards
Senior Member
 
Registered: Aug 2004
Location: Munich, Germany
Distribution: Opensuse 11.2
Posts: 1,549

Rep: Reputation: 52
Quote:
As user I was unable to access my external HDD
Since Linux can't understand Windows permissions it imposes its own permissions on the drive, these are set in the mount options in /etc/fstab. Usually it will default to root only access but you can either add the option umask=0 (or umask=0222 for read only) to give everyone access to the partition. Alternatively use the options uid=yourusername,gid=yourusername to give one particular user (as well as root) access to the partition.

Quote:
while trying chmod to change access rights as root failed
Probably because its read-only, not really sure how chmod is mean to interract with permissions set on drives using fstab options.
 
  


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
Mounting external Firewire NTFS HDD & Permissions Ganza Linux - Newbie 9 11-06-2005 08:39 AM
Mounting External HDD J_K9 Linux - Hardware 41 04-15-2005 05:17 AM
Bootable partion on external HDD? 40 gb firelight hdd. Trebile34 Linux - Hardware 1 03-14-2005 12:50 PM
External USB HDD"Mounting local filesystems: /dev/sdb1 is not a valid block device" manudath Linux - Hardware 3 12-13-2004 10:59 PM
External USB HDD not mounting glk Linux - Hardware 1 01-22-2004 11:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 06:08 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration