加载黑群晖启动盘修改配置

如何在群晖的SSH里面修改黑群晖启动盘的grub.cfg,当然前提是要加载U盘了,可是试了一个小时总说:

# mount -t vfat /dev/synoboot1 /mnt/usb
mount: wrong fs type, bad option, bad superblock on /dev/synoboot1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.

快被搞疯了,上网找了半天终于找到了有人提到相关的问题。

https://xpenology.com/forum/topic/3461-how-to-hide-your-xpenoboot-usb-drive-from-dsm/

Posted June 23, 2015 (edited)
Guys, I apologize for the bad /dev/synoboot1 mounting command in my original instruction.
Let me demonstrate the non-working and working method to mounting /dev/synoboot1 to a folder.
This method does NOT work!
Diskstation> mkdir -p /mountMe
Diskstation> mount -t vfat /dev/synoboot1 /mountMe
mount: mounting /dev/synoboot1 on /mountMe failed: Invalid argument
NOTE: for some reason, you cannot perform the mount command by declaring the full path of /dev/synoboot1.
You must cd into /dev/ first, and then mount synoboot1
This method WORKS!!!
Diskstation> mkdir -p /mountMe
Diskstation> cd /dev
Diskstation> mount -t vfat synoboot1 /mountMe
Diskstation> ls -l /mountMe
-r-xr-xr-x 1 root root 116632 Jun 5 20:39 ldlinux.c32
-r-xr-xr-x 1 root root 61440 Jun 5 20:39 ldlinux.sys
-rwxr-xr-x 1 root root 23488 Jun 5 20:39 libutil.c32
-rwxr-xr-x 1 root root 25676 Jun 5 20:39 menu.c32
-rwxr-xr-x 1 root root 767 Jun 23 02:17 syslinux.cfg
-rwxr-xr-x 1 root root 15777952 Jun 5 20:39 zImage
I can't explain why the first method with full path does not work, but the second method works for me.
I've updated the mounting instruction on the first page with this. Hope it works for you guys too.
Edited June 23, 2015 by Guest

原来事情是这么简单,想起来上次也是搞了很久,这次一定要记下来下次查笔记。
一定要切换目录进去/dev目录,再进行mount就可以了。

至于事情为什么会这样子,可能是群晖的黑锅。

root@DS3615xs:/mnt# cd /dev
root@DS3615xs:/dev# mount -t vfat synoboot1 /mnt/usb
root@DS3615xs:/dev# cd /mnt/usb
root@DS3615xs:/mnt/usb# ls
EFI  grub  GRUB_VER  System Volume Information
root@DS3615xs:/mnt/usb# cd grub
root@DS3615xs:/mnt/usb/grub# ls
fonts  grub.cfg  grubenv  i386-pc  locale  x86_64-efi

这样子就可以修改grub.cfg里面的序列号了,改完重启机器就OK。

One thought on “加载黑群晖启动盘修改配置

  • 沃日!
    折腾半天,简直TM的智障啊群晖。。。他们的mount是改了啥,绝对路径报错,到目录下执行却OK,害死个人啊,感谢了~

Leave a Reply

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注