![]() |
How to make auto start script to mount NAS drive? - Printable Version +- Linux Lite Forums (https://www.freecinema2022.gq/forums) +-- Forum: Hardware - Support (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=6) +--- Forum: Start up and Shutdown (https://www.freecinema2022.gq/forums/forumdisplay.php?fid=27) +--- Thread: How to make auto start script to mount NAS drive? (/showthread.php?tid=6185) |
How to make auto start script to mount NAS drive? - Keith Buckner - 05-15-2019 Need to make a start up item in session and start up to mount my two NAS drives. They mount manually like this: I did the following to manually mount drive, and they mount and show on the desktop; Code: sudo mkdir /media/NAS1 then in fstab; Code: //192.168.1.8/Download /media/NAS1 cifs username=un,password=pw,nounix,auto,user,uid=1000 0 0 but I still have to do this after boot for them to mount; Code: sudo mount -t cifs //192.168.1.9/Download /media/NAS2 -o username=un,password=pw,nounix,uid=1000 How can I make a make a start up script or change fstab for them to auto mount? Linux Lite 3.8 Kernel 4.4.0-148 Ubuntu 5.4.0-6 Re: How to make auto start script to mount NAS drive? - trinidad - 05-18-2019 [member=9000]Keith Buckner[/member] Not a simple question. Depends somewhat on what's on the drives, and/or how they are set up and powered. You will definitely need a timeout in the startup script (even if you add fstab entries) to allow the network to come up, at least 10s probably. Some computers can solve this via the BIOS, but others not so much. I would just bookmark them in Thunar to connect. Once the OS is up you would only have to click your bookmark. TC |