20.06.2009

Using an USB-Stick via FritzBox with Linux (Debian)

First you have to configure the FritzBox to allow access via network to the usb storage. This has to be done via the web-interface http://fritz.box:



You can choose read-only or read/write. The important thing is to mark the checkbox activate USB-network-storage.
On your linux machine you have to install the package smbfs. This can be done on debian (or ubuntu) with the following command:
apt-get install smbfs
After that you can mount the network drive with
/usr/bin/smbmount //fritz.box/SanDisk-CruzerMicro-01 /media/fritz.box -o password=
Note: The string after //fritz.box/ has to match the string inside the FTP configuration (look at the screenshot abouve). For the password you have add your password or just nothing, if you have set no password ;-)
To umount the network drive use this command:
/bin/umount /media/fritz.box
If you want to get this drive mounted everytime you enter the directory /mnt/fritz.box, you need autofs (apt-get install autofs). Add the file /etc/auto.media with the line:
fritz.box -fstype=smbfs,umask=000 ://fritz.box/SanDisk-CruzerMicro-01
and this line into /etc/auto.master:
/mnt /etc/auto.media --timeout=3
after that restart autofs:
/etc/init.d/autofs restart
and each time you enter /mnt/fritz.box, you see the content of your usb stick...



1 Kommentar:

  1. I can't understand the post since it was in some strange language. I would like to request the blog administrator to share the post with us in the translated version.

    AntwortenLöschen