Jac*_*kWM 1 filesystems mysql ubuntu external-hard-drive
我买了一个 3TB WD Elements 外置硬盘。现在我想将它挂载到我的 Ubuntu 服务器(在 WinXP/VMware 中运行),以便我可以将 Mysql 数据库移动到它。
它被自动安装在 /media/Elements
第一个问题是:我无法更改media/Elements. 我认为问题是文件系统media/Elementsis fuseblk。
> sudo fdisk -l
Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00004cdb
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1244 9990144 83 Linux
/dev/sda2 1244 1306 492545 5 Extended
/dev/sda5 1244 1306 492544 82 Linux swap / Solaris
Note: sector size is 4096 (not 512)
Disk /dev/sdc: 3000.6 GB, 3000590401536 bytes
255 heads, 63 sectors/track, 45600 cylinders
Units = cylinders of 16065 * 4096 = 65802240 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00052a80
Device Boot Start End Blocks Id System
/dev/sdc1 1 45601 2930263040 7 HPFS/NTFS
Run Code Online (Sandbox Code Playgroud)
然后我尝试使用gparted重新格式化外部驱动器,但它忽略了对扇区大小为 4096 的驱动器进行操作。
sudo gparted
======================
libparted : 2.2
======================
Device /dev/sdc has a logical sector size of 4096. Not all parts of GNU Parted support this at the moment, and the working code is HIGHLY EXPERIMENTAL.
Ignoring device /dev/sdc with logical sector size of 4096 bytes because gparted only supports a size of 512 bytes.
Run Code Online (Sandbox Code Playgroud)
我的最终目标是让Mysql在这个外部驱动器中存储的数据上运行,有什么解决方案吗?
您可以跳过重新分区硬盘驱动器。它已经分区为覆盖整个磁盘的单个大分区,这可能是您想要的。继续并在以下位置创建一个 ext4 文件系统/dev/sdc1:
mkfs -t ext4 /dev/sdc1
Run Code Online (Sandbox Code Playgroud)
/media/Elements在创建新文件系统之前,不要忘记卸载它(从)或它挂载的任何地方)!
如果您仍想对其重新分区,请尝试使用gdisk(处理现代 GUID 分区表类型的fdisk分区管理器)或(传统分区管理器),因为显然gparted不想处理此磁盘。
| 归档时间: |
|
| 查看次数: |
10730 次 |
| 最近记录: |