Re: ntfs mount errors





On Fri, 3 Aug 2007 20:51:50 -0700
Andrew Sackville-West <andrew@xxxxxxxxxxxxxxxxxxxx> wrote:

On Fri, Aug 03, 2007 at 11:17:21PM -0400, Phill Atwood wrote:



Success. Although I can't say that I really understand. Setting
umask=0222 in the /etc/fstab file did the trick. I don't understand why
mounting a ro partition to a directory with just write permissions would
work. 0544 or 0555 seemed the more logical thing to try...
(...)
So I'm not sure how that translates to the first digit since i'm sure
you don't want a perm to come out 7555 using umask of 0222 but maybe
someone can enlighten

Well, wikipedia says ;), the bitwise-inverted umask is bitwise ANDed with the *default "full permission"*, i.e. 666 for files and 777 for dirs. This should mean, 0666 and 0777, if I am understanding it right (see interpretation for missing digits in chmod(1)). Thus:

000 110 110 110 AND
not(000 010 010 010) =
000 110 110 110 AND
111 101 101 101 = 0444

For dirs, the result is 0555.

c) Even after this success, dmesg shows:

NTFS volume version 3.1.
NTFS-fs warning (device sda1): load_system_files(): Unsupported volume
flags 0x4000 encountered.
(...)
i see that a lot and never have any problems. FWIW. but avoid writing
in ntfs if you can.

That's really strange ... but I'm pretty sure that's not debian-specific (as I found this on forums for all kinds of distros).

Another thing: If you also need write access onto ntfs, and want read access onto compressed files, then the ntfs-3g driver might be interesting for you. For newbies however, it might not be that easy to install... you need to make a package for stable yourself. On the other hand, if you'd need it, I can just do an update/recompile here on my system and send the resulting package to you via email.

is it in backports?

Yep, that's a good hint: ntfs-3g ver 1.516 (slightly outdated) is available if you add the line:

deb http://www.backports.org/debian etch-backports main contrib non-free

into your /etc/apt/sources.list, do apt-get update, and then install.


Cheers,

Stephan


--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx
with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx



Relevant Pages

  • Re: Partitioning problem -- no writepermission to partitiontable
    ... Ntfs related things are done by utils ... Choose the "Manually edit partition table" option. ... Choose the NTFS partition you want to resize. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
    (Debian-User)
  • Re: can mountting ntfs in fedora
    ... how mounting ntfs in fedora core? ... significant amounts of data from that partition ...
    (Fedora)
  • Re: Problem with mount_ntfs
    ... The mount line looks perfectly correct to me. ... are adding are "slices" which are what FBSD uses to divide up a partition. ... They are not relevant to NTFS. ... I tried a couple of different possible error scenarios -- mounting NTFS over ...
    (freebsd-questions)
  • RE: Problem with mount_ntfs
    ... kernel compiled with options NTFS ... hard ad0 has 3 partition: ... When I try from to mount ntfs partition via commands: ... To unsubscribe, ...
    (freebsd-questions)
  • Re: Mounting NTFS into Ubuntu
    ... yes ntfs package must be used otherwise there is no support.. ... I'm trying to mount an NTFS formatted partition into Ubuntu ... >> Modify settings or unsubscribe at: ...
    (Ubuntu)