[英]How To Mount A Hard Disk Of File-System Type “devtmpfs”
I'm trying to recover some data from a hard drive extracted from a broken laptop, and I'm having problems mounting the disk to my current system (Linux Mint). 我正在尝试从损坏的笔记本电脑中提取的硬盘中恢复一些数据,而我在将磁盘安装到我当前的系统(Linux Mint)时遇到了问题。 The hard disk I'm recovering from ran Debian.
我正在从Debian中恢复的硬盘。 Simply, I'm confused as to how I can mount the hard drive to access the files, however it's not as simple as any other mount I've done.
简单地说,我很困惑如何安装硬盘驱动器来访问文件,但它并不像我做过的任何其他安装一样简单。 The following details struggles and information I've encountered.
以下详细介绍了我遇到的挣扎和信息。
I get the following outputs when trying to mount the hard drive with different file-system tags. 尝试使用不同的文件系统标签安装硬盘时,我得到以下输出。 I should add that the file-system type isn't automatically detected when using auto, and "sdb" is definitely the correct address for the disk (taken it from dmesg).
我应该补充一点,使用auto时不会自动检测文件系统类型,“sdb”肯定是磁盘的正确地址(从dmesg获取)。
$ mount /dev/sdb /mnt/usb -t ntfs
NTFS signature is missing.
Failed to mount '/dev/sdb': Invalid argument
The device '/dev/sdb' 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?
The following returns the same message when all other common file-system tags are used: 使用所有其他常见文件系统标记时,以下内容返回相同的消息:
$ sudo mount /dev/sdb usb -t ext2
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
The results from these commands led me to believe that there was an issue with the hard disk and it's partitions, however fdisk proved that it's partition's do seem to be valid and correct: 这些命令的结果让我相信硬盘及其分区存在问题,但是fdisk证明它的分区似乎是有效和正确的:
$ sudo fdisk /dev/sdb -l
Disk /dev/sdb: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x0002da94
Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 475920383 237959168 83 Linux
/dev/sdb2 475922430 488396799 6237185 5 Extended
/dev/sdb5 475922432 488396799 6237184 82 Linux swap / Solaris
I then decided to try verify the file-system type of the hard drive, which seems to be "devtmpfs", which I got from the following command using df: 然后我决定尝试验证硬盘的文件系统类型,这似乎是“devtmpfs”,我从以下命令使用df获得:
$ df /dev/sdb -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
udev devtmpfs 1014764 4 1014760 1% /dev
And so finally, I mount the hard drive using -t devtmpfs, which is successful in mounting however I'm left with a confusing file system very unlike from what I would expect from what was a standard debian set up. 最后,我使用-t devtmpfs安装硬盘驱动器,这是成功安装但是我留下了一个令人困惑的文件系统,这与我对标准debian设置的期望非常不同。 It contains file folders such as "block","bus","char","disk","dri","mapper"... and files like "sda1","sdb","sdb1","tty","vcs".
它包含文件夹,如“block”,“bus”,“char”,“disk”,“dri”,“mapper”......以及“sda1”,“sdb”,“sdb1”,“tty”等文件“VCS”。
I'm totally stumped as to how I should progress, and I'm pretty convinced the hard disk isn't broken and that I'm just mounting it incorrectly. 我完全不知道自己应该如何进步,而且我非常确信硬盘没有损坏,而且我只是错误地安装它。 How can I successfully mount the disk so I can access my files?
如何成功装入磁盘以便我可以访问我的文件? Any help would be greatly appreciated.
任何帮助将不胜感激。
Ok, you are trying to mount the entire disk instead of individual partitions, which is why you are getting the error. 好的,您正在尝试安装整个磁盘而不是单个分区,这就是您收到错误的原因。 In short the command you need is:
简而言之,您需要的命令是:
mount /dev/sdb1 /mnt/usb
The file /dev/sdb
references the entire disk as a block file. 文件
/dev/sdb
将整个磁盘引用为块文件。 This includes the partition table at the start, which is why it can't find a filesystem. 这包括开始时的分区表,这就是它找不到文件系统的原因。 The file
/dev/sdb1
references the first partition, which is where your filesystem will be. 文件
/dev/sdb1
引用第一个分区,即文件系统所在的分区。 From the looks of your fdisk
output, this is not an ntfs partition since this is a Windows filesystem and the partition is marked as Linux (most likely you will have ext4 unless you specifically set up something different). 从您的
fdisk
输出的外观来看,这不是一个ntfs分区,因为这是一个Windows文件系统,并且该分区被标记为Linux(除非您专门设置不同的东西,否则很可能会有ext4)。
To add a quick explanation of devtmpfs, this is a special filesystem which contains these block files which are specified by udev. 要添加devtmpfs的快速说明,这是一个特殊的文件系统,它包含由udev指定的这些块文件。 You can google both for more information, but by now I'm sure you now know its not what you are looking for.
您可以谷歌两者获取更多信息,但现在我相信你现在知道它不是你想要的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.