运行sudo fdisk -lu
返回我要挂载的硬盘
Disk /dev/sdb
但是当我尝试从KDE分区管理器挂载它时,当我尝试设置路径(尝试显示隐藏文件夹,仅显示3)并通过konsole使用时sudo mount /dev/sdb /mnt
,它没有显示某些目录,我得到了
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.
所以我尝试跑步sudo e2fsck -f -b 32768 -y /dev/sdb
并获得
e2fsck 1.42.13 (17-May-2015)
e2fsck: Bad magic number in super-block while trying to open /dev/sdb
The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem. If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
or
e2fsck -b 32768 <device>
当我尝试这些变体时,会收到相同的消息。如何安装此硬盘驱动器?硬盘的文件类型是“ inode / blockdevice”,我已经为其创建了一个分区,但是没有路径就无法保存。
另外,为什么会说2015年5月17日?
非常感谢。
编辑:能够通过单击“查找范围”旁边的栏来找到/ dev文件夹,但是该分区甚至不会显示为隐藏文件,但是如果我在“目录:”栏中键入它,它的确会显示出来,但是不可选择(“选择”为灰色)。
如预期的那样,Gparted没有差异。我确定它是文件类型错误。
在gparted中重新分区硬盘驱动器:
在应用设置后,它似乎可以正常工作,但是打开文件管理器后,左侧的“设备”列表消失了!我的ssd甚至没有列出(就像以前一样),“设备”标题不存在!
New hard drives need to have a new partition created on them so that they can be used. I recommend using gparted
. To install the program, type in the following from a terminal window:
sudo apt install gparted
Then gparted
needs to be ran with elevated permissions:
sudo gparted
After your drive is configured, now you need to mount it somewhere. If you want it accessible, you need to create a mount point on your computer for it first. From the terminal window type in the following to create the mount point:
sudo mkdir -p /media/datadrive
we are just going to use datadrive
as the example for the mount point.
Next, we need to get the UUID of the drive so we can make the mount come up the same every boot.
sudo blkid
Here is an example:
terrance@terrance-ubuntu:~$ sudo blkid
/dev/sde1: UUID="9e4539a5-7229-424e-aa91-60ab1417e6f1" TYPE="ext4" PARTUUID="00090c7c-01"
使用上面示例中的UUID号,现在我们将其添加到/etc/fstab
文件中。使用您喜欢的编辑器,然后将以下行添加到/etc/fstab
文件中。注意:该文件归root拥有,因此需要使用提升的权限进行编辑。
sudo nano /etc/fstab
然后添加到底部:
UUID=9e4539a5-7229-424e-aa91-60ab1417e6f1 /media/datadrive ext4 default 0 0
现在,您可以通过键入以下内容来激活安装,而无需重新引导:
sudo mount -a
现在,每次重新启动时,新驱动器将每次都安装到/media/datadrive
安装点。
希望这可以帮助!
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句