Mailinglist Archive: opensuse (1620 mails)

< Previous Next >
Re: [opensuse] Read-only NTFS Disks?
On 11/18/2014 10:02 AM, Lew Wolfgang wrote:
On 11/18/2014 06:29 AM, Lew Wolfgang wrote:
On 11/18/2014 12:14 AM, Bernhard Voelker wrote:
Attributes may work - this is the best I could find about it:

BTW: you didn't mention how the customer is mounting the drives.
If it's on Linux, too, then those attributes won't do much.

Hi Bernhard,

Yes, I looked at the tuxera stuff last night and tried this:

setfattr -h -v 0x00000021 -n system.ntfs_attrib_be foo

This sets the read-only flag as reported by:

getfattr -h -e hex -n system.ntfs_attrib_be foo

This doesn't write-block on Linux, but my hope is it will
work on Windows. I'll test that this morning when I get
access to a straight-up Win-7 system.

Well, this didn't work when mounting the NTFS filesystem on a Win-7 system.

Greg's idea of creating an ntfs filesystem on a file didn't work either.
complained about the file not being a block-device.

I didn't try jdd's ISO idea yet, that's next on my list.

Okay, the concept of an NTFS filesystem living inside of an ISO filesystem makes
me dizzy. So as a lark I created an ISO file:

mkisofs -o test.iso <test-hierarchy>

This mounted fine loopback.

I then dd'ed it to a 1-TB disk:

dd if=test.iso of=/dev/sdg

and the disk then mounted fine as in:

mount /dev/sdg /mnt

and it is read-only!!!

Alas, Windows-7 can't see anything on the disk. The only choice
the device manager shows is to "format" the offending hardware.
I wonder if there's some magical incantation or spell that will allow
Windows to mount an ISO filesystem that doesn't appear on an
optical device?


To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >