<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jimmy9pints1</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Jimmy9pints1"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Jimmy9pints1"/>
	<updated>2026-05-07T00:49:16Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=1164</id>
		<title>Adding a second hard drive to your HDA</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=1164"/>
		<updated>2009-01-06T07:33:37Z</updated>

		<summary type="html">&lt;p&gt;Jimmy9pints1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A secondary hard drive (fat32, ntfs, etc) can be added for additional storage in your Amahi HDA. First thing's first, make sure your drive is connected properly and detected by the bios. &lt;br /&gt;
&lt;br /&gt;
It can be configured to mount permanently using the [http://wiki.amahi.org/images/c/c6/Diskmounter.sh diskmounter] script (thanks to Dennis Kaarsemaker and Luigi Capriotti).  &lt;br /&gt;
&lt;br /&gt;
* Execute the script as ''root'' and answer YES to the prompt to make the drive writable to all users.  &lt;br /&gt;
* Once complete, reboot and the secondary drive should automatically mount.  &lt;br /&gt;
* As user ''root'', edit '''''/etc/fstab''''' to change location of shared ''//hda'' folders to the secondary drive.  &lt;br /&gt;
&lt;br /&gt;
This is what the script added for my drive:&lt;br /&gt;
 ''Added by diskmounter utility''&lt;br /&gt;
 ''/dev/sdb1 /var/hda/files vfat rw,user,fmask=0111,dmask=0000 0 0'' &lt;br /&gt;
&lt;br /&gt;
I changed second path to '''''/var/hda/files''''' to enable all shared files to be stored on the secondary hard drive.   This is the default path for ''//hda'' file storage system.&lt;br /&gt;
&lt;br /&gt;
=If the script doesn't work for you=&lt;br /&gt;
&lt;br /&gt;
These instructions are adapted from [http://www.mjmwired.net/resources/mjm-fedora-f9.html#ntfs here]&lt;br /&gt;
&lt;br /&gt;
If you're planning to mount a NTFS disk, you'll need to make sure you have ntfs-3g, fuse and fuse libs all installed. If not, login as root and run:&lt;br /&gt;
&lt;br /&gt;
 $ yum install fuse fuse-libs ntfs-3g&lt;br /&gt;
&lt;br /&gt;
Then use fdisk to find the disk by running fdisk -l (this is a lower case L not a 1). You may have to give the path (/sbin/fdisk) to make it work.&lt;br /&gt;
&lt;br /&gt;
 $ /sbin/fdisk -l&lt;br /&gt;
&lt;br /&gt;
This should return the needed information about all your disks. Look out for your newly attached disk. In my case in among the results I can find:&lt;br /&gt;
&lt;br /&gt;
Disk /dev/sdb: 120.0GB 120034123776 bytes&lt;br /&gt;
255 heads, 63 sectors/track.... etc etc.&lt;br /&gt;
&lt;br /&gt;
I know my disk is 120GB so that's the right one. This tells us the name of the new disk which is &amp;quot;sdb&amp;quot; in my case. Running &lt;br /&gt;
  &lt;br /&gt;
 $ sudo /sbin/fdisk -lu /dev/sdb | grep NTFS&lt;br /&gt;
&lt;br /&gt;
..will give you a break down of partitions. In my case, there's just one partition, sdb1, so this is the partition I will mount. &lt;br /&gt;
&lt;br /&gt;
Now we can go on to create the mount points if needs be. But because my disk contains all my music, I want it to be mounted as if it were my local &amp;quot;Music&amp;quot; folder, so for me the mount point already exists. But if just want to access your disk easily you could just as easily mount it anywhere. Commonly mount points are put in either /mnt/ or /media/. It doesn't matter where - just be consistent when you are doing this. &lt;br /&gt;
To do this run these commands as root:&lt;br /&gt;
 $ cd /mnt/&lt;br /&gt;
 $ mkdir my_ntfs_disk&lt;br /&gt;
&lt;br /&gt;
Substituting my_ntfs_disk for whatever you want to call it. &lt;br /&gt;
&lt;br /&gt;
Now we can mount the disk in the desired location. Again as root run this command:&lt;br /&gt;
 $ mount /dev/sdb1 /mnt/my_ntfs_drive -t ntfs-3g -r -o umask=0222&lt;br /&gt;
&lt;br /&gt;
This command will make the mounted drive read only. That's great if that's what you want, but for me, since I want to save my music there, I need it to be read and writeable. For this you'll use:&lt;br /&gt;
&lt;br /&gt;
 $ mount /dev/sdb1 /mnt/my_ntfs_drive -t ntfs-3g -rw -o umask=0000&lt;br /&gt;
&lt;br /&gt;
or in my case&lt;br /&gt;
&lt;br /&gt;
 $ mount /dev/sdb1 /home/USERNAME/Music -t ntfs-3g -rw -o umask=0000&lt;br /&gt;
&lt;br /&gt;
because I want it mounted in my &amp;quot;Music&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
Remember in both of these commands you'll need to substitute sdb1 with whatever the partition name/number is on your machine. And in the second command USERNAME is your linux username.&lt;br /&gt;
&lt;br /&gt;
If you now go to your desktop, you should see the drive is mounted there. Click on it to see the contents are there. If you've mounted it as say So far so good? Ok, let's continue.&lt;br /&gt;
&lt;br /&gt;
What you've achieved so far is a temporary mounting of the drive/partition. That shows it can be done but you'll need to make it permanent otherwise when you reboot it'll disappear again. For this you need to edit fstab with your favourite text editor. As root run:&lt;br /&gt;
&lt;br /&gt;
 $ gedit /etc/fstab&lt;br /&gt;
&lt;br /&gt;
A text editor window will pop up. Enter this on the last line:&lt;br /&gt;
&lt;br /&gt;
/dev/sdb1   /mnt/my_ntfs_drive     ntfs-3g    ro,defaults,umask=0222 0 0&lt;br /&gt;
&lt;br /&gt;
* change '''ro to rw''' and '''umask=0222 to umask=0000''' if you want it to be writable.&lt;br /&gt;
&lt;br /&gt;
You'll need to do this for every partition, so if you have several partitions on sdb, the last lines of you fstab may look something like this&lt;br /&gt;
&lt;br /&gt;
/dev/sdb1   /mnt/my_ntfs_drive_C     ntfs-3g    ro,defaults,umask=0222 0 0&lt;br /&gt;
/dev/sdb2   /mnt/my_ntfs_drive_D     ntfs-3g    ro,defaults,umask=0222 0 0&lt;br /&gt;
/dev/sdb3   /mnt/my_ntfs_drive_E     ntfs-3g    ro,defaults,umask=0222 0 0&lt;br /&gt;
&lt;br /&gt;
When you reboot, you should find your data where you want it. &lt;br /&gt;
&lt;br /&gt;
= Guide to Adding a Hard Drive to Fedora =&lt;br /&gt;
&lt;br /&gt;
This is a good guide, for advanced users, to adding a hard drive to Fedora:&lt;br /&gt;
&lt;br /&gt;
 http://fedoranews.org/tchung/storage/&lt;br /&gt;
&lt;br /&gt;
And a good fedora 9 guide here, including a section on adding a hard drive here:&lt;br /&gt;
&lt;br /&gt;
http://www.mjmwired.net/resources/mjm-fedora-f9.html&lt;/div&gt;</summary>
		<author><name>Jimmy9pints1</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=1163</id>
		<title>Adding a second hard drive to your HDA</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Adding_a_second_hard_drive_to_your_HDA&amp;diff=1163"/>
		<updated>2009-01-06T07:31:54Z</updated>

		<summary type="html">&lt;p&gt;Jimmy9pints1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A secondary hard drive (fat32, ntfs, etc) can be added for additional storage and configured to mount permanently using the [http://wiki.amahi.org/images/c/c6/Diskmounter.sh diskmounter] script (thanks to Dennis Kaarsemaker and Luigi Capriotti).  &lt;br /&gt;
&lt;br /&gt;
* Execute the script as ''root'' and answer YES to the prompt to make the drive writable to all users.  &lt;br /&gt;
* Once complete, reboot and the secondary drive should automatically mount.  &lt;br /&gt;
* As user ''root'', edit '''''/etc/fstab''''' to change location of shared ''//hda'' folders to the secondary drive.  &lt;br /&gt;
&lt;br /&gt;
This is what the script added for my drive:&lt;br /&gt;
 ''Added by diskmounter utility''&lt;br /&gt;
 ''/dev/sdb1 /var/hda/files vfat rw,user,fmask=0111,dmask=0000 0 0'' &lt;br /&gt;
&lt;br /&gt;
I changed second path to '''''/var/hda/files''''' to enable all shared files to be stored on the secondary hard drive.   This is the default path for ''//hda'' file storage system.&lt;br /&gt;
&lt;br /&gt;
=If the script doesn't work for you=&lt;br /&gt;
These instructions are adapted from [http://www.mjmwired.net/resources/mjm-fedora-f9.html#ntfs here]&lt;br /&gt;
&lt;br /&gt;
If you're planning to mount a NTFS disk, you'll need to make sure you have ntfs-3g, fuse and fuse libs all installed. If not, login as root and run:&lt;br /&gt;
&lt;br /&gt;
 $ yum install fuse fuse-libs ntfs-3g&lt;br /&gt;
&lt;br /&gt;
Then use fdisk to find the disk by running fdisk -l (this is a lower case L not a 1). You may have to give the path (/sbin/fdisk) to make it work.&lt;br /&gt;
&lt;br /&gt;
 $ /sbin/fdisk -l&lt;br /&gt;
&lt;br /&gt;
This should return the needed information about all your disks. Look out for your newly attached disk. In my case in among the results I can find:&lt;br /&gt;
&lt;br /&gt;
Disk /dev/sdb: 120.0GB 120034123776 bytes&lt;br /&gt;
255 heads, 63 sectors/track.... etc etc.&lt;br /&gt;
&lt;br /&gt;
I know my disk is 120GB so that's the right one. This tells us the name of the new disk which is &amp;quot;sdb&amp;quot; in my case. Running &lt;br /&gt;
  &lt;br /&gt;
 $ sudo /sbin/fdisk -lu /dev/sdb | grep NTFS&lt;br /&gt;
&lt;br /&gt;
..will give you a break down of partitions. In my case, there's just one partition, sdb1, so this is the partition I will mount. &lt;br /&gt;
&lt;br /&gt;
Now we can go on to create the mount points if needs be. But because my disk contains all my music, I want it to be mounted as if it were my local &amp;quot;Music&amp;quot; folder, so for me the mount point already exists. But if just want to access your disk easily you could just as easily mount it anywhere. Commonly mount points are put in either /mnt/ or /media/. It doesn't matter where - just be consistent when you are doing this. &lt;br /&gt;
To do this run these commands as root:&lt;br /&gt;
 $ cd /mnt/&lt;br /&gt;
 $ mkdir my_ntfs_disk&lt;br /&gt;
&lt;br /&gt;
Substituting my_ntfs_disk for whatever you want to call it. &lt;br /&gt;
&lt;br /&gt;
Now we can mount the disk in the desired location. Again as root run this command:&lt;br /&gt;
 $ mount /dev/sdb1 /mnt/my_ntfs_drive -t ntfs-3g -r -o umask=0222&lt;br /&gt;
&lt;br /&gt;
This command will make the mounted drive read only. That's great if that's what you want, but for me, since I want to save my music there, I need it to be read and writeable. For this you'll use:&lt;br /&gt;
&lt;br /&gt;
 $ mount /dev/sdb1 /mnt/my_ntfs_drive -t ntfs-3g -rw -o umask=0000&lt;br /&gt;
&lt;br /&gt;
or in my case&lt;br /&gt;
&lt;br /&gt;
 $ mount /dev/sdb1 /home/USERNAME/Music -t ntfs-3g -rw -o umask=0000&lt;br /&gt;
&lt;br /&gt;
because I want it mounted in my &amp;quot;Music&amp;quot; file.&lt;br /&gt;
&lt;br /&gt;
Remember in both of these commands you'll need to substitute sdb1 with whatever the partition name/number is on your machine. And in the second command USERNAME is your linux username.&lt;br /&gt;
&lt;br /&gt;
If you now go to your desktop, you should see the drive is mounted there. Click on it to see the contents are there. If you've mounted it as say So far so good? Ok, let's continue.&lt;br /&gt;
&lt;br /&gt;
What you've achieved so far is a temporary mounting of the drive/partition. That shows it can be done but you'll need to make it permanent otherwise when you reboot it'll disappear again. For this you need to edit fstab with your favourite text editor. As root run:&lt;br /&gt;
&lt;br /&gt;
 $ gedit /etc/fstab&lt;br /&gt;
&lt;br /&gt;
A text editor window will pop up. Enter this on the last line:&lt;br /&gt;
&lt;br /&gt;
/dev/sdb1   /mnt/my_ntfs_drive     ntfs-3g    ro,defaults,umask=0222 0 0&lt;br /&gt;
&lt;br /&gt;
* change '''ro to rw''' and '''umask=0222 to umask=0000''' if you want it to be writable.&lt;br /&gt;
&lt;br /&gt;
You'll need to do this for every partition, so if you have several partitions on sdb, the last lines of you fstab may look something like this&lt;br /&gt;
&lt;br /&gt;
/dev/sdb1   /mnt/my_ntfs_drive_C     ntfs-3g    ro,defaults,umask=0222 0 0&lt;br /&gt;
/dev/sdb2   /mnt/my_ntfs_drive_D     ntfs-3g    ro,defaults,umask=0222 0 0&lt;br /&gt;
/dev/sdb3   /mnt/my_ntfs_drive_E     ntfs-3g    ro,defaults,umask=0222 0 0&lt;br /&gt;
&lt;br /&gt;
When you reboot, you should find your data where you want it. &lt;br /&gt;
&lt;br /&gt;
= Guide to Adding a Hard Drive to Fedora =&lt;br /&gt;
&lt;br /&gt;
This is a good guide, for advanced users, to adding a hard drive to Fedora:&lt;br /&gt;
&lt;br /&gt;
 http://fedoranews.org/tchung/storage/&lt;br /&gt;
&lt;br /&gt;
And a good fedora 9 guide here, including a section on adding a hard drive here:&lt;br /&gt;
&lt;br /&gt;
http://www.mjmwired.net/resources/mjm-fedora-f9.html&lt;/div&gt;</summary>
		<author><name>Jimmy9pints1</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=SharingToLinux&amp;diff=1147</id>
		<title>SharingToLinux</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=SharingToLinux&amp;diff=1147"/>
		<updated>2009-01-05T15:18:55Z</updated>

		<summary type="html">&lt;p&gt;Jimmy9pints1: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;= Connecting to a Server by Mounting your HDA =&lt;br /&gt;
&lt;br /&gt;
I was having trouble in Ubuntu accessing my network drives. I used &amp;quot;Connect to server...&amp;quot; under &amp;quot;Places&amp;quot; and I was able to access the files fine until I needed to access them in Firefox or other programs to upload them.&lt;br /&gt;
&lt;br /&gt;
It was explained to me that it's being mounted via Nautilus and that's not truely &amp;quot;mounted&amp;quot; in the linux sense.&lt;br /&gt;
&lt;br /&gt;
Here's the resolution.&lt;br /&gt;
&lt;br /&gt;
NOTE: you may need to install smbfs first with&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude install smbfs&lt;br /&gt;
&lt;br /&gt;
I opened up a terminal window. In my user folder, there were already folders called &amp;quot;Music&amp;quot;, &amp;quot;Pictures&amp;quot;, &amp;quot;Documents&amp;quot; and &amp;quot;Videos&amp;quot;. I wanted to use those folders so I didn't have to create more. If they didn't exist though, they could be created using the command:&lt;br /&gt;
&lt;br /&gt;
mkdir Music&lt;br /&gt;
&lt;br /&gt;
Then of course repeat the command replacing the word &amp;quot;Music&amp;quot; with &amp;quot;Pictures&amp;quot; &amp;quot;Documents&amp;quot; and &amp;quot;Movies&amp;quot; or &amp;quot;Videos&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
Now time to mount.&lt;br /&gt;
I used the following commands (of course, replace the username with your username unless you are also kevin):&lt;br /&gt;
&lt;br /&gt;
sudo mount.cifs '\\hda\music' Music -o user=kevin&lt;br /&gt;
&lt;br /&gt;
sudo mount.cifs '\\hda\pictures' Pictures -o user=kevin&lt;br /&gt;
&lt;br /&gt;
sudo mount.cifs '\\hda\docs' Documents -o user=kevin&lt;br /&gt;
&lt;br /&gt;
sudo mount.cifs '\\hda\movies' Videos -o user=kevin&lt;br /&gt;
&lt;br /&gt;
And that was it. Now the files in Amahi are mounted as if they are local files on my computer.&lt;br /&gt;
&lt;br /&gt;
Just to check, I opened up Firefox, logged into Gmail, composed a new message and clicked &amp;quot;Attach a file&amp;quot; then &amp;quot;Browse&amp;quot;. Sure enough, the files were all there.&lt;br /&gt;
&lt;br /&gt;
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.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Permanent mount:'''&lt;br /&gt;
Tested under Ubuntu 8.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]&lt;br /&gt;
In this example we will mount the hda's shared music on our desktop. It will appear as a drive.&lt;br /&gt;
&lt;br /&gt;
NOTE: you may need to install smbfs first with&lt;br /&gt;
&lt;br /&gt;
 sudo aptitude install smbfs&lt;br /&gt;
&lt;br /&gt;
*First create a new folder to mount your hda files: '''sudo mkdir /media/music'''&lt;br /&gt;
*We need to create a credential file to mount on startup: '''sudo nano /root/.smbcredentials'''&lt;br /&gt;
**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):&lt;br /&gt;
 username=hda_username                                                        &lt;br /&gt;
 password=hda_password&lt;br /&gt;
*Save the file by hitting ctrl+x, type &amp;quot;y&amp;quot; to save the buffer, and &amp;lt;enter&amp;gt; to exit.&lt;br /&gt;
*Now, change the permissions of the file so only root can read and edit it:&lt;br /&gt;
 '''sudo chmod 700 /root/.smbcredentials'''&lt;br /&gt;
*Let's back up our fstab: '''sudo cp /etc/fstab /etc/fstab_old'''&lt;br /&gt;
** If needed you may return to the original this way: '''sudo mv /etc/fstab_old /etc/fstab''' &lt;br /&gt;
*Now we edit fstab:&lt;br /&gt;
 '''sudo nano /etc/fstab'''&lt;br /&gt;
*Add this line at the end:&lt;br /&gt;
'''//hda/music /media/music cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0'''&lt;br /&gt;
*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:&lt;br /&gt;
'''//hda/Music /home/USERNAME/Music cifs credentials=/root/.smbcredentials,iocharset=utf8,file_mode=0777,dir_mode=0777 0 0'''&lt;br /&gt;
*be sure to replace USERNAME with your Ubuntu username.&lt;br /&gt;
*Repeat accordingly for Videos, Pictures etc. &lt;br /&gt;
 &lt;br /&gt;
*Finally, test your settings to make sure they work:&lt;br /&gt;
 '''sudo mount -a'''&lt;br /&gt;
&lt;br /&gt;
Take a deep breath, and mounted drive should appear on your desktop.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''On my system, the shutdown halted with a cifs/ vfs error.'''&lt;br /&gt;
&lt;br /&gt;
[http://ubuntuforums.org/showpost.php?p=4017881&amp;amp;postcount=44 wyley.r's post] solved my problem.&lt;br /&gt;
In a terminal:&lt;br /&gt;
 '''sudo ln -s /etc/init.d/umountnfs.sh /etc/rc0.d/K15umountnfs.sh'''&lt;br /&gt;
 '''sudo ln -s /etc/init.d/umountnfs.sh /etc/rc6.d/K15umountnfs.sh'''&lt;br /&gt;
&lt;br /&gt;
= Connecting to a Server with the File Browser =&lt;/div&gt;</summary>
		<author><name>Jimmy9pints1</name></author>
		
	</entry>
</feed>