转自本人博客:群晖、威联通硬盘挂载到linux
群晖跟威联通磁盘管理方式都大致相同,每块硬盘都需要归属到“资源池”,如果是几个硬盘组成的“资源池”那么就是自动组raid了;
然后很多人以为选择单盘建立“资源池”就不是raid了,其实并不是,即使是单盘basic模式建立的“资源池”也是raid格式,直接插入linux是不能直接挂载的。
如果插到普通主板,进入windows系统,那么可以用"UFS Explorer Professional Recovery"软件进行访问(只能访问不能写入) 如果是linux的话,可以通过以下方式挂载 - root@OpenWrt:~# fdisk -l
- Disk /dev/sda: 5 GiB, 5368709120 bytes, 10485760 sectors
- Disk model: VMware Virtual S
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x529e51f2
- Device Boot Start End Sectors Size Id Type
- /dev/sda1 * 512 524799 524288 256M 83 Linux
- /dev/sda2 525312 4719615 4194304 2G 83 Linux
- Disk /dev/sdb: 5 GiB, 5368709120 bytes, 10485760 sectors
- Disk model: VMware Virtual S
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x732f7d91
- Device Boot Start End Sectors Size Id Type
- /dev/sdb1 * 2048 10485759 10483712 5G b W95 FAT32
- Disk /dev/sdc: 14.55 TiB, 16000900661248 bytes, 31251759104 sectors
- Disk model: VMware Virtual S
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: gpt
- Disk identifier: 60AC4B65-2FBD-45D5-BA2E-6AA9E3B6BB8A
- Device Start End Sectors Size Type
- /dev/sdc1 40 1060289 1060250 517.7M Microsoft basic data
- /dev/sdc2 1060296 2120579 1060284 517.7M Microsoft basic data
- /dev/sdc3 2120584 31233958559 31231837976 14.5T Microsoft basic data
- /dev/sdc4 31233958568 31235018849 1060282 517.7M Microsoft basic data
- /dev/sdc5 31235018856 31251742514 16723659 8G Microsoft basic data
- root@OpenWrt:~#
- root@OpenWrt:~#
- root@OpenWrt:~#
- root@OpenWrt:~# mdadm --assemble /dev/md0 /dev/sdc3 --run
- mdadm: /dev/md0 has been started with 1 drive.
- root@OpenWrt:~#
- root@OpenWrt:~#
- root@OpenWrt:~#
- root@OpenWrt:~# fdisk -l
- Disk /dev/sda: 5 GiB, 5368709120 bytes, 10485760 sectors
- Disk model: VMware Virtual S
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x529e51f2
- Device Boot Start End Sectors Size Id Type
- /dev/sda1 * 512 524799 524288 256M 83 Linux
- /dev/sda2 525312 4719615 4194304 2G 83 Linux
- Disk /dev/sdb: 5 GiB, 5368709120 bytes, 10485760 sectors
- Disk model: VMware Virtual S
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: dos
- Disk identifier: 0x732f7d91
- Device Boot Start End Sectors Size Id Type
- /dev/sdb1 * 2048 10485759 10483712 5G b W95 FAT32
- Disk /dev/sdc: 14.55 TiB, 16000900661248 bytes, 31251759104 sectors
- Disk model: VMware Virtual S
- Units: sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disklabel type: gpt
- Disk identifier: 60AC4B65-2FBD-45D5-BA2E-6AA9E3B6BB8A
- Device Start End Sectors Size Type
- /dev/sdc1 40 1060289 1060250 517.7M Microsoft basic data
- /dev/sdc2 1060296 2120579 1060284 517.7M Microsoft basic data
- /dev/sdc3 2120584 31233958559 31231837976 14.5T Microsoft basic data
- /dev/sdc4 31233958568 31235018849 1060282 517.7M Microsoft basic data
- /dev/sdc5 31235018856 31251742514 16723659 8G Microsoft basic data
- Disk /dev/md0: 14.54 TiB, 15990700900352 bytes, 31231837696 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 /dev/mapper/vg289-lv545: 144.12 GiB, 154744651776 bytes, 302235648 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 /dev/mapper/vg289-lv2: 14.4 TiB, 15835947073536 bytes, 30929584128 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
- root@OpenWrt:~#
- root@OpenWrt:~#
- root@OpenWrt:~#
- root@OpenWrt:~# mount /dev/mapper/vg289-lv2 /mnt/sdc3
- NTFS signature is missing.
- Failed to mount '/dev/mapper/vg289-lv2': Invalid argument
- The device '/dev/mapper/vg289-lv2' doesn't seem to have a valid NTFS.
- Maybe the wrong device is used? Or the whole disk instead of a
- partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
- root@OpenWrt:~#
- root@OpenWrt:~# df -h
- Filesystem Size Used Available Use% Mounted on
- /dev/root 2.0G 259.8M 1.7G 13% /
- tmpfs 1.5G 672.0K 1.5G 0% /tmp
- /dev/sda1 252.0M 5.0M 241.8M 2% /boot
- /dev/sda1 252.0M 5.0M 241.8M 2% /boot
- tmpfs 512.0K 0 512.0K 0% /dev
- /dev/mapper/vg289-lv2
- 14.3T 44.9G 14.2T 0% /mnt/sdc3
- root@OpenWrt:~#
- root@OpenWrt:~#
- root@OpenWrt:~#
复制代码其实就是先fdisk -l看看分区,然后用mdadm 命令转接到一个块设备(转接前建议先看看块设备md0是否存在避免冲突),之后再用mount挂载,openwrt未必有mdadm命令,建议先安装opkg update && opkg install mdadm
|