SAMBA: Menempelkan share directory remote ke folder lokal
Jump to navigation
Jump to search
Instalasi smbfs
apt-get install smbfs
Buat folder tempat mount
mkdir /mnt/backup
mount folder backup di komputer 192.168.0.1 ke /mnt/backup
mount -t cifs //192.168.0.1/backup /mnt/backup -o password=
Jika ada username & password harus menggunakan perintah
mount -t cifs //192.168.0.1/backup /mnt/backup -o username=name,password=password
contoh lain
sudo su
mkdir /mnt/public2 mkdir /mnt/library2 mkdir /mnt/backup2 mkdir /mnt/media2 mount -t cifs //192.168.0.2/public /mnt/public2 -o password= mount -t cifs //192.168.0.2/library /mnt/library2 -o password= mount -t cifs //192.168.0.2/backup /mnt/backup2 -o password= mount -t cifs //192.168.0.2/media /mnt/media2 -o password=