找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 311|回复: 2

群晖、威联通硬盘挂载到linux

[复制链接]
转自本人博客:群晖、威联通硬盘挂载到linux

群晖跟威联通磁盘管理方式都大致相同,每块硬盘都需要归属到“资源池”,如果是几个硬盘组成的“资源池”那么就是自动组raid了;
然后很多人以为选择单盘建立“资源池”就不是raid了,其实并不是,即使是单盘basic模式建立的“资源池”也是raid格式,直接插入linux是不能直接挂载的。
如果插到普通主板,进入windows系统,那么可以用"UFS Explorer Professional Recovery"软件进行访问(只能访问不能写入)
如果是linux的话,可以通过以下方式挂载
  1. root@OpenWrt:~# fdisk -l
  2. Disk /dev/sda: 5 GiB, 5368709120 bytes, 10485760 sectors
  3. Disk model: VMware Virtual S
  4. Units: sectors of 1 * 512 = 512 bytes
  5. Sector size (logical/physical): 512 bytes / 512 bytes
  6. I/O size (minimum/optimal): 512 bytes / 512 bytes
  7. Disklabel type: dos
  8. Disk identifier: 0x529e51f2

  9. Device     Boot  Start     End Sectors  Size Id Type
  10. /dev/sda1  *       512  524799  524288  256M 83 Linux
  11. /dev/sda2       525312 4719615 4194304    2G 83 Linux


  12. Disk /dev/sdb: 5 GiB, 5368709120 bytes, 10485760 sectors
  13. Disk model: VMware Virtual S
  14. Units: sectors of 1 * 512 = 512 bytes
  15. Sector size (logical/physical): 512 bytes / 512 bytes
  16. I/O size (minimum/optimal): 512 bytes / 512 bytes
  17. Disklabel type: dos
  18. Disk identifier: 0x732f7d91

  19. Device     Boot Start      End  Sectors Size Id Type
  20. /dev/sdb1  *     2048 10485759 10483712   5G  b W95 FAT32


  21. Disk /dev/sdc: 14.55 TiB, 16000900661248 bytes, 31251759104 sectors
  22. Disk model: VMware Virtual S
  23. Units: sectors of 1 * 512 = 512 bytes
  24. Sector size (logical/physical): 512 bytes / 512 bytes
  25. I/O size (minimum/optimal): 512 bytes / 512 bytes
  26. Disklabel type: gpt
  27. Disk identifier: 60AC4B65-2FBD-45D5-BA2E-6AA9E3B6BB8A

  28. Device           Start         End     Sectors   Size Type
  29. /dev/sdc1           40     1060289     1060250 517.7M Microsoft basic data
  30. /dev/sdc2      1060296     2120579     1060284 517.7M Microsoft basic data
  31. /dev/sdc3      2120584 31233958559 31231837976  14.5T Microsoft basic data
  32. /dev/sdc4  31233958568 31235018849     1060282 517.7M Microsoft basic data
  33. /dev/sdc5  31235018856 31251742514    16723659     8G Microsoft basic data
  34. root@OpenWrt:~#
  35. root@OpenWrt:~#
  36. root@OpenWrt:~#
  37. root@OpenWrt:~# mdadm --assemble /dev/md0 /dev/sdc3 --run
  38. mdadm: /dev/md0 has been started with 1 drive.
  39. root@OpenWrt:~#
  40. root@OpenWrt:~#
  41. root@OpenWrt:~#
  42. root@OpenWrt:~# fdisk -l
  43. Disk /dev/sda: 5 GiB, 5368709120 bytes, 10485760 sectors
  44. Disk model: VMware Virtual S
  45. Units: sectors of 1 * 512 = 512 bytes
  46. Sector size (logical/physical): 512 bytes / 512 bytes
  47. I/O size (minimum/optimal): 512 bytes / 512 bytes
  48. Disklabel type: dos
  49. Disk identifier: 0x529e51f2

  50. Device     Boot  Start     End Sectors  Size Id Type
  51. /dev/sda1  *       512  524799  524288  256M 83 Linux
  52. /dev/sda2       525312 4719615 4194304    2G 83 Linux


  53. Disk /dev/sdb: 5 GiB, 5368709120 bytes, 10485760 sectors
  54. Disk model: VMware Virtual S
  55. Units: sectors of 1 * 512 = 512 bytes
  56. Sector size (logical/physical): 512 bytes / 512 bytes
  57. I/O size (minimum/optimal): 512 bytes / 512 bytes
  58. Disklabel type: dos
  59. Disk identifier: 0x732f7d91

  60. Device     Boot Start      End  Sectors Size Id Type
  61. /dev/sdb1  *     2048 10485759 10483712   5G  b W95 FAT32


  62. Disk /dev/sdc: 14.55 TiB, 16000900661248 bytes, 31251759104 sectors
  63. Disk model: VMware Virtual S
  64. Units: sectors of 1 * 512 = 512 bytes
  65. Sector size (logical/physical): 512 bytes / 512 bytes
  66. I/O size (minimum/optimal): 512 bytes / 512 bytes
  67. Disklabel type: gpt
  68. Disk identifier: 60AC4B65-2FBD-45D5-BA2E-6AA9E3B6BB8A

  69. Device           Start         End     Sectors   Size Type
  70. /dev/sdc1           40     1060289     1060250 517.7M Microsoft basic data
  71. /dev/sdc2      1060296     2120579     1060284 517.7M Microsoft basic data
  72. /dev/sdc3      2120584 31233958559 31231837976  14.5T Microsoft basic data
  73. /dev/sdc4  31233958568 31235018849     1060282 517.7M Microsoft basic data
  74. /dev/sdc5  31235018856 31251742514    16723659     8G Microsoft basic data


  75. Disk /dev/md0: 14.54 TiB, 15990700900352 bytes, 31231837696 sectors
  76. Units: sectors of 1 * 512 = 512 bytes
  77. Sector size (logical/physical): 512 bytes / 512 bytes
  78. I/O size (minimum/optimal): 512 bytes / 512 bytes


  79. Disk /dev/mapper/vg289-lv545: 144.12 GiB, 154744651776 bytes, 302235648 sectors
  80. Units: sectors of 1 * 512 = 512 bytes
  81. Sector size (logical/physical): 512 bytes / 512 bytes
  82. I/O size (minimum/optimal): 512 bytes / 512 bytes


  83. Disk /dev/mapper/vg289-lv2: 14.4 TiB, 15835947073536 bytes, 30929584128 sectors
  84. Units: sectors of 1 * 512 = 512 bytes
  85. Sector size (logical/physical): 512 bytes / 512 bytes
  86. I/O size (minimum/optimal): 512 bytes / 512 bytes
  87. root@OpenWrt:~#
  88. root@OpenWrt:~#
  89. root@OpenWrt:~#
  90. root@OpenWrt:~# mount /dev/mapper/vg289-lv2 /mnt/sdc3
  91. NTFS signature is missing.
  92. Failed to mount '/dev/mapper/vg289-lv2': Invalid argument
  93. The device '/dev/mapper/vg289-lv2' doesn't seem to have a valid NTFS.
  94. Maybe the wrong device is used? Or the whole disk instead of a
  95. partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around?
  96. root@OpenWrt:~#
  97. root@OpenWrt:~# df -h
  98. Filesystem                Size      Used Available Use% Mounted on
  99. /dev/root                 2.0G    259.8M      1.7G  13% /
  100. tmpfs                     1.5G    672.0K      1.5G   0% /tmp
  101. /dev/sda1               252.0M      5.0M    241.8M   2% /boot
  102. /dev/sda1               252.0M      5.0M    241.8M   2% /boot
  103. tmpfs                   512.0K         0    512.0K   0% /dev
  104. /dev/mapper/vg289-lv2
  105.                          14.3T     44.9G     14.2T   0% /mnt/sdc3
  106. root@OpenWrt:~#
  107. root@OpenWrt:~#
  108. root@OpenWrt:~#
复制代码
其实就是先fdisk -l看看分区,然后用mdadm 命令转接到一个块设备(转接前建议先看看块设备md0是否存在避免冲突),之后再用mount挂载,openwrt未必有mdadm命令,建议先安装opkg update && opkg install mdadm

我的恩山、我的无线 The best wifi forum is right here.
 楼主| | 显示全部楼层
占楼
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

谢谢经验分享
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

欢迎大家光临恩山无线论坛上一条 /1 下一条

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-5-5 08:52

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表