我最近在我的 Ubuntu 10.0.4 机器上安装了一个新硬盘。我使用 System -> Administration -> Disk Utils 来格式化磁盘(ext4 文件类型) - 但没有创建分区(这是可取的吗?)。
我已将驱动器手动安装为 /mydata。
我想让机器在启动/重启时自动挂载设备。我该怎么做?
[[更新]]
这是sudo fdisk -l在我的系统上运行的输出:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 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: 0x000858bf
Device Boot Start End Blocks Id System
/dev/sda1 * 1 59334 476595200 83 Linux
/dev/sda2 …Run Code Online (Sandbox Code Playgroud) fstab ×1