Accessing NTFS drives without being propted for a password

Dear All,

I use OpenSuse 11.2 and Windows XP. After booting to OpenSuse, I can see NTFS drives are mounted but I am always being asked for a password to access them. Is it possible to access NTFS drives without typing a password? The reason is I created links referring to folders and files stored on the NTFS drives. The links become inactive after booting to Linux though.

Show your /etc/fstab, thus everybody can see what is mounted, how and where.

Le 25/04/2010 13:46, hcvv a écrit :
>
> Show your -/etc/fstab-, thus everybody can see what is mounted, how and
> where.
>
>
?
better show the result of the “mount” or “df” command!

jdd

openSUSE installer by default sets mounts in fstab for NTFS partitions that allow read access for everyone but write access for root only. That might be the problem, if it is then you need to change the mount information for the NTFS partitions in fstab from like this:
/dev/disk/by-id/blah_blah-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0

to like this
/dev/disk/by-id/blah_blah-part1 /windows/C ntfs-3g defaults 0 0

Reference: HowTo Mount NTFS Filesystem Partition Read Write Access in openSUSE

I would go for mount then (giving the actual mount situation) and not for df (does not tell the fs type and mount parameters and thus we have to guess which one we are talking about).

The /etc/fstab info as follows:

/dev/disk/by-id/ata-ST3120026A_5JT4AN43-part3 swap swap defaults 0 0
/dev/disk/by-id/ata-ST3120026A_5JT4AN43-part4 / ext4 acl,user_xattr 1 1
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

@xmartim1

Please post result of this from su terminal

fdisk -l

If you can. Identify the partition you want to do this with. There may only be the one, but sometimes users have a plethora of ntfs partitions and it’s easier if we don’t have to take a stab at it.:wink:

This means these NTFS partitions are not mounted at boot. Are they partitions on your ‘internal disk’ or are they connected later using USB?

And yes, the output of

mount

will be very interesting.

BTW please put your computer output between CODE tags, then the lay-out will be preserved. Much easier to read.

fdisk -l

Device Beginning End Blocks Id System
/dev/sda1 1 3318 26651803+ 7 HPFS/NTFS
/dev/sda2 3319 11900 68934915 f W95 (LBA)
/dev/sda3 11901 12149 2000092+ 82 Linux swap/Solaris
/dev/sda4 * 12150 14593 19631430 83 Linux
/dev/sda5 3319 11900 68934883+ 7 HPFS/NTFS

mount

/dev/sda4 on / type ext4 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
/proc on /var/lib/ntp/proc type none (ro,bind)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sda5 on /media/DATA-1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda1 on /media/SYSTEM-1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)

Hope the output looks better now.


/dev/sda1               1        3318    26651803+   7  HPFS/NTFS
/dev/sda2            3319       11900    68934915    f  W95 Rozš. (LBA)
/dev/sda3           11901       12149     2000092+  82  Linux swap/Solaris
/dev/sda4   *       12150       14593    19631430   83  Linux
/dev/sda5            3319       11900    68934883+   7  HPFS/NTFS


/dev/sda4 on / type ext4 (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
securityfs on /sys/kernel/security type securityfs (rw)
/proc on /var/lib/ntp/proc type none (ro,bind)
rpc_pipefs on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
/dev/sda5 on /media/DATA-1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096)
/dev/sda1 on /media/SYSTEM-1 type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096

Please tell us, is it sda1 or sda5 you want to access or both?
Also do you use kde or gnome?

I use KDE and would like to access sda5.

(On Windows, I have the C drive where Windows is installed and on the D drive I have the data stored. The sda5 partition corresponds to the D drive.)

In a su terminal do this

mkdir /data

close that terminal and open a regular one and do this

kdesu kwrite /etc/fstab


edit your file to look like this

/dev/disk/by-id/ata-ST3120026A_5JT4AN43-part3  swap                 swap       defaults              0 0
/dev/disk/by-id/ata-ST3120026A_5JT4AN43-part4 /                    ext4        acl,user_xattr        1 1
/dev/sda5 /data ntfs-3g 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

see the line I added
save and then reboot

your sda5 will mount to /data
navigate to /data in dolphin and then add it to places

Works great! Thank you a lot for your help.

No problem - Enjoy;)

Le 25/04/2010 17:16, caf4926 a écrit :

> save and then reboot

mount -a

should be enough :slight_smile:

jdd