Announcement

Collapse
No announcement yet.

Can't read mounted NTFS partition

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Can't read mounted NTFS partition

    Konqueror shows my NTFS partition under /media but when I click on one, expecting read-only access, I get the sound of breaking glass and a message that says "Could not enter folder /media/hda1"

    #2
    Re: Can't read mounted NTFS partition

    can you post content of your /etc/fstab and output of sudo fdisk -l ?
    cheers!
    -=|From the desk of|=-
    «•´`•.(*•.¸(`•.¸ ¸.•´)¸.•*).•´`•»
    «•´¨*•.¸¸whoiam55.¸¸.•*¨`•»
    «•´`•.(¸.•´(¸.•* *•.¸)`•.¸).•´`•»
    Reg. Linux User # 400637

    Comment


      #3
      Re: Can't read mounted NTFS partition

      /etc/fstab

      # /etc/fstab: static file system information.
      #
      # <file system> <mount point> <type> <options> <dump> <pass>
      proc /proc proc defaults 0 0
      /dev/hda5 / ext3 defaults,errors=remount-ro 0 1
      /dev/hda7 /home ext3 defaults 0 2
      /dev/hda1 /media/hda1 ntfs defaults 0 0
      /dev/hda8 /media/hda8 ext3 defaults 0 2
      /dev/sda1 /media/sda1 ntfs defaults 0 0
      /dev/hda6 none swap sw 0 0
      /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
      /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0

      #####

      sudo fdisk -l

      Disk /dev/hda: 122.9 GB, 122942324736 bytes
      16 heads, 63 sectors/track, 238216 cylinders
      Units = cylinders of 1008 * 512 = 516096 bytes

      Device Boot Start End Blocks Id System
      /dev/hda1 * 1 81675 41164168+ 7 HPFS/NTFS
      /dev/hda2 81677 238202 78889010 f W95 Ext'd (LBA)
      Partition 2 does not end on cylinder boundary.
      /dev/hda5 81677 123286 20971408+ 83 Linux
      /dev/hda6 123287 127447 2097112+ 82 Linux swap / Solaris
      /dev/hda7 127453 224321 48821503+ 83 Linux
      /dev/hda8 224321 238202 6996276 83 Linux

      Disk /dev/sda: 160.0 GB, 160041885696 bytes
      255 heads, 63 sectors/track, 19457 cylinders
      Units = cylinders of 16065 * 512 = 8225280 bytes

      Device Boot Start End Blocks Id System
      /dev/sda1 1 19457 156288321 7 HPFS/NTFS

      Comment


        #4
        Re: Can't read mounted NTFS partition

        hi,

        with breezy it seems that partitions are mounted automatically... however the default settings don't allow to see the ntf partitions (and don't allow t write in the fat32 ones).

        after running sudo fdsik -l form the Console, you can see wich is the number of your ntfs partition

        afterthat, you have to edit the fstab file (located in the etc directory), and assuming that your ntfs partition is hda1, modify its line, writing :
        /dev/hda1 /media/hda1 ntfs umask=0222 0 0

        save the file, and run
        mount -a
        from the Console

        regards

        ps: in my case, I had to reboot, because probably the new settings weren't loaded.

        Comment


          #5
          Re: Can't read mounted NTFS partition

          # <file system> <mount point> <type> <options> <dump> <pass>
          proc /proc proc defaults 0 0
          /dev/hda5 / ext3 defaults,errors=remount-ro 0 1
          /dev/hda7 /home ext3 defaults 0 2
          /dev/hda1 /media/hda1 ntfs defaults 0 0
          /dev/hda8 /media/hda8 ext3 defaults 0 2
          /dev/sda1 /media/sda1 ntfs defaults 0 0
          /dev/hda6 none swap sw 0 0
          /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
          /dev/fd0 /media/floppy0 auto rw,user,noauto 0 0
          OK, change the default to ro,auto,umask=022 after that unmount your NTFS partitions with umount command. sudo umount /media/sda1 && umount /media/hda1 then mount them again with mount command mount -a .

          edit:you must not try to use RW access on a ntfs partiton, unless you risk corrupting your filesystem.
          cheers!
          -=|From the desk of|=-
          «•´`•.(*•.¸(`•.¸ ¸.•´)¸.•*).•´`•»
          «•´¨*•.¸¸whoiam55.¸¸.•*¨`•»
          «•´`•.(¸.•´(¸.•* *•.¸)`•.¸).•´`•»
          Reg. Linux User # 400637

          Comment


            #6
            Re: Can't read mounted NTFS partition

            That did the trick. I wonder why the flag was set to 'defaults' when that does not allow users to read the partition? I seem to remember this problem in Hoary as well and ignored it hoping it would magically disappear in Breezy.

            Thanks

            Comment


              #7
              Re: Can't read mounted NTFS partition

              By default, when root mounts an ntfs filesystem, all files are owned by root and will not necessarily be world readable. To get around this, there are a few options. The uid option will define a user to own all the files on the NTFS filesystem. This is good if you want to give one user full control over the filesystem. Another option is to use the gid option to give a group access to the filesystem. Finally, you can define a umask for the entire filesystem. A umask=022 will ensure that world has read permissions to all files.
              cheers!
              -=|From the desk of|=-
              «•´`•.(*•.¸(`•.¸ ¸.•´)¸.•*).•´`•»
              «•´¨*•.¸¸whoiam55.¸¸.•*¨`•»
              «•´`•.(¸.•´(¸.•* *•.¸)`•.¸).•´`•»
              Reg. Linux User # 400637

              Comment

              Working...
              X