Tags:
create new tag
,
view all tags
---+ Raspberry PI ---++ Mounting a NAS drive Install Samba (smbfs is deprecated, cifs-utils replaces it) * sudo apt-get install cifs-utils Install Samba Client (not really necessary, but why not) * sudo apt-get install smbclient Capture the current list of devices * sudo blkid Make the directory where it will mount to. I put mine in /mnt, but you can put it anywhere you like. * sudo mkdir /mnt/DNS323 Edit the fstab file to add you entry. * sudo vi /etc/fstab Add the following line * //192.168.0.101/Volume_1 /mnt/DNS323 cifs username=guest,password=,uid=1000,gid=1000,iocharset=utf8 0 0 Replace IP, username and password for access to the NAS with the appropriate details. Mount the drive. * sudo mount -a To auto-mount the NAS drive at boot time. List the devices attached. You should see the one you have just mounted (compare to earlier step). Use the UUID discovered for the drive. * sudo blkid Edit /etc/ftab and add the UUID at the start of the line set earlier: * UUID="XXXX-YYYY" //192.168.0.101/Volume_1 /mnt/DNS323 cifs username=dns322user,password=mypass,uid=1000,gid=1000,iocharset=utf8 0 0 ---++ Copying an image to the SD card dd bs=4M if=<input file> of=/dev/sdX conv=fsync ---++ Setting a static IP address Edit the dhcpcd.conf file. * sudo vi /etc/dhcpcd.conf Scroll to the end of the config file and add one of the two following code snippets. eth0 = wired, wlan0 = wireless: <verbatim> interface eth0 static ip_address=192.168.0.10/24 static routers=192.168.0.1 static domain_name_servers=192.168.0.1</verbatim> --- <verbatim> interface wlan0 static ip_address=192.168.0.10/24 static routers=192.168.0.1 static domain_name_servers=192.168.0.1</verbatim> ---++ If error occurs that can't update due to release not valid yet sudo apt-get update --allow-releaseinfo-change ---++ Comments <br />%COMMENT%
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r4 - 2019-07-19
-
TimMcDonald
Home
Site map
KnowledgeBase web
Main web
Sandbox web
TWiki web
KnowledgeBase Web
Create New Topic
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Register User
E
dit
A
ttach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback