Hi,
I want to do something *bad* : to mount an already mounted ext3 partition.
Mounting "-o bind" is not an option, this partition is mounted by different virtual machines. NFS is the right way to go, so I want another one :-)
I have no problem mounting this partition read-only, but it seems that actually it is not really read-only. From /var/log/messages :
Aug 29 11:26:43 xen02 kernel: EXT3-fs: INFO: recovery required on readonly filesystem. Aug 29 11:26:43 xen02 kernel: EXT3-fs: write access will be enabled during recovery. Aug 29 11:26:43 xen02 kernel: kjournald starting. Commit interval 5 seconds Aug 29 11:26:43 xen02 kernel: EXT3-fs: recovery complete. Aug 29 11:26:43 xen02 kernel: EXT3-fs: mounted filesystem with ordered data mode.
This recovery is probably triggered by the file /.autofsck, but I have not found how to get rid of this feature. Is there a way to read an ext3 filesystem, completely disabling recovery and any write operation ?
Thanks,
On 29 August 2011 15:18, Philippe Naudin philippe.naudin@supagro.inra.fr wrote:
Hi,
I want to do something *bad* : to mount an already mounted ext3 partition.
Use a clustering file system (i.e., ocfs2) instead.
This recovery is probably triggered by the file /.autofsck, but I have not found how to get rid of this feature. Is there a way to read an ext3 filesystem, completely disabling recovery and any write operation ?
Mounting in ext2 will ignore the journalling but not recommended. In any case you won't be able to mount a dirty ext3 filesystem as ext2.
Le lun 29 aoû 2011 15:23:12 CEST, Hakan Koseoglu a écrit:
On 29 August 2011 15:18, Philippe Naudin philippe.naudin@supagro.inra.fr wrote:
Hi,
I want to do something *bad* : to mount an already mounted ext3 partition.
Use a clustering file system (i.e., ocfs2) instead.
I need to learn more about it before, but you are right that it's definitely better to use an appropriate tool.
This recovery is probably triggered by the file /.autofsck, but I have not found how to get rid of this feature. Is there a way to read an ext3 filesystem, completely disabling recovery and any write operation ?
Mounting in ext2 will ignore the journalling but not recommended. In any case you won't be able to mount a dirty ext3 filesystem as ext2.
It works ! I can use tune2fs to check that the filesystem seems OK and then mount it as an ext2 filesystem.
Thanks a lot !