Linux tip, Fedora tip / howto: mount a Slug (NSLU2) partition

 
back to notes and tips index

Try my online puzzle page with Calcudoku, Killer Sudoku and online Sudoku.

mount a Slug (NSLU2) partition

Another "note to self" here. I have a Linksys NSLU2, with Unslung firmware, for now only functioning as a network drive.

In my router I have given it a fixed IP (192.168.1.77). To mount the Samba partition it exposes:

/sbin/mount.cifs //slug/Disk\ 1 /slug -o ip=192.168.1.77,uid=500

Some notes:

  • apparently the default disk name is "Disk 1" on the Slug. You can find the name by running:
    smbclient -L //192.168.1.77
    (yum install samba-client if you don't have this installed) and get output like this (press Enter at the Password: prompt): myhost:#1 -> smbclient -L //192.168.1.77 Password: Domain=[SLUG] OS=[Unix] Server=[Samba 3.0.11] Sharename Type Comment --------- ---- ------- ADMIN 1 Disk DISK 1 Disk For everyone IPC$ IPC IPC Service () ADMIN$ IPC IPC Service () Domain=[SLUG] OS=[Unix] Server=[Samba 3.0.11] Server Comment --------- ------- Workgroup Master --------- ------- WORKGROUP SLUG
  • I have this entry in my /etc/hosts
    192.168.1.77 slug
  • and created (as root) the directory /slug
  • to make sure I can write to the mounted drive, the uid=500 parameter is there. Find your user id by running:
    id

The corresponding line for your /etc/fstab is (this is for read+write access):

//192.168.1.77/Disk\0401 /slug cifs username=admin,password=password,rw,uid=500 0 0

(note the \040 escape sequence to get the space in the share name)

Update for error mount error(5): Input/output error

This error kind of fell out of the sky after an OS update. Adding the parameter:
-o sec=ntlmv2
fixed this (?!)(so in /etc/fstab you'd add ,sec=ntlmv2 after uid=500)


← back to notes and tips index
Please do not copy the text of this tip (© Patrick Min) to your web site.