刚买了一个 Seagate 4TB USB HDD 用于备份,但它不会由 16.04 xenial 自动安装。
这是我从 dmesg 看到的内容:
[ 4332.436035] usb 2-1: new high-speed USB device number 8 using ehci-pci
[ 4332.569699] usb 2-1: New USB device found, idVendor=0bc2, idProduct=ab28
[ 4332.569704] usb 2-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 4332.569706] usb 2-1: Product: BUP BK
[ 4332.569708] usb 2-1: Manufacturer: Seagate
[ 4332.569710] usb 2-1: SerialNumber: NA7P6M67
[ 4332.570939] scsi host9: uas
[ 4332.573015] scsi 9:0:0:0: Direct-Access Seagate BUP BK 0304 PQ: 0 ANSI: 6
[ 4332.574788] sd 9:0:0:0: Attached scsi generic sg7 type 0
[ 4332.575567] sd 9:0:0:0: [sdd] Spinning up disk...
[ 4333.576031] .....ready
[ 4337.592589] sd 9:0:0:0: [sdd] 7814037167 512-byte logical blocks: (4.00 TB/3.64 TiB)
[ 4337.592594] sd 9:0:0:0: [sdd] 2048-byte physical blocks
[ 4337.670470] sd 9:0:0:0: [sdd] Write Protect is off
[ 4337.670476] sd 9:0:0:0: [sdd] Mode Sense: 4f 00 00 00
[ 4337.671201] sd 9:0:0:0: [sdd] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 4337.830069] Alternate GPT is invalid, using primary GPT.
[ 4337.830089] sdd: sdd1 sdd2
[ 4337.834193] sd 9:0:0:0: [sdd] Attached SCSI disk
更新-第二天
[47837.368954] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
然后在 fdisk 中:
adam@gondor:~$ sudo fdisk /dev/sdd
[sudo] password for adam:
The backup GPT table is corrupt, but the primary appears OK, so that will be used.
Disk /dev/sdd: 3.7 TiB, 4000787029504 bytes, 7814037167 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 33553920 bytes
Disklabel type: gpt
Disk identifier: 10EA27FC-6BA7-49C5-BD29-A7F10C16B330
Device Start End Sectors Size Type
/dev/sdd1 34 262177 262144 128M Microsoft reserved
/dev/sdd2 264192 7814035455 7813771264 3.7T Microsoft basic data
Partition 1 does not start on physical sector boundary.
adam@gondor:~$
这个错误是不是与‘备用 GPT’有关的问题?
我应该用 重新格式化它吗ext4
?4TB 大小有什么特殊问题吗?
答案1
来自评论...
如果您与 Windows 双启动,请打开管理命令控制台并输入chkdsk /f d:
(将“d”更改为相应的驱动器号)以检查磁盘。
在 Ubuntu 中,该驱动器将出现在 Nautilus 文件窗口的左侧窗格中,您可以单击它来安装该驱动器。
与任何新购买的驱动器一样,我始终建议您使用 重新初始化它gparted
。从 Unity 仪表板启动它。如果尚未安装,请terminal
输入:
sudo apt-get update
sudo apt-get install gparted
然后使用gparted
它来设置新的 GPT 分区表,并根据需要创建新的分区。对于与 Windows 系统共享的驱动器,请使用 NTFS;对于仅用于 Ubuntu 的配置,请使用 EXT4。
您必须进行编辑/etc/fstab
才能使其在启动时自动挂载。类似于:
sudo blkid # to obtain the correct UUID number
sudo mkdir /media/username/some_mountpoint_name # for drives owned by root
sudo chown username: /media/username/some_mountpoint_name # for drives owned by username
并添加与其中一个类似的内容到/etc/fstab
...
# shared EXT4 disk
UUID=correct_UUID_# /media/username/some_mountpoint_name EXT4 defaults 0 2
# shared ntfs disk
UUID=correct_UUID_# /media/username/some_mountpoint_name ntfs-3g defaults 0 0