BlackBerry: Media CIFS Mount

A short reminder to be able to mount an internal storage or a media card of a BlackBerry device using CIFS in Linux…

File Sharing in BlackBerry

Setup a sharing option in the BlackBerry device in System Settings -> Storage and Access, enable Access using Wi-Fi and setup a supertroper password.

Mounting Troubles

Trying to mount it using a “bare” mount command with -t cifs parameter raised the following error:

mount error(13): Permission denied
Refer to the mount.cifs(8) manual page (e.g. man mount.cifs)

The same occured when configured via /etc/fstab.

Mounting “The Right Way”

However, the following script makes is work again:

# General setup
# Mount procedure
sudo mount.cifs //"$DEVICEIP"/"$DEVICESHARE" "$MOUNTPOINT" -o username="$USERNAME",password="$PASSWORD"


Browsing the CIFS/Samba Network

A useful command to list the CIFS available shares is as follows (simply hit “Enter” when password promt occurs and ignore the smb.conf error):

# smbclient -L BLACKBERRY
smbclient: Can't load /etc/samba/smb.conf - run testparm to debug it
Enter users's password: 
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37]

	Sharename       Type      Comment
	---------       ----      -------
	IPC$            IPC       IPC Service (Samba (BLACKBERRY))
	removable_sdcard Disk      removable_media_SDCARD
	media           Disk      media
Domain=[WORKGROUP] OS=[Unix] Server=[Samba 3.0.37]

	Server               Comment
	---------            -------

	Workgroup            Master
	---------            -------

Apparently, two shares are available:

  1. removable_sdcard (obviously, the SD card if inserted) and
  2. media (the internal storage, if applicable).

An Important (Security) Note

Yes, the BlackBerry device (even with an up-to-date OS version) is running a prehistoric version of the Samba software. Again, BlackBerry proves, that security is really not they care about.

This entry was posted in Linux and tagged , , , . Bookmark the permalink.