FAQ SearchLogin
Tuxera Home
View unanswered posts | View active topics It is currently Thu Dec 14, 2017 04:31



Post new topic Reply to topic  [ 1 post ] 
Can't mount immutable image 
Author Message

Joined: Wed Jun 16, 2010 20:21
Posts: 3
Post Can't mount immutable image
I ddrescue'd an HDD and marked the image immutable by `chattr +i`. Now I tried to mount it with ntfs-3g, and it complains that permission is denied. Here's how to reproduce this:
Code:
fallocate -l 512M test.img
mkfs.ntfs -F test.img
mkdir testdir
sudo ntfs-3g test.img testdir # this works OK
sudo umount testdir
sudo chattr +i -V test.img
sudo ntfs-3g test.img testdir # this fails
The last command of the above code code says:
Quote:
Error opening '/home/ruslan/tmp/test.img': Permission denied
Failed to mount '/home/ruslan/tmp/test.img': Permission denied
Please check '/home/ruslan/tmp/test.img' and the ntfs-3g binary permissions,
and the mounting user ID. More explanation is provided at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged

At the same time, using kernel "ntfs" driver works without any problems both with and without the immutable flag on the image, automatically mounting in read-only mode.

Setting `-o ro` explicitly works around this, but it would be much more user-friendly to fallback to this mode automatically — as most (all?) of kernel filesystems do (at least vfat, ntfs, iso9660 do so).


Sun May 21, 2017 12:48
Profile
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Original forum style by Vjacheslav Trushkin.