Debian
Debian測試下如何掛載ufs文件系統?
為了將我的安裝
/dev/sda4
在/mnt/ufs_mount
Debian Testing 上,我嘗試了以下命令(它在 Debian Jessie 下執行良好):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
ufs
Debian測試下如何掛載文件系統?
根據linux 下 mount freebsd slice partition,您可能需要指定一個偏移量到分區中。
partx -l
應該能夠辨識文件系統的扇區偏移量,您需要將其乘以 512。您可以使用-o offset=$((512*sector_offset))
- 假設您正在使用bash
或類似的 shell 將其作為掛載選項傳遞。