root@archboot / # mkfs.vfat /dev/sda1
mkfs.fat 4.2 (2021-01-31)
Cannot initialize conversion from codepage 850 to ANSI_X3.4-1968: Invalid argument
Cannot initialize conversion from ANSI_X3.4-1968 to codepage 850: Invalid argument
Using internal CP850 conversion table
报错如上 似乎和编码有关?
分区状况:
Disk /dev/sda: 64 GiB, 68719476736 bytes, 134217728 sectors
Disk model: ArchLinux-0 SSD
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 6952B96E-611B-3840-AAF5-1496873083D1
Device Start End Sectors Size Type
/dev/sda1 2048 1640447 1638400 800M EFI System
/dev/sda2 1640448 8351333 6710886 3.2G Linux swap
/dev/sda3 8351744 134215679 125863936 60G Linux filesystem
uname:
Linux archboot 5.18.1-1-aarch64-ARCH #1 SMP PREEMPT Wed Jun 1 19:34:45 MDT 2022 aarch64 GNU/Linux
最近编辑记录 小钧翊 (2022-07-27 08:12:11)
离线
mkfs.fat -F32 -n EFI /dev/sda1
离线
如果还出错就用fdisk把/dev/sda1的partition type改成 83 [Linux filesystem]
Disk /dev/sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors
Disk model: KINGSTON SA400S3
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: E2E3F2E3-8BB2-4D86-8483-6BEC0DD80E18
Device Start End Sectors Size Type
/dev/sda1 2048 1050623 1048576 512M Linux filesystem
/dev/sda2 1050624 34605055 33554432 16G Linux filesystem
/dev/sda3 34605056 68159487 33554432 16G Linux filesystem
/dev/sda4 68159488 101713919 33554432 16G Linux filesystem
/dev/sda5 101713920 105908223 4194304 2G Linux filesystem
/dev/sda6 105908224 114296831 8388608 4G Linux filesystem
/dev/sda7 114296832 131074047 16777216 8G Linux filesystem
/dev/sda8 131074048 147851263 16777216 8G Linux filesystem
/dev/sda9 147851264 164628479 16777216 8G Linux filesystem
/dev/sda10 164628480 198182911 33554432 16G Linux filesystem
/dev/sda11 198182912 231737343 33554432 16G Linux filesystem
离线
mkfs.fat -F32 -n EFI /dev/sda1
此方法似乎不行 报错依旧
root@archboot / # mkfs.fat -F32 -n EFI /dev/sda1
mkfs.fat 4.2 (2021-01-31)
Cannot initialize conversion from codepage 850 to ANSI_X3.4-1968: Invalid argument
Cannot initialize conversion from ANSI_X3.4-1968 to codepage 850: Invalid argument
Using internal CP850 conversion table
离线
如果还出错就用fdisk把/dev/sda1的partition type改成 83 [Linux filesystem]
Disk /dev/sda: 223.57 GiB, 240057409536 bytes, 468862128 sectors Disk model: KINGSTON SA400S3 Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: gpt Disk identifier: E2E3F2E3-8BB2-4D86-8483-6BEC0DD80E18 Device Start End Sectors Size Type /dev/sda1 2048 1050623 1048576 512M Linux filesystem /dev/sda2 1050624 34605055 33554432 16G Linux filesystem /dev/sda3 34605056 68159487 33554432 16G Linux filesystem /dev/sda4 68159488 101713919 33554432 16G Linux filesystem /dev/sda5 101713920 105908223 4194304 2G Linux filesystem /dev/sda6 105908224 114296831 8388608 4G Linux filesystem /dev/sda7 114296832 131074047 16777216 8G Linux filesystem /dev/sda8 131074048 147851263 16777216 8G Linux filesystem /dev/sda9 147851264 164628479 16777216 8G Linux filesystem /dev/sda10 164628480 198182911 33554432 16G Linux filesystem /dev/sda11 198182912 231737343 33554432 16G Linux filesystem
这似乎也不行 我将分区类型改为Linux filesystem后还是不行
root@archboot / # fdisk -l
Disk /dev/sda: 64 GiB, 68719476736 bytes, 134217728 sectors
Disk model: ArchLinux-0 SSD
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: 6952B96E-611B-3840-AAF5-1496873083D1
Device Start End Sectors Size Type
/dev/sda1 2048 1640447 1638400 800M Linux filesystem
/dev/sda2 1640448 8351333 6710886 3.2G Linux swap
/dev/sda3 8351744 134215679 125863936 60G Linux filesystem
root@archboot / # mkfs.fat -F32 -n EFI /dev/sda1
mkfs.fat 4.2 (2021-01-31)
Cannot initialize conversion from codepage 850 to ANSI_X3.4-1968: Invalid argument
Cannot initialize conversion from ANSI_X3.4-1968 to codepage 850: Invalid argument
Using internal CP850 conversion table
离线
locale 看看?
离线
看来Windows可能在第一扇区或分区表里隐藏了一些代码。
如果你的这块SSD没有其他的有用数据, 可以重新建立gpt分区表。
比如用GParted:
在菜单[Device]中选[Create Partition Table ...] ==> 前提是要删除现有的全部分区。
在创建各个分区时File System这个项目要选cleared, 需要的分区都建好以后就可以用mkfs命令了。
离线
看来Windows可能在第一扇区或分区表里隐藏了一些代码。
如果你的这块SSD没有其他的有用数据, 可以重新建立gpt分区表。
比如用GParted:
在菜单[Device]中选[Create Partition Table ...] ==> 前提是要删除现有的全部分区。
在创建各个分区时File System这个项目要选cleared, 需要的分区都建好以后就可以用mkfs命令了。
然而这根本不是一块真实的硬盘 这是虚拟机。。。
所以绝对不可能出现安装过Windows的情况啊 换句话说 这是全新的啊 我刚拿cfdisk建完gpt的分区表啊
离线
locale 看看?
locale是空的啊 这是live环境 为啥会有locale?
离线
为啥不会有 locale?你 locale 没设,一堆程序会出问题的。
离线
为啥不会有 locale?你 locale 没设,一堆程序会出问题的。
弱弱的问一下在livecd里咋设locale
我用的archboot,因为是arm64架构没有官方的live环境iso
离线
依云 说:为啥不会有 locale?你 locale 没设,一堆程序会出问题的。
弱弱的问一下在livecd里咋设locale
我用的archboot,因为是arm64架构没有官方的live环境iso
一样的啊,编辑 /etc/locale-gen 然后 locale-gen,然后设置 LANG 环境变量。
离线
小钧翊 说:依云 说:为啥不会有 locale?你 locale 没设,一堆程序会出问题的。
弱弱的问一下在livecd里咋设locale
我用的archboot,因为是arm64架构没有官方的live环境iso一样的啊,编辑 /etc/locale-gen 然后 locale-gen,然后设置 LANG 环境变量。
好像没有locale这个包啊 而且貌似装不了 https://archlinux.org/packages/?sort=&q … =&flagged=
最近编辑记录 小钧翊 (2022-07-26 08:20:25)
离线
这个命令是 glibc 提供的啊。你看看你的 $PATH 是不是不对?
离线
这个命令是 glibc 提供的啊。你看看你的 $PATH 是不是不对?
我晕。。。啊这
离线