我正在尝试在GPT磁盘上安装分区,但是出现以下错误:
$ sudo mount -t ext4 /dev/sda1 disk/
mount: special device /dev/sda1 does not exist
查看dmesg,在/ dev / sda上没有看到任何错误:
$ dmesg | grep sda
[ 1.367508] sd 0:0:0:0: [sda] 5860533168 512-byte logical blocks: (3.00 TB/2.72 TiB)
[ 1.367514] sd 0:0:0:0: [sda] 4096-byte physical blocks
[ 1.367607] sd 0:0:0:0: [sda] Write Protect is off
[ 1.367611] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1.367654] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.367936] sda:
[ 1.392417] sd 0:0:0:0: [sda] Attached SCSI disk
fdisk报告GPT分区:
$ sudo fdisk -l /dev/sda
Disk /dev/sda: 3000.6 GB, 3000592982016 bytes
256 heads, 63 sectors/track, 363376 cylinders
Units = cylinders of 16128 * 512 = 8257536 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sda1 1 45423 366283322+ ee GPT
Partition 1 does not start on physical sector boundary.
分手失败:
$ sudo parted /dev/sda print
Error: /dev/sda: unrecognised disk label
内核似乎支持EFI(如何在Debian GNU / Linux 5.0.3(Lenny)中的具有EFI GPT分区表的磁盘上安装分区)
$ cat /boot/config-2.6.32-5-amd64 | grep EFI
CONFIG_EFI=y
CONFIG_FB_EFI=y
CONFIG_EFI_VARS=m
CONFIG_CACHEFILES=m
# CONFIG_CACHEFILES_DEBUG is not set
# CONFIG_CACHEFILES_HISTOGRAM is not set
CONFIG_EFI_PARTITION=y
如何挂载此GPT分区?
编辑:我刚刚将失败的同一张磁盘连接到另一台机器,我可以顺利看到内容。把它放回原来的盒子,我遇到了同样的问题。
1
我遇到了与您完全相同的问题-您是否解决过?
—
Eborbob 2015年
我以为我遇到了这个问题,但结果却是我尝试挂载/ dev / sda而不是/ dev / sda1。一旦切换,就可以顺利进行(即使使用大型GPT光盘)。
—
cag51