Changes

From Amahi Wiki
Jump to: navigation, search
442 bytes added ,  19:48, 7 January 2010
Updated mounting instruction, added how to fix bug with Ubuntu Karmic. Clean up, and uppercase correction
I used the following commands (of course, replace the username with your username unless you are also kevin):
sudo mount.cifs '\\hda\musicMusic' Music -o user=kevin
sudo mount.cifs '\\hda\picturesPictures' Pictures -o user=kevin
sudo mount.cifs '\\hda\docsDocs' Documents -o user=kevin
sudo mount.cifs '\\hda\moviesMovies' Videos -o user=kevin
And that was it. Now the files in Amahi are mounted as if they are local files on my computer.
'''Permanent mount:'''
Tested under Ubuntu 89.10, All the credit for this belongs to dmizer. I simply adapted to the hda. [http://ubuntuforums.org/showthread.php?t=288534 Original thread here]
In this example we will mount the hda's shared music on our desktop. It will appear as a drive.
sudo aptitude install smbfs
*First create a new folder to mount your hda files: '''sudo mkdir /media/musicMusic'''
*We need to create a credential file to mount on startup: '''sudo nano /root/.smbcredentials'''
**Add the following lines: (You must change hda_username and hda_password to the correct user name and password for the hda to connect to):
*Now, change the permissions of the file so only root can read and edit it:
'''sudo chmod 700 /root/.smbcredentials'''
*Let's back up our fstab: ''' sudo cp /etc/fstab /etc/fstab_old* If '''** If needed ''' you may return to the original this way: ''' sudo mv /etc/fstab_old /etc/fstab'''
*Now we edit fstab:
'''sudo nano /etc/fstab'''
*Add this line at the end:
'''//hda/music Music /media/music Music cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0'''
*For those of you who want to have your music on the server mounted as if it were in your local /home/Music folders, add this line:
'''//hda/Music /home/USERNAME/Music cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0''' '''For Ubuntu 9.10 user (Karmic)''' There is a [https://bugs.launchpad.net/ubuntu/+source/linux/+bug/406466 bug reported], that will prevent opening the files: Files owned by root / "The folder contents could not be displayed"The fix use this, instead to edit the fstab file:  '''//hda/Music /home/USERNAME/Music cifs credentials=/root.smbcredentials,iocharset=utf8,noserverino,gid=1000,uid=1000,nounix,file_mode=0777,dir_mode=0777 0 0'''  
*be sure to replace USERNAME with your Ubuntu username.
*Repeat accordingly for Videos, Pictures etc.
*Finally, test your settings to make sure they work:
 
'''sudo mount -a'''
30

edits