Access NTFS files

I have just installed Suse 11 this week, and am an Open Suse newbie. At first, my NTFS partition was listed by Yast as Windows/C and something like 20 MB. It is an 18 GB partition, but had Boot and Grub installed in that small section, perhaps from Windows XP originally being on this partition.

I read the post about ntfs-3g being installed by default and edited etc/fstab. It only had the small portion mounted as /dev/disk/by-id … -part3 /windows/C vfat …
I changed the “vfat” to “ntfs-3g”. The user,gid, etc were the same as recommended, so I did not change them

Now, Yast shows this partition as 18 GB, but still as vfat instead of ntfs. I suspect that this mount condition comes from Boot or Grub, but have no idea where to look.

I appreciate any suggestions.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Maybe I’m insane, but are you sure your windows partition is ntfs? I
don’t think ‘vfat’ will work with NTFS (even read-only) and would be
surprised if that was wrong. Can you get the following output run as
‘root’:

fstab -l

Good luck.

jr4902 wrote:
> I have just installed Suse 11 this week, and am an Open Suse newbie. At
> first, my NTFS partition was listed by Yast as Windows/C and something
> like 20 MB. It is an 18 GB partition, but had Boot and Grub installed in
> that small section, perhaps from Windows XP originally being on this
> partition.
>
> I read the post about ntfs-3g being installed by default and edited
> etc/fstab. It only had the small portion mounted as /dev/disk/by-id …
> -part3 /windows/C vfat …
> I changed the “vfat” to “ntfs-3g”. The user,gid, etc were the same as
> recommended, so I did not change them
>
> Now, Yast shows this partition as 18 GB, but still as vfat instead of
> ntfs. I suspect that this mount condition comes from Boot or Grub, but
> have no idea where to look.
>
> I appreciate any suggestions.
>
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIuJxe3s42bA80+9kRArYHAJ9JP8Wf3+ybPn9sjBNMP+aHMnmVMwCeKDIb
sbxhKpSEPNojOrPEmsbj1uU=
=N/sR
-----END PGP SIGNATURE-----

Thanks for your quick reply.

fstab:

/dev/disk/by-id/scsi-SATA_Maxtor_91080D5_A50BLDHC-part6 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_WDC_WD400BB-75FWD-WMAJF1062198-part5 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_WDC_WD400BB-75FWD-WMAJF1062198-part2 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_Maxtor_91080D5_A50BLDHC-part1 /local ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_Maxtor_91080D5_A50BLDHC-part5 /tmp ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_WDC_WD400BB-75FWD-WMAJF1062198-part3 /windows/C ntfs-3g user,users,gid=users,umask=0002,utf8=true 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0

I no longer have a windows OS (I installed OpenSuse where Windows XP used to be), but do still have this one partition with Windows files. I have no idea where vfat comes from; I assumed it was a carry over from the windows partition.

P.S. I typed “fstab -l” and “/etc/fstab -l” but received “command not known”. Are you using something other than a small l?

I just remembered this from a previous post I read:

fdisk -l:

Disk /dev/sda: 40.0 GB, 40000000000 bytes
255 heads, 63 sectors/track, 4863 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x77d821bb

Device Boot Start End Blocks Id System
/dev/sda1 2 853 6843690 f W95 Ext’d (LBA)
/dev/sda2 854 2422 12602992+ 83 Linux
/dev/sda3 * 2423 4862 19599300 7 HPFS/NTFS
/dev/sda5 2 853 6843658+ 83 Linux

Disk /dev/sdb: 10.8 GB, 10800857088 bytes
255 heads, 63 sectors/track, 1313 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xfb00fb00

Device Boot Start End Blocks Id System
/dev/sdb1 1 973 7815591 83 Linux
/dev/sdb2 974 1313 2731050 5 Extended
/dev/sdb5 974 1213 1927768+ 83 Linux
/dev/sdb6 1214 1313 803218+ 82 Linux swap / Solaris

Hope this is what you were looking for.

Hi
I think ab might have meant fdisk :slight_smile:


sudo /sbin/fdisk -l


Cheers Malcolm °¿° (Linux Counter #276890)
openSUSE 11.0 x86 Kernel 2.6.25.11-0.1-default
up 2 days 10:59, 3 users, load average: 0.00, 0.04, 0.17
GPU GeForce 6600 TE/6200 TE - Driver Version: 173.14.12

fdisk -l shows this for sda3, the partition in question:

/dev/sda3 * 2423 4862 19599300 7 HPFS/NTFS

It’s about 20 Gb. To make that read-write access you change this in fstab:

/dev/disk/by-id/scsi-SATA_WDC_WD400BB-75FWD-WMAJF1062198-part3 /windows/C ntfs-3g user,users,gid=users,umask=0002,utf8=true 0 0

to this:

/dev/sda3 /windows/C ntfs-3g defaults 0 0

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ha… yeah… that’s what I get for typing with my hands and talking
with my mouth about unrelated things at the same time. Doh!

Good luck.

Malcolm wrote:
>

> Hi
> I think ab might have meant fdisk :slight_smile:
>


> sudo /sbin/fdisk -l
> 

>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIuL2D3s42bA80+9kRAgorAKCKSvQWpm+OO1iFqb8ZHiji2xMb1wCeOIB7
Q0whEuQSJqBqx9vHIkrdm3k=
=TIFA
-----END PGP SIGNATURE-----

Thanks for the help. Unfortunately, the only change is fstab which now reads:
/dev/disk/by-id/scsi-SATA_Maxtor_91080D5_A50BLDHC-part6 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_WDC_WD400BB-75FWD-WMAJF1062198-part5 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_WDC_WD400BB-75FWD-WMAJF1062198-part2 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_Maxtor_91080D5_A50BLDHC-part1 /local ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_Maxtor_91080D5_A50BLDHC-part5 /tmp ext3 acl,user_xattr 1 2
/dev/sda3 /windows/C 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
devpts /dev/pts devpts mode=0620,gid=5 0 0

I re-booted the computer twice, but My Computer still shows this:
Disk Information
Device Filesystem Total space Available space

/local ext3 7.3 GB 6.8 GB
526.5 MB
/tmp ext3 1.8 GB 1.7 GB
137.1 MB
vfat 18.7 GB

/ ext3 6.4 GB 3.7 GB

Still puzzled

Me too. Something’s wrong with the filesystem or partition table. Tell us, what’s the history of that ntfs/vfat partition and what’s on it.

When I installed Windows XP on this drive about 4 years ago, I split the drive into 2 partitions, each about 20 GB. The first partition had Windows XP and all software applications; the other partition (now showing as vfat and/or ntfs) has everything else - a mix of pictures, music files and MS Word files, but in separate directories. This partition has not been changed during those 4 years. (The other one has been re-formatted a few times because Windows Registry was cluttered, or had a virus; then I switched to Xubuntu for a few months, and now to OpenSuse).

Thanks again for your prompt reply.

OK I suppose you can still access the puzzling partition as a drive in windows xp. What does windows think it is at this time in: drive icon → R-click → properties → filesystem (ntfs or fat32)?

I no longer have Windows installed, so I tried using the Windows XP install CD which showed it as Fat.

That would have been a good time to quit, but I went one more step. I intended to install windows onto my slave drive to see whether I could view any of the files on the puzzling partition; deleted that existing partition on the slave drive, had the installer format it as ntfs, and hit enter for Windows to install there. It chose to begin to format the puzzling partition instead. I immediately hit abort, but it was too late!

Then I attempted to re-boot into OpenSuse but couldn’t because the boot and Grub files had been on the puzzling partition (as I said in my first post). I could have spent time reading threads to find out how to repair/install those files, but since this is a new installation I just re-installed OpenSuse.

In retrospect, I obviously gave the OpenSuse installer permission to read and write to that ntfs partition during installation setup; not sure why it chose to install the boot and Grub files there, but then no longer provided access to that partition.

For other users, I would suggest caution in giving the installer access to ntfs partitions. Can that rw permission be added after the installation is complete?

I know how you feel. It’s a.m. here and I just powered on my computer. My old faithful 500Gb storage drive is sitting there making rrrrrp rrrrrp rrrrrp noises and refusing to start – so that’s all in jeopardy now. I’ll make coffeee and try the three-thumps-hard method of starting it and then leave it on until I can buy a new drive.

Yes you can choose to prevent any or all windows partiions from being included in the mounting/s when you install openSUSE. And add mounts later at your leisure and in the style you prefer. Here’s a tutorial on the various options:
NTFS: HowTo Mount NTFS Filesystem Partition Read Write Access in openSUSE 10, 11
FAT (needs update for 11.0): Suse: HowTo set disk access permissions for Fat32 (VFAT) on a desktop PC