比较来自世界各地的卖家的域名和 IT 服务价格

无法安装光盘 SATA 从案件中移动时 USB 在内部

我已经有了 4 通过磁盘连接 USB 到我的工作站 Dell Precision 490.

他们是B. / etc / fstab 经过 uuid 并格式化为 UUID.

UUID=04c37bff-b93e-440e-acd0-3d984ddb2ec3 /mnt/drive0 ext4 defaults,nobootwait 0 2
UUID=210765f4-30e5-4863-a40b-aa1fffefe5ca /mnt/drive1 ext4 defaults,nobootwait 0 2
UUID=b981c5e7-249e-4430-9887-96ca674e0733 /mnt/drive2 ext4 defaults,nobootwait 0 2
UUID=22c8a274-3cf9-403f-9558-feb531e407c7 /mnt/drive3 ext4 defaults,nobootwait 0 2

我在里面插入了三个磁盘,但只有一个自动安装 (磁盘 3, 磁盘 2 仍然在外部连接)

$ mount | grep /dev/sd
/dev/sdc1 on /boot type ext2 (rw)
/dev/sdb1 on /mnt/drive3 type ext4 (rw)
/dev/sdf1 on /mnt/drive2 type ext4 (rw)

但它们都出现了:

$ sudo fdisk -l
WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.


Disk /dev/sda: 120.0 GB, 120034123776 bytes
<snip>

Disk /dev/sdb: 5001.0 GB, 5000981078016 bytes
255 heads, 63 sectors/track, 608001 cylinders, total 9767541168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xdd494cbf

Device Boot Start End Blocks Id System
/dev/sdb1 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.

Disk /dev/sdd: 5001.0 GB, 5000981078016 bytes
42 heads, 62 sectors/track, 3750975 cylinders, total 9767541168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xec15dda8

Device Boot Start End Blocks Id System
/dev/sdd1 256 1220942644 610471194+ 83 Linux

Disk /dev/sde: 5001.0 GB, 5000981078016 bytes
255 heads, 63 sectors/track, 608001 cylinders, total 9767541168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x4cd5215a

Device Boot Start End Blocks Id System
/dev/sde1 63 1220942644 610471291 83 Linux
Partition 1 does not start on physical sector boundary.

Disk /dev/sdc: 500.1 GB, 500107862016 bytes
<snip>

Disk /dev/sdf: 5001.0 GB, 5000981073920 bytes
255 heads, 63 sectors/track, 76000 cylinders, total 1220942645 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x6b6805d9

Device Boot Start End Blocks Id System
/dev/sdf1 63 1220942644 588803032 83 Linux

$ ls /dev/sd*
/dev/sda /dev/sda1 /dev/sdb /dev/sdb1 /dev/sdc /dev/sdc1 /dev/sdc2 /dev/sdc5 /dev/sdd /dev/sdd1 /dev/sde /dev/sde1 /dev/sdf /dev/sdf1

如果我尝试正常安装:

$ sudo mkdir /mnt/temp
$ sudo mount -t ext4 /dev/sde1 /mnt/temp
mount: wrong fs type, bad option, bad superblock on /dev/sde1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
$ dmesg | tail
[87143.301150] EXT4-fs (sde1): VFS: Can't find ext4 filesystem
[87295.537835] EXT4-fs (sde1): VFS: Can't find ext4 filesystem
[87315.780147] EXT4-fs (sde1): VFS: Can't find ext4 filesystem
[87315.780290] EXT4-fs (sde1): VFS: Can't find ext4 filesystem
[87315.780421] EXT4-fs (sde1): VFS: Can't find ext4 filesystem

在车上 5 罗维纳 SATA, 我也买了一个控制器 PCIe SATA 并尝试过。 没有不同。 端口之间的移动设备仍然没有任何差异。 两块其他磁盘始终连接。

我用控制器返回适当的外部兵团 USB, 他们赚了。 虽然当我尝试使用直接连接的驱动器中的情况时,但它没有被识别。

谢!

更改:添加输出 gdisk

$ sudo gdisk /dev/sde
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: not present


***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. THIS OPERATION IS POTENTIALLY DESTRUCTIVE! Exit by
typing 'q' if you don't want to convert your MBR partitions
to GPT format!
***************************************************************


Command (? for help): p
Disk /dev/sde: 9767541168 sectors, 4.5 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 00C22148-8C82-4062-BEC5-6759E7E23856
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 9767541134
Partitions will be aligned on 8-sector boundaries
Total free space is 8546598519 sectors (4.0 TiB)

Number Start (sector) End (sector) Size Code Name
1 63 1220942644 582.2 GiB 8300 Linux filesystem

$ sudo gdisk /dev/sdb
GPT fdisk (gdisk) version 0.8.8

Partition table scan:
MBR: protective
BSD: not present
APM: not present
GPT: present

Found valid GPT with protective MBR; using GPT.

Command (? for help): p
Disk /dev/sdb: 9767541168 sectors, 4.5 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): E76C335B-FBA1-4FE0-9DC2-C5CADBECA6B0
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 9767541133
Partitions will be aligned on 8-sector boundaries
Total free space is 0 sectors (0 bytes)

Number Start (sector) End (sector) Size Code Name
1 34 9767541133 4.5 TiB 8300 disk4

有趣的是,似乎未安装的磁盘,使用 MBR 反而 GPT?
</snip></snip>
已邀请:

奔跑吧少年

赞同来自:

看起来像是描述的问题
https://superuser.com/question ... -disk
: 兵团 USB 报告了主板大小以外的扇区的大小,并且由于分区表以不同方式解释。

我有一个类似的问题 4 TB,我从住房移动 USB 在内端口 SATA. 显然,建筑物 USB 报告4K部门,因此我能够使用旧式分区表 MBR 创建一个部分 ext4 4 结核病。 通过连接磁盘后 SATA 部分 ext4 显然不再是因为现在它是用512B扇区对磁盘进行处理。

我使用以下步骤解决了它
http://www.cgsecurity.org/wiki/TestDisk
数据恢复工具可用 Ubuntu:

创建了源分区表的备份 (

sfdisk -d /dev/sdb > sfdisk-sdb.txt

), 为了安全

用过的

testdisk /dev/sdb

找到源文件系统 ext4

让我们 testdisk 写一个新的分区表 MBR 在磁盘上

从表格以来 MBR 不支持部分 4 TB,部分 ext4 仍然无法安装错误

EXT4-fs (sdb1): bad geometry: block count 976751744 exceeds size of device (536870911 blocks)

用过的

gdisk /dev/sdb

变形 MBR 格式化 GPT 并写下来 GPT 在磁盘上

用过的

testdisk /dev/sdb

再次找到源文件系统 ext4 (它检测到错误类型的文件系统,但这并不重要), 并让她录制一个新表 GPT 在磁盘上

用过的

gdisk /dev/sdb

更改错误检测到的文件系统类型

8300

也许我只是幸运,但在这个过程之后的文件系统 ext4 可以像往常一样安装。

fsck -f /dev/sdb1

没有发现任何错误和

blkid /dev/sdb1



tune2fs /dev/sdb1

与使用案件时的结果相同 USB.

要回复问题请先登录注册