Can't see content of NTFS partition

I think it is mounted and it was accessible but after the first restart a cant access the files. My question is how to make the files accessible and my second question is what I have to install for to be able to write on NTFS partition.


linux-5emn:/home/scanman # fdisk -l

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xc82a983b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        8307    66725919+   7  HPFS/NTFS
/dev/sda2            8308       10857    20480000   83  Linux
/dev/sda3           10857       13821    23809247    f  W95 Ext'd (LBA)
/dev/sda4           13823       14593     6193057+   7  HPFS/NTFS
/dev/sda5           10857       11119     2097399+  82  Linux swap / Solaris
/dev/sda6           11119       12242     9028498+  83  Linux
/dev/sda7           12243       13821    12683286   83  Linux

If you want to have writable permission on NTFS partition, please install ntfs-3g package and edit your /etc/fstab as following example

/dev/sda1 /data ntfs-3g defaults,locale=en_US.utf8 0 0

I have changed the line you mentioned but with no result - I still can see the disk but not the files on it. Here is my original /etc/fstab
/dev/disk/by-id/scsi-SATA_FUJITSU_MHY2120K410T7B2FBKY-part5 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_FUJITSU_MHY2120K410T7B2FBKY-part6 / ext3 acl,user_xattr 1 1
/dev/disk/by-id/scsi-SATA_FUJITSU_MHY2120K410T7B2FBKY-part7 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_FUJITSU_MHY2120K410T7B2FBKY-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_US.UTF-8 0 0
/dev/disk/by-id/scsi-SATA_FUJITSU_MHY2120K410T7B2FBKY-part4 /windows/D 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
devpts /dev/pts devpts mode=0620,gid=5 0 0

someone knows how to see the files on NTFS - I see the partition but not the files

plamenpenchev schrieb:
> someone knows how to see the files on NTFS - I see the partition but not
> the files

Well, normally the answer is: just mount it and you’ll see them. But
obviously on your system that doesn’t work as it should, otherwise you
probably wouldn’t post that question.

Has the partition been mounted correctly? What do the “mount” and “df”
commands display?

Hello, I have the same problems. I have the partition mounted at boot, it seems as though it works, however, there are no files! I tried to later mount the partition to a different location and it does not remedy the problem. Here is a session that may provide clues (note: this is after changing the mount point from /dos to /media/dos in the fstab file and remounting using “sudo mount -a”):

jb@niks:~$ uname -a
Linux niks 2.6.27-9-generic #1 SMP Thu Nov 20 21:57:00 UTC 2008 i686 GNU/Linux

jb@niks:~$ls /media/dos/
ls: reading directory /media/dos/: Input/output error

jb@niks:~$ls /dos/
ls: reading directory /media/dos/: Input/output error

jb@niks:~$ cat /etc/fstab

/etc/fstab: static file system information.

– This file has been automaticly generated by ntfs-config –

<file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0

Entry for /dev/sda3 :

UUID=95cc0f9a-53a9-4cc4-ac90-8eb6778dd1d7 / ext3 relatime,errors=remount-ro 0 1

Entry for /dev/sda2 :

UUID=A0F2DB9FF2DB77CC /media/dos ntfs-3g defaults,umask=007,gid=46 0 1

Entry for /dev/sda1 :

UUID=bf8d5297-7d75-404c-8235-6bd199e522bf none swap sw 0 0

jb@niks:~$ sudo fdisk -l

Disk /dev/sda: 128.0 GB, 128035676160 bytes
255 heads, 63 sectors/track, 15566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x4410aece

Device Boot Start End Blocks Id System
/dev/sda1 1 516 4144738+ 82 Linux swap / Solaris
/dev/sda2 * 517 12894 99426285 7 HPFS/NTFS
/dev/sda3 12895 15566 21462840 83 Linux

jb@niks:~$ mount
/dev/sda3 on / type ext3 (rw,relatime,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
/proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,nosuid,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
lrm on /lib/modules/2.6.27-9-generic/volatile type tmpfs (rw,mode=755)
/dev/sda2 on /dos type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/jfb/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=jfb)
/dev/sda2 on /media/dos type fuseblk (rw,nosuid,nodev,allow_other,default_permissions,blksize=4096)

jb@niks:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda3 21125524 4949608 15102776 25% /
tmpfs 1536272 0 1536272 0% /lib/init/rw
varrun 1536272 216 1536056 1% /var/run
varlock 1536272 0 1536272 0% /var/lock
udev 1536272 2840 1533432 1% /dev
tmpfs 1536272 104 1536168 1% /dev/shm
lrm 1536272 2000 1534272 1% /lib/modules/2.6.27-9-generic/volatile
/dev/sda2 99426280 31598812 67827468 32% /dos
/dev/sda2 99426280 31598812 67827468 32% /media/dos

Was there ever a solution to this? I am running into the same problem with two drives.

Setup sees the NTFS drives fine–even detects the partition names correctly. I let it set to write the appropriate fstab lines using the ntfs-3g driver. However, when I boot up, the generated /windows/<drive letter> locations are empty. Both drives are 1TB (formatted to 931GB), and properties in Gnome show 15.7GB free on both. There is data on them, one having a number of files, the other having a backup file of those.

Getting this working is step one to a larger project. Next will be getting an nVidia RAID set on NTFS recognized as well so I can copy files to the drives currently in question.

You need to ensure both drives are shut down properly under Windows. Do not hibernate windows. It must be a proper shut down.

Also, you may need to run a “chkdsk /f” on those partitions, in case they are not clean.

Only if not hibernated (but shutdown properly) and if clean, will they be observable.

Also, its important they are listed in your /etc/fstab to be mounted.

Please, when running openSUSE Linux, provide the output of running:
cat /etc/fstab
df -Th
su -c ‘fdisk -l’
#enter root password when prompted for a password

I can not help you with raid, as I know nothing about it.

Bleh. Didn’t want to hear that. The whole reason I’m going through this is my Windows OS drive crashed overnight–no clean shutdown. Now I can’t get it to recognize a replacement drive–but openSUSE will happily set up on the very same drive. This is an attempt at and end run around the Windows install problem. Maybe I need to take the drives to another PC & get them booted up on it & do a clean shutdown.

I have been poking at it & got mount to at least return an error instead of just a help screen. In su I tried “mount -t ntfs-3g /dev/hdd /mnt/windrive” and get back “Error opening ‘/dev/hdd’: No medium found”. Which seems odd since it’s recognized the drive & partition. I can see under the /dev/by-id the drive and the partition. Also it finds the Windows partition names and stores those in the appropriate /dev directory.

I feel like I’m getting close here, but am missing something.

If you provide the output of when running openSUSE Linux the following:
cat /etc/fstab
df -Th
su -c ‘fdisk -l’
#enter root password when prompted for a passwordI might be able to help. Without that, I have inadequate information to make a recommendation.

Thanks, here is the output:

chris@linux-iq76:/etc> cat /etc/fstab
/dev/disk/by-id/scsi-SATA_ST3400832AS_5NF1CVVY-part3 swap                 swap       defaults              0 0
/dev/disk/by-id/scsi-SATA_ST3400832AS_5NF1CVVY-part2 /                    ext3       acl,user_xattr        1 1
/dev/disk/by-id/scsi-SATA_ST3400832AS_5NF1CVVY-part4 /home                ext3       acl,user_xattr        1 2
/dev/disk/by-id/scsi-SATA_SAMSUNG_HD103SIS1VSJ9CS617269-part1 /windows/C           ntfs-3g    defaults 0 0
/dev/disk/by-id/scsi-SATA_SAMSUNG_HD103SIS1VSJ9CS617270-part1 /windows/D           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
chris@linux-iq76:/etc> df -Th
Filesystem    Type    Size  Used Avail Use% Mounted on
/dev/sdc2     ext3     20G  3.1G   16G  17% /
udev         tmpfs   1014M  144K 1014M   1% /dev
/dev/sdc4     ext3    346G  209M  328G   1% /home
gvfs-fuse-daemon
fuse.gvfs-fuse-daemon     20G  3.1G   16G  17% /home/chris/.gvfs
chris@linux-iq76:/etc> su -c 'fdisk -l'
Password: 

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0fe4048f

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1      121601   976760001    7  HPFS/NTFS

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0fe40490

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      121601   976760001    7  HPFS/NTFS

Disk /dev/sdc: 400.0 GB, 400088457216 bytes
255 heads, 63 sectors/track, 48641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9bf38596

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1          10       80293+  83  Linux
/dev/sdc2   *          11        2621    20972857+  83  Linux
/dev/sdc3            2622        2883     2104515   82  Linux swap / Solaris
/dev/sdc4            2884       48641   367551135   83  Linux

In the fstab file, I’ve made the change on the two windows drivers to “default” to try and see if that made a difference. It was originally the same as in the openSUSE help elsewhere here.

Install ntfs-3g.

/dev/disk/by-id/scsi-SATA_SAMSUNG_HD103SIS1VSJ9CS617269-part1 /windows/C ntfs-3g defaults 0 0
/dev/disk/by-id/scsi-SATA_SAMSUNG_HD103SIS1VSJ9CS617270-part1 /windows/D ntfs-3g defaults 0 0

Those look ok
Reboot.

Is it OK or not?

I’m running openSUSE 11.0–AFAIK that’s installed by default.

Nope. I’ve rebooted a couple of times with it like this. That’s what is frustrating–everything looks right, yet it won’t let me see the content of the partitions. I’ve even tried going to the console & switching to root to see if that might be it, but no joy. I’ll try booting it up again like this when I get back to the PC later today, but I don’t expect things to change. I’m wondering if lana might have hit upon something–is there any reason 11.0 might not install ntfs-3g by default? I left the installation as default as possible.

in a terminal do

rpm -qi ntfs-3g

If it’s there fine. If not go su in the terminal and od:

zypper in ntfs-3g

Just make sure also that you have a return after the last line in fstab

Did you run a "chkdsk /f " (under windoze) on those NTFS drives to ensure they are clean? Ensure you do NOT hibernate windoze, but rather restart properly. If you hibernate windoze, then Linux may not see the drives.

You can always trying “forcing” the ntfs-3g loading, but IMHO if that works, then it proves those drives are not clean and that is asking for trouble.

You can do a google search for “force mount ntfs-3g”. A sample hit is here:
How do i “force Mount” NTFS-3g? - Yahoo! Answers

… use the force mounting with caution. You could make things worse. If those drives are unclean, you need to make them clean as soon as possible.

ntfs-3g is installed, v1.2506.

I am sure at least one of those is clean as it was out of the computer at the time of the Windows OS drive crash. The other was on, so it may have troubles.

I don’t want to make things worse than they already are, what might I be trashing by forcing the mount?

FYI, I have met with some success! I went ahead and plugged my RAID array drives back in and just threw a basic mount command, and it worked just like it should! I’m really jazzed about that. I could simply copy the files to the Linux partition, but I’d really prefer to transfer the data to one of the two drives I have been struggling with. At the very least, I know I have a way forward.

That brings to mind another question: Could I re-partition the Linux drive with an NTFS partition large enough to hold my data from openSUSE?

I just had this problem on my openSUSE 11.1 and the fix was to delete the /windows/C access point and mkdir /windows/C and reboot and all is well.:slight_smile: