LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-14-2006, 09:02 PM   #1
NDR008
Member
 
Registered: Nov 2006
Location: (Bristol or Coventry) (UK) or Malta
Distribution: openSUSE 11.0
Posts: 173

Rep: Reputation: 30
Remounting NTFS drives


Hi, i have 2 HDDs, 1 internal on my laptop with an NTFS partition for windows, and the rest for linux.
And also a USB HDD with 1 NTFS partition and 1 FAT32 partition.

Now previously I had installed suse on my USB drive, and all drives were mounted automatically during installation.

This time I did an expert installation, and forgot to do the mounting of the NTFS drives.

So I did so via YaST2 Partioner, and editing the mount point name as follows:
/dev/sdb1 /windows/D ntfs users,gid=users,umask=0002,nls=utf8 0 0
/dev/sdb5 /windows/E vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/sda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0

yet only the FAT32 driver is mounting itself properly, when I try to access /windows/C or /windows/D i am told Permission denied. I am sure it is something to do with how I am mounting them, as I am sure openSUSE can mount NTFS drivers - at least in read only.

*EDIT I am almost sure it has to do with permissions, coz I can access the partitions as root. Which of the above perameters set the user access? Coz i can't understand why I can access the FAT32 one and not the NTFS when I used the same method to mount them...

Last edited by NDR008; 11-14-2006 at 09:05 PM.
 
Old 11-15-2006, 02:02 AM   #2
asquante
Member
 
Registered: Nov 2006
Location: horten, norway
Distribution: gentoo / slackware / suse / red hat
Posts: 30

Rep: Reputation: 15
Check what groups your regular user is in.

mARGO
 
Old 11-15-2006, 04:01 AM   #3
NDR008
Member
 
Registered: Nov 2006
Location: (Bristol or Coventry) (UK) or Malta
Distribution: openSUSE 11.0
Posts: 173

Original Poster
Rep: Reputation: 30
The problem is not from the users side, because even when logged as root, I cannot change the permissions of the folder.
 
Old 11-15-2006, 04:03 AM   #4
asquante
Member
 
Registered: Nov 2006
Location: horten, norway
Distribution: gentoo / slackware / suse / red hat
Posts: 30

Rep: Reputation: 15
Don't think you can change permissions of a folder residing on NTFS drive.
Are the drives listed with "user" option in your /etc/fstab?

mARGO
 
Old 11-15-2006, 04:25 AM   #5
NDR008
Member
 
Registered: Nov 2006
Location: (Bristol or Coventry) (UK) or Malta
Distribution: openSUSE 11.0
Posts: 173

Original Poster
Rep: Reputation: 30
ehhhhhhh the problem is that I cannot even read the files mounted on these partitions unless i am as root.
/dev/sda6 / ext3 defaults 1 1
/dev/sda5 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/sdb1 /windows/D ntfs ro,users,gid=users,umask=0222,nls=utf8 0 0
/dev/sdb5 /windows/E vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/sda1 /windows/C ntfs ro,users,gid=users,umask=0222,nls=utf8 0 0

that is my complete fstab
 
Old 11-15-2006, 04:28 AM   #6
asquante
Member
 
Registered: Nov 2006
Location: horten, norway
Distribution: gentoo / slackware / suse / red hat
Posts: 30

Rep: Reputation: 15
You should use "user", not "users" as mount option. Try that.

mARGO
 
Old 11-15-2006, 06:26 AM   #7
NDR008
Member
 
Registered: Nov 2006
Location: (Bristol or Coventry) (UK) or Malta
Distribution: openSUSE 11.0
Posts: 173

Original Poster
Rep: Reputation: 30
I chose the unprofessional way to fix it, and just re-installed everything.
but i still have one problem.
/dev/sda1 /windows/C ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sdb1 /windows/D ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/sdb5 /windows/E vfat users,gid=users,umask=0002,utf8=true 0 0

/dev/sda1 mounts itself on boot
/dev/sdb1 and /dev/sdb5 need to be mounted after logging in - can i set them to self mount as well? the fstab details look the same...

could it be related to another file - mtab? (what is it anyway?), mtab seems similar:
/dev/sda1 /windows/C ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0
securityfs /sys/kernel/security securityfs rw 0 0
/dev/sdb5 /windows/E vfat rw,noexec,nosuid,nodev,gid=100,umask=0002,utf8=true 0 0
/dev/sdb1 /windows/D ntfs ro,noexec,nosuid,nodev,gid=100,umask=0002,nls=utf8 0 0

Last edited by NDR008; 11-15-2006 at 06:28 AM.
 
Old 11-17-2006, 06:17 AM   #8
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
mtab just holds a list of the successfully mounted partitions and their mount parameters. Try it out and list it before and after you (u)mounted something by hand...

For the rest, can't see the reason for this either...
 
  


Reply



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
where are my NTFS c: and FAT32 D: drives riba43 SUSE / openSUSE 21 11-27-2006 12:17 AM
Writing to NTFS drives? ulysses1916 Linux - General 6 05-23-2006 11:26 PM
Viewing NTFS hard drives in RH 9.0 partyk1d24 Linux - Newbie 2 09-09-2005 06:36 PM
Debian seeing NTFS drives waynevnc Linux - Newbie 2 06-15-2004 09:02 AM
Accessing my ntfs drives Cheese Linux - Software 2 12-02-2001 02:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 06:30 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
Open Source Consulting | Domain Registration