我整个晚上都在为这个问题绞尽脑汁,但似乎无法解决这个问题。
我最近安装了 Linux Mint 17.3 Mate 来替换我的 Windows 10 机器,经过一番修补后,我终于可以使用了。
我遇到的唯一问题是让 raid0 磁盘在启动时自动挂载。
如果我想安装磁盘,我必须打开终端并输入:
Nebuchadnezzar ~ # mdadm --assemble --scan
mdadm: Container /dev/md126 has been assembled with 2 drives
然后我就可以在大部分情况下正常使用驱动器了。不过,我似乎仍然无法通过 /media/storage 访问它们。有什么方法可以设置 mdadm 在 /media/storage 启动期间自动挂载这个 raid 阵列?
FDISK -L 输出:
Nebuchadnezzar ~ # fdisk -l
Disk /dev/sda: 480.1 GB, 480103981056 bytes
255 heads, 63 sectors/track, 58369 cylinders, total 937703088 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0003bd2e
Device Boot Start End Blocks Id System
/dev/sda1 2048 499711 248832 83 Linux
/dev/sda2 501758 937701375 468599809 5 Extended
/dev/sda5 501760 937701375 468599808 8e Linux LVM
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
256 heads, 63 sectors/track, 242251 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 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/sdb1 1 4294967295 2147483647+ ee GPT
Partition 1 does not start on physical sector boundary.
Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/sdc doesn't contain a valid partition table
Disk /dev/mapper/mint--vg-root: 445.5 GB, 445481222144 bytes
255 heads, 63 sectors/track, 54160 cylinders, total 870080512 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/mint--vg-root doesn't contain a valid partition table
Disk /dev/mapper/mint--vg-swap_1: 34.3 GB, 34313601024 bytes
255 heads, 63 sectors/track, 4171 cylinders, total 67018752 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/mint--vg-swap_1 doesn't contain a valid partition table
/etc/fstab
Nebuchadnezzar ~ # cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
/dev/mapper/mint--vg-root / ext4 errors=remount-ro 0 1
# /boot was on /dev/sda1 during installation
#UUID=5c4853b8-7c35-421e-81d2-6c45ac712770 /boot ext2 defaults 0 2
/dev/mapper/mint--vg-swap_1 none swap sw 0 0
UUID=5c4853b8-7c35-421e-81d2-6c45ac712770 /boot ext2 defaults 02
#Raid Addon
/dev/md126 /media/storage ext4 defaults,nobootwait 0 0
/etc/mdadm/mdadm.conf
Nebuchadnezzar ~ # cat /etc/mdadm/mdadm.conf
# mdadm.conf
#
# Please refer to mdadm.conf(5) for information about this file.
#
DEVICE partitions
# auto-create devices with Debian standard permissions
CREATE owner=root group=disk mode=0660 auto=yes
# automatically tag new arrays as belonging to the local system
HOMEHOST <system>
# instruct the monitoring daemon where to send mail alerts
MAILADDR root
ARRAY /dev/md126 UUID=d6942994:2c24623b:07cd5adc:651ba0ae
任何帮助将非常感激!