stevoith Posted October 25, 2014 Share Posted October 25, 2014 Hello folks, Hopefully a straight forward problem I'm trying to mount a cache pool at boot time to use for docker, but the mount command fails during boot. Just before the login screen on my console I see mount: wrong fs type, bad option, bad superblock on /dev/sdd, missing code page or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so. strange thing is there is nothing logged in dmesg not even the failure. this is all I have in the go file :- #!/bin/bash mkdir -p /mnt/btrfs mount -t btrfs /dev/disk/by-id/ata-3E128-TS2-550B01_FL002LXK /mnt/btrfs # Start the Management Utility /usr/local/sbin/emhttp & if I then ssh onto the server and copy and paste the exact mount command as above it works fine. The server version is 6 beta10a. newly built box so still in the configuration stage. Any help appreciated. Thanks Steve Quote Link to comment
razmajazz Posted October 25, 2014 Share Posted October 25, 2014 You need to indicate the partition to mount (presumably the first one): mount -t btrfs /dev/disk/by-id/ata-3E128-TS2-550B01_FL002LXK-part1 /mnt/btrfs Quote Link to comment
stevoith Posted October 28, 2014 Author Share Posted October 28, 2014 hmm I don't appear to have a -part1, I did at one point, but during trying to bobble together the pool stuff from some not overly clear instructions I appear to have lost them :- btrfs filesystem show 9e8a70ee-9e93-44bb-82f1-d5dbd05c9c60 Label: 'VM-store' uuid: 9e8a70ee-9e93-44bb-82f1-d5dbd05c9c60 Total devices 4 FS bytes used 112.04GiB devid 1 size 93.13GiB used 50.02GiB path /dev/sdd devid 2 size 93.13GiB used 50.00GiB path /dev/sde devid 3 size 93.13GiB used 49.01GiB path /dev/sdf devid 4 size 93.13GiB used 49.01GiB path /dev/sdg this is the output of v /dev/disk/by-id lrwxrwxrwx 1 root root 9 Oct 28 19:55 ata-3E128-TS2-550B01_FL002LX2 -> ../../sde lrwxrwxrwx 1 root root 9 Oct 28 19:55 ata-3E128-TS2-550B01_FL002LXK -> ../../sdd lrwxrwxrwx 1 root root 9 Oct 28 19:55 ata-3E128-TS2-550B01_FL002M3C -> ../../sdf lrwxrwxrwx 1 root root 9 Oct 28 19:55 ata-3E128-TS2-550B01_FL002M9H -> ../../sdg tried changing it to /dev/sdd, makes not difference still get the error at boot time, but if I do the same command once it's booted it works fine.. very odd. # more /boot/config/go #!/bin/bash mkdir -p /mnt/btrfs mount -t btrfs /dev/sdd /mnt/btrfs # Start the Management Utility /usr/local/sbin/emhttp & root@NAS-server:~# mount -t btrfs /dev/sdd /mnt/btrfs root@NAS-server:~# df -h Filesystem Size Used Avail Use% Mounted on /dev/sda1 1.9G 94M 1.8G 5% /boot /dev/md1 2.8T 1.2T 1.6T 44% /mnt/disk1 /dev/md2 2.8T 171G 2.6T 7% /mnt/disk2 /dev/md3 2.8T 171G 2.6T 7% /mnt/disk3 /dev/md4 2.8T 171G 2.6T 7% /mnt/disk4 /dev/md5 2.8T 171G 2.6T 7% /mnt/disk5 /dev/sdb1 477G 100M 476G 1% /mnt/cache shfs 14T 1.9T 12T 14% /mnt/user0 shfs 15T 1.9T 13T 14% /mnt/user /dev/loop8 15G 512K 13G 1% /var/lib/docker /dev/sdd 373G 113G 259G 31% /mnt/btrfs so granted some thing has gone wrong during the creation but at the same time it does work, just not at boot time ? Quote Link to comment
Kilian. Posted March 8, 2021 Share Posted March 8, 2021 hello, i am desperately trying to mount my hdd on reboot, which is connected via usb. in the go file i have added the following line: #!/bin/bash # start the management utility /usr/local/sbin/emhttp & #mount disk mount -t btrfs /dev/disk/by-id/usb-WD_Elements_2620_57583332443330444B444850-0:0-part1 /mnt/disks/Backup_ext when i enter the command in the comado line after reboot it mounts as it should. i would be glad if someone could help me. Thanks a lot Quote Link to comment
itimpi Posted March 8, 2021 Share Posted March 8, 2021 15 minutes ago, Kilian. said: hello, i am desperately trying to mount my hdd on reboot, which is connected via usb. in the go file i have added the following line: #!/bin/bash # start the management utility /usr/local/sbin/emhttp & #mount disk mount -t btrfs /dev/disk/by-id/usb-WD_Elements_2620_57583332443330444B444850-0:0-part1 /mnt/disks/Backup_ext when i enter the command in the comado line after reboot it mounts as it should. i would be glad if someone could help me. Thanks a lot I would not have thought that the folder you are trying to mount to exists at that point so you would have to create it first. Is there any reason you do not let the Unassigned Devices plugin handle this for you (setting the disk to automount in the UD settings for the disk)? Quote Link to comment
Kilian. Posted March 8, 2021 Share Posted March 8, 2021 15 minutes ago, itimpi said: I would not have thought that the folder you are trying to mount to exists at that point so you would have to create it first. Is there any reason you do not let the Unassigned Devices plugin handle this for you (setting the disk to automount in the UD settings for the disk)? unfortunately i can't set the option automount on unassigned device to on. it always falls back to off. so the idea came to solve this via go file.... do you have an idea why i can't turn on the option? Quote Link to comment
itimpi Posted March 8, 2021 Share Posted March 8, 2021 2 hours ago, Kilian. said: do you have an idea why i can't turn on the option No idea - you should ask in the support thread for the plugin. Did creating the required folder before trying the mount sort out doing it in the 'go' file? Quote Link to comment
Kilian. Posted March 8, 2021 Share Posted March 8, 2021 3 minutes ago, itimpi said: No idea - you should ask in the support thread for the plugin. Did creating the required folder before trying the mount sort out doing it in the 'go' file? ok will ask there. however, I have managed with your help to mount after boot. first create folder then mount thanks a lot. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.