大网数据广告活动
服务器运维问答

Cannot mount block device /dev/loop read-only

· 52CE 我爱测

I've got a ubuntu 14.04x64 VM running on Virtualbox on a Windows 7 x64 host machine. I'm trying to mount an image for forensic uses, and am trying to run this command in particular: mount -o ro,loop,offset=1048576 -t xfs /media/m…

问题原文

原帖链接 · Maumee River · CC BY-SA 3.0

I've got a ubuntu 14.04x64 VM running on Virtualbox on a Windows 7 x64 host machine.

I'm trying to mount an image for forensic uses, and am trying to run this command in particular:

mount -o ro,loop,offset=1048576 -t xfs /media/mountdevicesource/ewf1 /media/mountdest

All documentation that I've found seems to indicate that a command like this should work, however I get an error stating:

Mount: cannot mount block device /dev/loop0 read-only

Any idea what I may be doing wrong? I was getting this same error on a different VM, so I re-build Ubuntu thinking it was some type of corruption problem or something, but I'm getting the same error on the new VM.

Thanks.

已采纳解答

原帖链接 · shodanshok · CC BY-SA 3.0

Probably, your XFS filesystem has a dirty log that needs to be replayed to give you a consistent filesystem. However, the ro mount option prevents that.

Try mounting adding norecovery, for example:

mount -o ro,norecovery,loop,offset=1048576 -t xfs /media/mountdevicesource/ewf1 /media/mountdest

Does it change anything?

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-03-22)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。