Mount NAS using guest - Debian Buster problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • castalla
    Senior Member
    • Feb 2008
    • 6502

    Mount NAS using guest - Debian Buster problem

    I've reliably used this in fstab for years:

    //192.168.0.1/sda1 /mnt/hd1/ cifs username=guest,password=

    I assumed this would also work for Debian Buster, but it just produces a mount error.

    Any ideas?
    ------------------------------------------------------------------------------------
  • Man in a van
    Senior Member
    • Jan 2011
    • 6753

    #2
    [QUOTE=castalla;954734]I've reliably used this in fstab for years:

    //192.168.0.1/sda1 /mnt/hd1/ cifs username=guest,password=

    I assumed this would also work for Debian Buster, but it just produces a mount error.

    Any ideas?[/QUOTE


    I can't really add much, with my NAS I use NFS, and I stopped using a NAS about a month or so ago.

    Thes are some notes I made when trying CIFS

    Code:
    A few changes appears to have happened over time:
    
    You need to add "vers=1.0" statement (it currently defaults to a later version 3.0, which appears to be causing problems)
    
    _netdev does nothing on CFIS file system, only works on NFS file system, so it does not create the required delay for thenetwork to activate
    
    "user=" and "pass=" should now be "username=" and "password=" respectively (Updates to kernel)
    
    Lastly, there is now a "Wait for network" box that that can be ticked in the Raspberry Pi Configuration Utility, that solved my mount at boot problem.

    I got this from google search "Raspberry pi.org, Buster, CIFS"




    read down the thread

    Hope you both are well

    ronnie

    Comment

    • d6jg
      Senior Member
      • Feb 2011
      • 8774

      #3
      What make / model is the NAS?

      If it is available I'd try NFS also. Once you have it working it is pretty much flawless and very unlikely to be affected by NAS firmware upgrades in the same way as CIFS.
      Jim



      VB2.4 storage QNAP TS419p (NFS)
      Living Room Joggler & Pi4/Khadas -> Onkyo TXNR686 -> Celestion F20s
      Office Joggler & Pi3 -> Onkyo CRN775 -> Celestion F10s
      Dining Room SB Radio
      Bedroom (Bedside) Pi Zero+DAC ->ToppingTP21 ->AKG Headphones
      Bedroom (TV) & Bathroom SB Touch ->Denon AVR ->Mordaunt Short M10s + Kef ceiling speakers
      Guest Room Joggler > Denon RCFN8 -> Wharfedale Modus Cubes

      Comment

      • castalla
        Senior Member
        • Feb 2008
        • 6502

        #4
        Thanks for the replies.

        I've half solved the problem - this mount works (with vers- addition)

        sudo mount -t cifs -o rw,guest,vers=1.0 //192.168.0.1/sda1 /mnt/hd1

        I guess I can convert this to fstab format. I'll confirm later.

        The 'NAS' is a usb on my router.

        (ps: Just spent an hour with GP !!! None of your 10 min. business ...)
        ------------------------------------------------------------------------------------

        Comment

        • Man in a van
          Senior Member
          • Jan 2011
          • 6753

          #5
          Originally posted by castalla

          (ps: Just spent an hour with GP !!! None of your 10 min. business ...)

          It's the NE accent they struggle with

          ronnie

          Comment

          • castalla
            Senior Member
            • Feb 2008
            • 6502

            #6
            Originally posted by Man in a van
            It's the NE accent they struggle with

            ronnie
            Yep. Spanish with Geordie accent ...

            When we lived in Germany, a German friend ended up speaking perfect English with a Geordie accent!
            ------------------------------------------------------------------------------------

            Comment

            • castalla
              Senior Member
              • Feb 2008
              • 6502

              #7
              Just to confirm the fstab script:

              //192.168.0.1/sda1 /mnt/hd1/ cifs rw,guest,vers=1.0

              works!

              Thanks for the advice.
              ------------------------------------------------------------------------------------

              Comment

              Working...