Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Can't see content of NTFS partition

  1. #1

    Default 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.
    Code:
    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

  2. #2
    Join Date
    Jun 2008
    Location
    Taiwan
    Posts
    150

    Default Re: Can't see content of NTFS partition

    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
    Regards,
    Bryan Yu
    http://lifestory.moqin.com/

  3. #3

    Default Re: Can't see content of NTFS partition

    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

  4. #4

    Default Re: Can't see content of NTFS partition

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

  5. #5
    Tilman Schmidt NNTP User

    Default Re: Can't see content of NTFS partition

    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?

  6. #6
    washakie NNTP User

    Default Re: Can't see content of NTFS partition

    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

  7. #7

    Default Re: Can't see content of NTFS partition

    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.

  8. #8
    Join Date
    Mar 2008
    Location
    Europe
    Posts
    26,443
    Blog Entries
    34

    Default Re: Can't see content of NTFS partition

    Quote Originally Posted by claudermilk View Post
    Was there ever a solution to this? I am running into the same problem with two drives.
    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
    Quote Originally Posted by claudermilk View Post
    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.
    I can not help you with raid, as I know nothing about it.

  9. #9

    Default Re: Can't see content of NTFS partition

    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.

  10. #10
    Join Date
    Mar 2008
    Location
    Europe
    Posts
    26,443
    Blog Entries
    34

    Default Re: Can't see content of NTFS partition

    Quote Originally Posted by claudermilk View Post
    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.
    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 password
    I might be able to help. Without that, I have inadequate information to make a recommendation.

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •