https://help.ubuntu.com/community/Boot-Repair
https://askubuntu.com/questions/500647/unable-to-mount-ntfs-external-hard-drive
3
This error means that you can't create a partition of more than 2 TiB on an MBR-partitioned disk. You must use GPT partitioning.
To resolve the issue, create the GPT first:
parted /dev/vdb mklabel gpt
Then continue with your partitioning as normal.
https://serverfault.com/questions/503673/error-partition-length-of-6442450944-sectors-exceeds-the-loop-partition-table-i
Linux挂载大于2T的磁盘硬盘
最近公司硬盘用量激增,需要给服务器增加一个3T的硬盘。
但是第一次使用 fdisk 挂载的时候最多只能挂载2T的容量
上网查了资料总结出
挂载2T以上的硬盘需要GPT格式,使用parted命令,细节如下
(1)parted /dev/sdb (视具体情况盘符编号)
(2)print (查看当前分区情况)
复制代码
GNU Parted 2.1
使用 /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: DELL PERC H700 (scsi)
Disk /dev/sdb: 3599GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name 标志 (这个是我挂载好的,默认只有这一行)
1 1049kB 3599GB 3599GB ext4 primary
复制代码
(3)mklabel gpt (设置分区类型为gpt)
(4)mkpart extended 0% 100% (扩展分区extended ,主分区primary ,并使用整个硬盘)
(5)print (查看一下)
(6)quit
Information: You may need to update /etc/fstab.
(7)mkfs.ext4 /dev/sdc1(格式化新硬盘)
(8)mount /dev/sdc1 /data (挂载,之后即可使用了,第二个参数是挂载到哪个目录)
还没有完事,这样挂载的重启整个服务器后不会自动挂载
需要修改/etc/fstab文件,在文件最后追加
/dev/sdb1 /data ext4 defaults 0 0
这样在重启后会自动挂载
希望可以帮到你
pm@pm:~$ sudo mount -o rw,remount /dev/sdd /media
mount: cannot remount /dev/sdd read-write, is write-protected
pm@pm:~$ sudo fsck -Af -M
fsck from util-linux 2.27.1
pm@pm:~$ sudo reboot