为了在Debian测试中将我的/dev/sda4安装在/mnt/ufs_mount下,我尝试了以下命令(它在Debian下工作得很好):
modprobe ufs
mount -r -t ufs -o ufstype=ufs2 /dev/sda4 /mnt/ufs_mount以及:
mount -t ufs -o ufstype=ufs2 /dev/sda4 /mnt/ufs_mount但我知道这个错误:
mount: /dev/sda4 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sda4,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.输出:dmesg | tail:
[ 1136.965142] ufs: ufs_fill_super(): bad magic number
[ 1255.758946] ufs: ufs_fill_super(): bad magic number
[ 2098.945757] ufs: ufs was compiled with read-only support, can't be mounted as read-write
[ 2098.946045] ufs: You didn't specify the type of your ufs filesystem
mount -t ufs -o ufstype=sun|sunx86|44bsd|ufs2|5xbsd|old|hp|nextstep|nextstep-cd|openstep ...
>>>WARNING<<< Wrong ufstype may corrupt your filesystem, default is ufstype=old
[ 2098.967212] ufs: ufs_fill_super(): bad magic number
[ 2927.982112] perf: interrupt took too long (2504 > 2500), lowering kernel.perf_event_max_sample_rate to 79750编辑我的sources.list:
deb http://httpredir.debian.org/debian/ stretch main
deb-src http://httpredir.debian.org/debian/ stretch main
deb http://security.debian.org/debian-security stretch/updates main
deb-src http://security.debian.org/debian-security stretch/updates main和uname -a:
Linux debian 4.6.0-1-amd64 #1 SMP Debian 4.6.4-1 (2016-07-18) x86_64 GNU/Linux如何在Debian测试下挂载ufs文件系统?
发布于 2020-12-12 14:19:15
根据linux下安装freebsd片分区,您可能需要在分区中指定一个偏移量。
partx -l应该能够识别文件系统的扇区偏移量,您需要将其乘以512。您可以使用-o offset=$((512*sector_offset))将其作为挂载选项传递-假设您使用的是bash或类似的shell。
https://unix.stackexchange.com/questions/308933
复制相似问题