Announcement

Collapse
No announcement yet.

Reboot loses /storage on external USB drive

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • dsimonson
    replied
    Originally posted by lucaberta View Post

    On the UUID in /etc/fstab, have you tried using the PARTUUID longer strings instead of that shorter one?
    Hi, Luca! Sorry for the delayed reply...

    Thanks for the suggestion (probably obvious to you Linux wizards, but it really didn't occur to me that the PARTUUID could be used as the UUID!). So I tried that, and a reboot just hangs at the "switchroot" (? sorry, didn't figure out how to save the log, so not sure if that's the right term) stage of booting... it was trying to run that bit about the UUID="5344d5aa-8e20-4b61-b87a-5918c162b01a", timed out, and dumped into a rescue maintenance mode. Of course I have no idea how to get under the hood to remove that line, so I just have to do a new install. grrrr... So, I'm back to manually adding my external, using "mount /dev/sdb2 /storage". (I can live with it, my tunes are playing! But...)

    But I appreciate your response very much!
    Cheers,
    Dale

    Leave a comment:


  • lucaberta
    replied
    Originally posted by dsimonson View Post
    (find the “block ID” UUID and type of the partition)

    blkid /dev/sdb2

    /dev/sdb2: LABEL="VBEXTERNAL" UUID="BBC3-17FD" TYPE="vfat" PARTLABEL="VBEXTERNAL" PARTUUID="5344d5aa-8e20-4b61-b87a-5918c162b01a"

    (edit the “fstab” file, to add this location to the boot list)

    nano /etc/fstab

    UUID="BBC3-17FD" /storage vfat defaults 0 0

    (this didn’t seem to work, I have to manually mount the external drive after any reboot, using

    mount /dev/sdb2 /storage
    hello Dale, welcome to the forum!

    On the UUID in /etc/fstab, have you tried using the PARTUUID longer strings instead of that shorter one?

    If you check the posts at the top of this thread, they all use the longer UUID in their examples.

    Let me know how it goes!

    Bye, Luca

    Leave a comment:


  • dsimonson
    replied
    Hello all!!

    VB Appliance user since 2010, and lurker on this forum (through it's various iterations), and the squeezebox forum since 2009... But, the Appliance has been on life support for a while and has finally rolled over. Boo. First post on this (or either) forum...

    So, I found an old discarded laptop in one of our kids bedrooms (kids are gone, but there seems to be a lot of junk left, haha), wiped the drive and installed Vortexbox. However, the internal hard drive is way too small for my music (12,700 flacs)...

    Which brings me to the same problem as yours, Viragored. I followed the wiki doc referred to above, and added the UUID to the “fstab” file (yikes! this is really all beyond me!!) and still no external USB mount on reboot. Grrr....

    for reference, here's my notes on that stage:
    ---------
    (find the “block ID” UUID and type of the partition)

    blkid /dev/sdb2

    /dev/sdb2: LABEL="VBEXTERNAL" UUID="BBC3-17FD" TYPE="vfat" PARTLABEL="VBEXTERNAL" PARTUUID="5344d5aa-8e20-4b61-b87a-5918c162b01a"

    (edit the “fstab” file, to add this location to the boot list)

    nano /etc/fstab

    UUID="BBC3-17FD" /storage vfat defaults 0 0

    (this didn’t seem to work, I have to manually mount the external drive after any reboot, using

    mount /dev/sdb2 /storage
    ----------

    OK, sorry for the long intro! So, does your workaround still work for you? ....and, how do you edit crontab? (same as editing fstab? ie: nano /etc/fstab ?)

    Cheers,
    Dale

    (BTW, still rocking the tunes, a Touch in the LR hooked up to my Quad 33/303 and Maggies, Boom in the kitchen, and another Boom in the garage/workshop, so good!!!)
    Last edited by dsimonson; 01-31-2021, 09:16 PM.

    Leave a comment:


  • Viragored
    replied
    This could be a solution. Maybe not elegant, but it seems to work.

    Edit crontab to include this line
    Code:
    @reboot mount /dev/sdb1 /storage
    Now, after rebooting, all the music on the USB external drive is found in /storage, Logitech Media Server is happy - and so am I!

    Leave a comment:


  • Viragored
    replied
    Since a little tweak makes the system run as it should, I can keep going by:
    • Boot the Dell 64-bit machine running VB 2.4
      (and without the "USB mount" line in /etc/fstab)
    • Log in as root, and type "mount /dev/sdb1 /storage"
    • Logitech Media Server is then happy with my music library accessible on the external drive.
    Since typing one line is all that is required, I thought it should be possible, maybe even easy, to create a start-up script to issue the mount command. I'm now stuck on that!

    Can anyone tell me if it is sensible for me to try and create a systemd service to issue the mount command during start-up?

    If it's sensible, I'll post here what I've managed to work out so far, and maybe someone can pinpoint why I'm getting Error code 203, no such file or folder, when ExecStart goes looking for the target shell script file.

    And of course, the original question remains - why does the boot process correctly identify the USB drive, appear to mount it to /storage (line 1532 of the log file attached to post #1), but the data on the USB drive is not accessible in /storage? If I can fix that, I'll be very happy!

    Leave a comment:


  • Viragored
    replied
    Originally posted by Sully View Post
    Suggest adding the UUID to your /etc/fstab file.
    Here's a copy of mine:
    Same result as before for me, so no change - I'm now struggling to find some other solution with help from Google...

    Leave a comment:


  • Viragored
    replied
    Thanks for the suggestion. If I've understood correctly where Google led me with UUIDs, they are the specific Id, like a mac, for a device. And from what I've seen in the log file, Linux has found the device, correctly but not mounted it to /storage. I'll try with the UUID for the drive and see if that makes a difference. The wiki 'how to do it' page mentions UUIDs and points out the differences between using the USB device number and the UUID. Still worth a try, though.

    Leave a comment:


  • Sully
    replied
    Suggest adding the UUID to your /etc/fstab file.
    Here's a copy of mine:

    UUID=a0008081-aa57-4fad-bf0b-2f64f1070a8a / ext4 defaults 1 1

    UUID=33251abe-7e37-4570-b7e5-0a53a3886361 /boot ext4 defaults 1 2

    UUID=3b66a5aa-1768-41da-bed4-cdcd304746ca swap swap defaults 0 0

    UUID=703c0188-7f1d-4986-b5bc-117c2d8953bf /storage ext4 defaults 2 2

    Leave a comment:


  • Viragored
    started a topic Reboot loses /storage on external USB drive

    Reboot loses /storage on external USB drive

    Hi - I'm hoping someone can help me find what is likely to be something simple, but beyond my Linux knowledge.
    I have just installed VB 2.4 on a Dell 64-bit PC. I followed all the steps to add my external USB drive to /storage, and updated /etc/fstab to make the addition persist. The steps I followed are here https://wiki.vortexbox.org/how_to_us...ve_for_storage
    All went well at first - Logitech Media Server Version: 7.9.1 - 0.7.20180404git1522249619 scanned and built my library and I was in business.
    Then I rebooted after removing the monitor and keyboard to run headless, and no music files were in /storage - I could only see the /storage on the internal hard disc.

    This is what is in my /etc/fstab:
    Code:
    #
    # /etc/fstab
    # Created by anaconda on Fri Nov  6 01:22:25 2015
    #
    # Accessible filesystems, by reference, are maintained under '/dev/disk'
    # See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
    #
    UUID=a0008081-aa57-4fad-bf0b-2f64f1070a8a /                       ext4    defaults        1 1
    UUID=33251abe-7e37-4570-b7e5-0a53a3886361 /boot                   ext4    defaults        1 2
    UUID=3b66a5aa-1768-41da-bed4-cdcd304746ca swap                    swap    defaults        0 0
    # 
    /dev/sdb1 /storage ntfs defaults 0 0
    #
    And now when I try to umount /storage and mount the external USB drive I get this error message:
    Code:
    # mount /dev/sdb1 /storage
    Mount is denied because the NTFS volume is already exclusively opened.
    The volume may be already mounted, or another software may use it which
    could be identified for example by the help of the 'fuser' command.
    The log file from the latest boot is attached.

    My workaround is clunky - comment out the USB mount line in /etc/fstab, boot again, umount /storage and mount the external usb drive once more.

    Can anyone point me to the solution for this, so that a reboot will successfully load LMS and the music on the external drive? I've got the same setup working on another ancient Dell PC, but with VB 2.3 - and that restarts correctly.
    All help will be greatly appreciated!
    Attached Files
Working...
X