tag:blogger.com,1999:blog-9007601562606157016.post5572478126999943989..comments2023-05-11T16:21:37.725+01:00Comments on <Stuff about="code" />: Raspberry Pi - Connect NAS / windows share automatically at start-upMartin O'Hanlonhttp://www.blogger.com/profile/03047799173301971515noreply@blogger.comBlogger59125tag:blogger.com,1999:blog-9007601562606157016.post-17398441620606399252018-06-24T02:19:07.905+01:002018-06-24T02:19:07.905+01:00Thank you!!!
I am a newbie and I was able to ac...Thank you!!! <br /><br />I am a newbie and I was able to actually make sense of your post, you simplified it enough I could understand. It also helped me realize the big mistake I had been making. One of my home directories was called RetroPie, but I addressed it as retropie, by not using the appropriate capitalization I was getting an invalid or no directory error. I am from the old DOS days where directory capitalization did not matter. Slowly but surely I am picking some Kali.N9RMJhttps://www.blogger.com/profile/15784306966286760336noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-23078162351514404332018-05-10T02:15:01.649+01:002018-05-10T02:15:01.649+01:00Space chars in fstab are represented by \040
eg MY...Space chars in fstab are represented by \040<br />eg MY PATH should be MY\040PATHRodBhttps://www.blogger.com/profile/13753736347377538313noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-4942546650012613932018-04-13T12:39:13.162+01:002018-04-13T12:39:13.162+01:00thank youthank youMartin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-27664479067286402042018-04-09T16:07:24.306+01:002018-04-09T16:07:24.306+01:00I have Raspian Stretch installed and the above alw...I have Raspian Stretch installed and the above always worked, until today. It appears there has been a change, you now need to specify vers=1.0<br /><br />The fstab reference entry should be:<br /><br />//myNAS/myShare /home/pi/myNAS/myShare cifs username=your_username,password=your_password,workgroup=your_workgroup,vers=1.0,users,auto,user_xattr 0 0Anonymoushttps://www.blogger.com/profile/16224382894809089983noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-62052043744899864592018-03-09T09:43:42.694+00:002018-03-09T09:43:42.694+00:00Hi Martin, thanks for the great guide.
I have a pr...Hi Martin, thanks for the great guide.<br />I have a problem, I can mount a share manually with:<br />mount -t cifs //serverIP/sharename /home/pi/myNAS/myShare -o vers=1.0,username=XXXX,password=XXXX,workgroup=XXXX<br /><br />But I don't know how the essential -o parameter would look in fstab.<br /><br />Anonymoushttps://www.blogger.com/profile/07533465823027980351noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-36243425354741060582017-05-12T16:17:39.582+01:002017-05-12T16:17:39.582+01:00In order to be sure that the network is ready duri...In order to be sure that the network is ready during the boot, there is an option Wait for Network at Boot in raspi-config.<br /><br />- sudo raspi-config<br /> * 3. Boot Options<br /> * B2 Wait for Network at Boot<br /><br />Found that here: https://raspberrypi.stackexchange.com/questions/34444/cant-get-a-cifs-network-drive-to-mount-on-boot (Not top answer as of now but probably should be)<br />baxehttps://www.blogger.com/profile/10153664248538429045noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-56736112145762153792017-02-05T09:27:31.165+00:002017-02-05T09:27:31.165+00:00You have to replace the //myNAS/myShare with the l...You have to replace the //myNAS/myShare with the location of your NAS drive. You may also need to give a username and password?Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-17801874999226230312017-02-01T01:45:49.353+00:002017-02-01T01:45:49.353+00:00Here's the content of my fstab file:
roc ...Here's the content of my fstab file:<br />roc /proc proc defaults 0 0<br />/dev/mmcblk0p5 /boot vfat defaults 0 2<br />/dev/mmcblk0p6 / ext4 defaults,noatime 0 1<br /># a swapfile is not a swap partition, so no using swapon|off from here on, use $<br />//myNAS/myShare /home/myNAS/myShare cifs<br />user=username,password=password,workgroup=WORKGROUP,users,auto,user_xattr 0 0<br /><br /><br />Getting the following output...<br />sudo mount -a<br />Password: <br />mount error(115): Operation now in progress<br />Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)<br />mount: mount point 0 does not exist<br /> Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-47506765740970698712017-01-09T16:52:28.894+00:002017-01-09T16:52:28.894+00:00Hello,
I get the following error message:
mount:...Hello,<br /><br />I get the following error message:<br /><br />mount: special device ./dev/mmcblk0p1 does not exist<br /><br />Can someone help me please?Anonymoushttps://www.blogger.com/profile/07564180166028172284noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-52992018888813760062016-12-30T22:06:17.216+00:002016-12-30T22:06:17.216+00:00If the directory is not found, I would check capit...If the directory is not found, I would check capitals, files and directories are case sensitive in Linux.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-68709414890535530122016-12-30T22:05:21.991+00:002016-12-30T22:05:21.991+00:00Does it give a reason why it couldnt chdir to /hom...Does it give a reason why it couldnt chdir to /home/pi/MyNAS? Permission denied, directory not found maybe?<br /><br />fyi - chdir isnt a command its just shortcut for change directory.Martin O'Hanlonhttps://www.blogger.com/profile/03047799173301971515noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-32728648773736659452016-12-30T15:40:47.103+00:002016-12-30T15:40:47.103+00:00Have been trying this for an hour and tried just a...Have been trying this for an hour and tried just about all the variations given above. <br />My problem is that when I issue the 'mount' command all I get is the error: 'Couldn't chdir to /home/pi/MyNAS....'<br /><br />The folder is there and I can 'cd' into it but a manual 'chdir' command returns 'bash: chdir: command not found'<br /><br />Huh! Explanation anyone? Please ...!Electron 1948https://www.blogger.com/profile/10915750634721161161noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-51569880622724953212016-06-11T07:29:17.143+01:002016-06-11T07:29:17.143+01:00Hey there, did you figure this out. I am also a fi...Hey there, did you figure this out. I am also a first time linux user so just trying to teach myself as I go.Sparggyhttps://www.blogger.com/profile/05349127316350876066noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-34655640905769848512016-05-15T17:02:15.640+01:002016-05-15T17:02:15.640+01:00Is there any way to only give writing permission t...Is there any way to only give writing permission to the mounted folder, without the permission of erasing existing files on the mounted folder? <br /><br />For example I want to be able to write to my NAS from my RPi, but I don't want to have the permission to erase these files on the NAS using my RPi afterwards.<br />Anonymoushttps://www.blogger.com/profile/01327603592064139358noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-41194820045852010792016-05-15T16:36:58.426+01:002016-05-15T16:36:58.426+01:00write this to your /etc/rc.local file before the l...write this to your /etc/rc.local file before the last line:<br /><br />sudo mount -a<br /><br />additionally, in your /etc/fstab file use this at the end of your mounting path:<br /><br />user_xattr 0 2<br /><br />(instead of user_xattr 0 0)<br /><br />this will check if the mount has been sucessful and if not it'll retry it. It happens when the mount is attempted before the network is operational.Anonymoushttps://www.blogger.com/profile/01327603592064139358noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-1690209359663004812016-05-15T16:35:17.596+01:002016-05-15T16:35:17.596+01:00This comment has been removed by a blog administrator.Anonymoushttps://www.blogger.com/profile/01327603592064139358noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-15192916070417967612016-05-15T16:34:49.260+01:002016-05-15T16:34:49.260+01:00write this to your /etc/rc.local file before the l...write this to your /etc/rc.local file before the last line:<br /><br />sudo mount -a<br /><br />additionally, in your /etc/fstab file use this at the end of your mounting path:<br /><br />user_xattr 0 2<br /><br />(instead of user_xattr 0 0)<br /><br />this will check if the mount has been sucessful and if not it'll retry it. It happens when the mount is attempted before the network is operational.Anonymoushttps://www.blogger.com/profile/01327603592064139358noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-2749744618257344602016-05-15T16:32:08.685+01:002016-05-15T16:32:08.685+01:00This comment has been removed by the author.Anonymoushttps://www.blogger.com/profile/01327603592064139358noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-20602096649964792312016-04-27T10:52:51.442+01:002016-04-27T10:52:51.442+01:00i have the same problem here?i have the same problem here?Anonymoushttps://www.blogger.com/profile/11644191810822604894noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-48311722782424759342016-04-27T10:49:04.911+01:002016-04-27T10:49:04.911+01:00i have the same problem here?i have the same problem here?Anonymoushttps://www.blogger.com/profile/11644191810822604894noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-1964592774358637622016-04-10T20:29:01.368+01:002016-04-10T20:29:01.368+01:00Very n00b question, but how do I mount a NAS share...Very n00b question, but how do I mount a NAS share that has a space in the name? I added a few shares in fstab. All work fine except:<br /><br />//NAS/TV Series /home/pi/NAS/TV_Series cifs username=xxxx,password=xxxx,workgroup=xxxx,users,auto,user_xattr 0 0<br /><br />This line gives an error telling me:<br />'mount: mount point Series does not exist'<br /><br />I cannot easily change the name of the NAS folder, since the folder is tied in with other systems.<br /><br />Anonymoushttps://www.blogger.com/profile/02245514862927720504noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-19252567693859525992016-03-28T16:06:37.708+01:002016-03-28T16:06:37.708+01:00After searching a while it seems that my raspbian ...After searching a while it seems that my raspbian has root password but since I can't use some commands with the excuse that "only root can use "--options" option". Does this mean I have to get that password or am I doing something wrong?Anonymoushttps://www.blogger.com/profile/02062722014068944565noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-90928831311748719442016-03-28T15:56:15.227+01:002016-03-28T15:56:15.227+01:00I have the same issue with root password. I don...I have the same issue with root password. I don't understand what that is. I also have another thing to add. I don't have password on my network drive so I left the field empty, is that ok or do I need to specify something? Basically it looks like this: password=,workgroup....Anonymoushttps://www.blogger.com/profile/02062722014068944565noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-15750433450793146442016-03-22T01:39:41.971+00:002016-03-22T01:39:41.971+00:00my issue was it keep on asking me for the root pas...my issue was it keep on asking me for the root password when mounting the nas drive. where i have already put in a administrator username and password...OsXhttps://www.blogger.com/profile/08024128393658270150noreply@blogger.comtag:blogger.com,1999:blog-9007601562606157016.post-66919628193891857062016-03-17T07:57:46.675+00:002016-03-17T07:57:46.675+00:00If it helps, I had the same issue and realized tha...If it helps, I had the same issue and realized that I had entered the username line on a new line. Instead it needs to be on the same line with the path. Hope it helps.Analytics Outsourcinghttps://www.blogger.com/profile/09789463111802192180noreply@blogger.com