我需要进入SD卡上的一个分区,但它没有文件系统,我不知道如何挂载它。当我打字时
parted /dev/sdc print我得到了
Model: USB Mass Storage Device (scsi)
Disk /dev/sdc: 129GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Number Start End Size Type File system Flags
1 4194kB 62.9MB 58.7MB primary fat16 lba
2 62.9MB 129GB 129GB primary我还没有弄清楚如何安装#2,但我真的必须做到这一点。
背景:这是一张SD卡,我用在树莓皮上。pi获取视频数据并将其保存到文件系统中。像个白痴一样,我把SD卡插到我的Ubuntu机器上,它自动启动(#1)和Linux文件系统(#2)。我看了几段视频,它们太棒了。我没有把文件复制到我的电脑上(很大的错误)。现在,在卸下和回来后,我不能进入2号。我的视频坐在那里,我想要他们。Pi将不再单独启动,所以我不能进入那种方式。
尝试用ext3、ext4、vfat或msdos挂载分区会给出以下的一些变体
mount -t ext4 /dev/sdc2 /media/pi返回
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和
dmesg | tail给出
[2068799.476208] FAT-fs (sdc1): error, invalid access to FAT (entry 0x00006520)
[2068799.476329] FAT-fs (sdc1): error, invalid access to FAT (entry 0x00006c6c)
[2068799.476397] FAT-fs (sdc1): error, invalid access to FAT (entry 0x00007620)
[2068799.485943] FAT-fs (sdc1): error, invalid access to FAT (entry 0x000076b3)
[2068799.486050] FAT-fs (sdc1): error, invalid access to FAT (entry 0x00006e65)
[2068799.495272] FAT-fs (sdc1): error, invalid access to FAT (entry 0x00006001)
[2068799.495389] FAT-fs (sdc1): error, invalid access to FAT (entry 0x00004000)
[2068799.495505] FAT-fs (sdc1): error, invalid access to FAT (entry 0x00006573)
[2068799.495564] FAT-fs (sdc1): error, invalid access to FAT (entry 0x0000414d)
[2068946.845907] EXT4-fs (sdc2): VFS: Can't find ext4 filesystem试图像vfat或msdos那样安装
dmesg | tail
[2069137.546806] FAT-fs (sdc2): bogus number of FAT structure
[2069137.546809] FAT-fs (sdc2): Can't find a valid FAT filesystem尝试按ntfs提供的方式挂载
NTFS signature is missing.
Failed to mount '/dev/sdc2': Invalid argument
The device '/dev/sdc2' 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?
dmesg | tail
[2069279.102188] usb 2-6: reset high-speed USB device number 27 using ehci_hcd
[2069279.358047] usb 2-6: reset high-speed USB device number 27 using ehci_hcd
[2069279.490651] sd 26:0:0:0: [sdc] Unhandled error code
[2069279.490654] sd 26:0:0:0: [sdc] Result: hostbyte=DID_ERROR driverbyte=DRIVER_OK
[2069279.490657] sd 26:0:0:0: [sdc] CDB: Read(10): 28 00 00 01 e2 00 00 00 08 00
[2069279.490661] end_request: I/O error, dev sdc, sector 123392
[2069279.490665] Buffer I/O error on device sdc2, logical block 64
[2069279.605895] usb 2-6: reset high-speed USB device number 27 using ehci_hcd
[2069280.444934] sd 26:0:0:0: [sdc] No Caching mode page found
[2069280.444937] sd 26:0:0:0: [sdc] Assuming drive cache: write through发布于 2015-09-18 14:07:58
但是它没有文件系统,我不知道如何挂载它。
如果它没有文件系统,那么肯定不能挂载它。从根本上说,将其安装在文件系统上是一种操作。(如果没有文件系统,那么就没有什么可挂载的。)
但是,如果您的意思是它有一个未知的文件系统类型,而不是完全没有文件系统,那么我建议使用这个命令来识别它是哪种类型的文件系统:
file -Ls /dev/sdc2如果file能够识别文件系统类型,那么您将知道传递给挂载的-t选项的参数。如果file无法识别文件系统类型,那么块设备可能包含文件系统以外的其他内容,或者它可能是空的。
https://unix.stackexchange.com/questions/230432
复制相似问题