![使用 cfdisk 将 vfat 转换为 linux,现在无法挂载它](https://linux22.com/image/1401213/%E4%BD%BF%E7%94%A8%20cfdisk%20%E5%B0%86%20vfat%20%E8%BD%AC%E6%8D%A2%E4%B8%BA%20linux%EF%BC%8C%E7%8E%B0%E5%9C%A8%E6%97%A0%E6%B3%95%E6%8C%82%E8%BD%BD%E5%AE%83.png)
使用 cfdisk,我将 vfat 拇指驱动器转换为 Linux,但现在无法安装该设备。以下是我尝试时发生的情况。
Disk /dev/sdc: 16.0 GB, 16008609792 bytes
255 heads, 63 sectors/track, 1946 cylinders, total 31266816 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdc1 63 31266815 15633376+ 83 Linux
/home/g mount -t ext2 /dev/sdc /16gb
mount: wrong fs type, bad option, bad superblock on /dev/sdc,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
/home/g mount -t ext3 /dev/sdc /16gb
mount: wrong fs type, bad option, bad superblock on /dev/sdc,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
/home/g mount -t ext4 /dev/sdc /16gb
mount: wrong fs type, bad option, bad superblock on /dev/sdc,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
/home/g mount -t ext4 /dev/sdc1 /16gb
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
/home/g mount -t ext3 /dev/sdc1 /16gb
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
/home/g mount -t ext2 /dev/sdc1 /16gb
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
/home/g mount /dev/sdc1 /16gb
NTFS signature is missing.
Failed to mount '/dev/sdc1': Invalid argument
The device '/dev/sdc1' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
/home/g mount /dev/sdc /16gb
NTFS signature is missing.
Failed to mount '/dev/sdc': Invalid argument
The device '/dev/sdc' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
/home/g
答案1
cfdisk 创建分区。您仍需要格式化它们以匹配所需的文件系统。我不知道您对配置有什么想法,但假设您想格式化分区以在 EXT3 中工作:
mkfs.ext3 /dev/sdc1
然后你就可以尝试挂载了。
答案2
cfdisk
和朋友只会更改分区表;它不会更改分区本身的内容。因此,如果您使用一个充满零的全新驱动器并向其写入新的分区表,分区本身仍将充满零,并且操作系统无法识别。
文件系统使用工具mkfs
(“make filesystem”)进行初始化,其概要如下:
mkfs [options] [-t type fs-options] device [size]
对于您来说,要/dev/sdc1
使用默认选项用新的 EXT3 文件系统初始化分区,您可以说:
mkfs -t ext3 /dev/sdc1
显然,这会抹去 中已经存在的所有数据/dev/sdc1
。