Changes

From Amahi Wiki
Jump to: navigation, search
1,815 bytes added ,  03:21, 20 December 2008
no edit summary
Keep in mind, this does not auto-mount so you would have to do this again each time you boot to linux. An auto-mount solution would be helpful.
 
Permanent mount:
Tested under Ubuntu 8.10, All the credit for this wiki 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.
 
*First create a new folder to mount your hda files: '''sudo mkdir /media/music'''
*We need to create a credential file to mount on startup: '''sudo nano /root/.smbcredentials'''
**Add the following lines:
username=hda_username
password=hda_password
*Save the file by hitting ctrl+x, type "y" to save the buffer, and <enter> to exit.
*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 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 /media/music cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0
**''This is one line''
*Finally, test your settings to make sure they work:
'''sudo mount -a'''
 
Take a deep breath, and mounted drive should appear on your desktop.
 
 
On my system, the shutdown halted with a cifs/ vfs error.
 
[http://ubuntuforums.org/showthread.php?t=293513 max.durden's post] solved my problem.
 
A recap:
 
*Download the zip in his post ( it will appear on your desktop by default under firefox)
*extract the file on your Desktop
*In a terminal :'''cd ~/Desktop'''
* '''sudo chmod +x mountcifs'''
*'''sudo cp mountcifs /etc/init.d/'''
*'''cd /etc/rc0.d'''
*''' sudo ln -s /etc/init.d/mountcifs K02mountcifs'''
*'''
*
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
= Connecting to a Server with the File Browser =
30

edits