在 GuixSD 下格式化 usb-flash 出现问题,导致它找不到 mkfs.vfat。
我已经安装了 dosfstools 但 util-linux 安装显示了一些其他的东西。
# guix package -i dosfstools
The following package will be upgraded:
dosfstools 4.1 → 4.1 /gnu/store/4im5hyda53qjnkc869m0fxdi7dm5f0lg-dosfstools-4.1
nothing to be done
# guix package -i util-linux
The following package will be upgraded:
util-linux 2.32 → 2.32 /gnu/store/fbaawq3xvpqpnj4rdhbiq8kmkmf6biqv-util-linux-2.32
substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... substitute: updating list of substitutes from 'https://mirror.hydra.gnu.org'... 100.0%
The following derivations will be built:
/gnu/store/ml5l1q5k3law12k0wzwhm99wbrhsbfsh-profile.drv
/gnu/store/xp95dbp21vy2an0rjrzfq5askywn9xsc-fonts-dir.drv
/gnu/store/w161mxr5ilqavkgd90gl2f5pfz92nlk1-info-dir.drv
/gnu/store/q4bp45cm6nnjjmk14cpy7kfklaq3j4wv-ca-certificate-bundle.drv
/gnu/store/nm2iv9g5kjg5bb344n6p8c7aha5k8dvj-gtk-im-modules.drv
/gnu/store/bi0wh6qa9c1l065d33nbfazd8kn5bprh-xdg-desktop-database.drv
/gnu/store/6j4m52dc2fdz8sj88crr8i5vi39m2bzc-gtk-icon-themes.drv
/gnu/store/68jwfnbz1nhczf2lg7jnklp9bzk7avls-glib-schemas.drv
/gnu/store/0hp1w4nsxq288s5p9lwxqcfpnrr9r9sn-xdg-mime-database.drv
/gnu/store/lzjilc0nallyk6k1lnk0v97y2af49mfk-manual-database.drv
No schema files found: doing nothing.
Creating manual page database...
146 entries processed in 0.5 s
9 packages in profile
# whereis mkfs |grep vfat
#
# whereis mkfs
mkfs: /gnu/store/lbbmdb8q34bxggkvsidi4j9hiyw3flv2-profile/sbin/mkfs.cramfs /gnu/store/lbbmdb8q34bxggkvsidi4j9hiyw3flv2-profile/sbin/mkfs.bfs /gnu/store/lbbmdb8q34bxggkvsidi4j9hiyw3flv2-profile/sbin/mkfs.fat /gnu/store/lbbmdb8q34bxggkvsidi4j9hiyw3flv2-profile/sbin/mkfs.minix /gnu/store/lbbmdb8q34bxggkvsidi4j9hiyw3flv2-profile/sbin/mkfs /gnu/store/pqkqim2q4sygx9nf02ajbcy8zwr6c80v-profile/sbin/mkfs.ext4 /gnu/store/pqkqim2q4sygx9nf02ajbcy8zwr6c80v-profile/sbin/mkfs.ext2 /gnu/store/pqkqim2q4sygx9nf02ajbcy8zwr6c80v-profile/sbin/mkfs.cramfs /gnu/store/pqkqim2q4sygx9nf02ajbcy8zwr6c80v-profile/sbin/mkfs.bfs /gnu/store/pqkqim2q4sygx9nf02ajbcy8zwr6c80v-profile/sbin/mkfs.minix /gnu/store/pqkqim2q4sygx9nf02ajbcy8zwr6c80v-profile/sbin/mkfs.ext3 /gnu/store/pqkqim2q4sygx9nf02ajbcy8zwr6c80v-profile/sbin/mkfs
# mkfs -t vfat /dev/sdb1
mkfs: failed to execute mkfs.vfat: No such file or directory
对不起?为什么所有其他文件系统都存在但 vfat 不存在?
mkdosfs 也不起作用:
mkdosfs -F 32 -I /dev/sdb1
bash: mkdosfs: command not found
GuixSD下如何格式化成Fat 32?我只想用 linux-iso 烧录 flash。
您应该使用以下命令:
根据源包,该命令
mkfs.vfat
已弃用(旧),(检查以获取包源)。guix package -s dosfstools
要再次获取命令,您应该使用以下选项
mkfs.vfat
重建包:--enable-compat-symlinks
完成后,该命令
mkfs.vfat
将起作用并且mkfs
将接受该vfat
选项。