accessing NTFS on Win 7 partion

I am not sure if this is the right place to ask, but I am trying to find out how I can modify forms on my Windows partion. I am running a dual boot with Win 7 and Open Suse 11.2. I can access and read the NTFS files but can not change them or add to the Win 7 Part:confused:ion. How do I change ownership and permissions so that I can work on them from Open Suse 11.2:’(

Hi,

Could you please open a terminal and provide the output of:

fdisk -l

Also, which version of openSUSE are you using, and which DE (KDE, GNOME, etc.)?

Take Care,

Ian

It is not recommended to modify NTFS. YOu can casue damage if the NTFS file system is “dirty”. That is why by default it is mounted read only.

Mounting is controlled by a file /etc/fstab. You must be root to edit it. (DO NOT LOG INTO A GUI AS ROOT EVER!) become root in a console and start yuor editor

I can not give more exact instruction with out seeing your file and know which GUI you use.

cat /etc/fstab

gogalthorp, you can use Yast Partitioner to edit this file. And, if the NTFS file system is “dirty” it won’t mount the dirty NTFS file system. At least that’s how it is in KDE (should be no different in GNOME).

Take Care,

Ian

Well that is the rational for mounting by default as RO. And we hope that a dirty NTFS would not mount but I do believe you can force it.

I forgot about Yast. LOL But it would still be useful to see the fstab to see the mount parameters before proceeding

ijbreakey: here is the result of fdisk -l, and I am running OpenSuse 11.2, Gnome;

nitewalker@linux-t0va:~> su
Password:
linux-t0va:/home/nitewalker # fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe7e8e0a0

Device Boot Start End Blocks Id System
/dev/sda1 1 26 203776 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 12184 97663180 7 HPFS/NTFS
/dev/sda3 37331 38914 12709888 7 HPFS/NTFS
/dev/sda4 * 12185 37330 201985245 f W95 Ext’d (LBA)
/dev/sda5 12185 19732 60621277 7 HPFS/NTFS
/dev/sda6 30033 37330 58621153+ 7 HPFS/NTFS
/dev/sda7 19732 19993 2104483+ 82 Linux swap / Solaris
/dev/sda8 19994 22604 20972826 83 Linux
/dev/sda9 22605 30032 59665378+ 83 Linux

Partition table entries are not in disk order
linux-t0va:/home/nitewalker #

Also post what gogalthorp asked for:

cat /etc/fstab

This will hopefully let us see which partition is Windows 7.

Take Care,

Ian

ijbreakey: here is the results of cat /etc/fstab

nitewalker@linux-t0va:~> cat /etc/fstab
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part7 swap swap defaults 0 0
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part8 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part9 /home ext4 acl,user_xattr 1 2
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part2 /windows/D ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part3 /windows/E ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part5 /windows/F ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part6 /windows/G ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 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
nitewalker@linux-t0va:~>

ijbreakey: the windows partition that has the files I need to access is /dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part5 /windows/F ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe7e8e0a0

Device Boot Start End Blocks Id System
/dev/sda1 1 26 203776 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 26 12184 97663180 7 HPFS/NTFS
/dev/sda3 37331 38914 12709888 7 HPFS/NTFS
/dev/sda4 * 12185 37330 201985245 f W95 Ext’d (LBA)
/dev/sda5 12185 19732 60621277 7 HPFS/NTFS
/dev/sda6 30033 37330 58621153+ 7 HPFS/NTFS
/dev/sda7 19732 19993 2104483+ 82 Linux swap / Solaris
/dev/sda8 19994 22604 20972826 83 Linux
/dev/sda9 22605 30032 59665378+ 83 Linux

Partition table entries are not in disk order

A sure fire way would be to edit the /etc/fstab file and change your ntfs mounts to this:

/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part7 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part8 /                    ext4       acl,user_xattr        1 1
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part9 /home                ext4       acl,user_xattr        1 2
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part1 /windows/C           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part2 /windows/D           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part3 /windows/E           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
*/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part5 /windows/F           ntfs-3g    users,gid=users,fmask=133,**dmask=002**,locale=en_US.UTF-8 0 0*
/dev/disk/by-id/ata-ST9320325AS_5VD1SVBY-part6 /windows/G           ntfs-3g    users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 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

Alternatively, you can open Yast Partitioner and click on your sda drive. Click edit on the ntfs partition (sda5) (make sure it’s not formating the drive) and you’ll see at the bottom it has the fstab entry. Erase everything and just type

defaults

then click ok and accept the changes. Reboot and you should be good to go!

Take Care,

Ian

Edit: Now it should show which partition you need to change and what to change

Posted the instructions and you had posted while I was typing them. Then only do what I told you to do for the Windows 7 Partition.

Take Care,

Ian

Edit: Modified the first post to reflect the new information

ijbreakey;
All works well, thanks for your assistance it is really appreciated:)

Glad to see you got it working :slight_smile:

If you need write access to any of the other ntfs partitions you can do the same with them. Just change dmask=022 to dmask=002.

Take Care,

Ian