Page 1 of 2
Using External USB Hard Drive for Sharing
Posted: Wed Mar 11, 2009 3:52 pm
by arodriguez
Hello,
Just installed Amahi yesterday on F10 - and so far so good. Kudos on a wonderful application.
I have one question - I am using an older laptop with only a 30GB hard drive. I have connected an External USB drive to the laptop and it is accessible via the Fedora Desktop. My issue is how can I use this drive to serve files.
I have attempted to add several different file paths including /var/hda/EXTERNAL/Benny_Music however they have not worked.
Following is the Information from "Drive Properties:"
Location: /media/EXTERNAL
Volume: EXTERNAL
Type: folder (inode/directory)
Folder Name: Benny_Music
Any help will be appreciated.
Best,
Albert
Re: Using External USB Hard Drive for Sharing
Posted: Thu Mar 12, 2009 12:09 am
by moredruid
Benny, glad you like amahi!
you need to make sure you have the following base path:
What you can do is this (with your USB drive connected):
create a new share or use the existing Music share.
go to that directory (e.g. cd to /var/hda/files/Music) and type:
this will give you a symbolic link in the directory (share) Music to your external drive. simply double click to access
I'm not sure wether you will run into file permission issues tho... but that another story

Re: Using External USB Hard Drive for Sharing
Posted: Thu Mar 12, 2009 6:30 am
by arodriguez
That was easy - thanks!
BTW - I noticed Amahi has a Beta for Fedora 9 - I'm actually running Fedora 10 and so far so good.
Best,
Albert
Re: Using External USB Hard Drive for Sharing
Posted: Thu Mar 12, 2009 6:52 am
by cpg
That was easy - thanks!
BTW - I noticed Amahi has a Beta for Fedora 9 - I'm actually running Fedora 10 and so far so good.
good.
yeah, fedora 10 is
almost there!
good to know you have it in good shape. i thought it was a typo first!

Re: Using External USB Hard Drive for Sharing - Help needed
Posted: Tue Aug 24, 2010 7:23 am
by AZAN
Hi ,
Sorry to revive the thread, but for the past week I still just can't figure it out. Like arodriguez, I am adding a usb drive to Amahi. I created a "Zio" folder in /var/hda/files" did the "ls -s ..." in the Zio folder to create a link to "/media/Zio/Photo..." So that my users when browsing the shared "Zio" folder will point to my "Zio" hard drive directory called "Photo". I created the link as root. now the problem being I have 2 users created in the system "bazan" and "hlau" , where bazan and "hlau" belongs to same "users" group. When locked in as "bazan" , I can see and browse the "Photo" folder, only probllem is when login as "hlau", the page came up blank (as oppose to seeing the folder "PHOTO". "hlau can still read and write to it but just didn't see the "PHOTO" folder... any idea? Was checking for file permission etc... but have no idea....(sorry I am a noob on linux)
Thanks in advance for all the help
Here are some details if needed:
drwxrwxr-x 2 bazan users 4096 2010-08-18 01:12 Backups
drwxrwxr-x 2 bazan users 4096 2010-08-08 02:08 books
drwxrwxr-x 2 bazan users 4096 2010-08-08 02:08 docs
drwxr-xr-x 2 root root 4096 2010-08-24 01:43 drives
drwxrwxr-x 2 bazan users 4096 2010-08-08 02:08 movies
drwxrwxr-x 2 bazan users 4096 2010-08-08 02:08 music
drwxrwxr-x 2 bazan users 4096 2010-08-16 17:03 pictures
drwxrwxr-x 2 bazan users 4096 2010-08-23 22:33 Zio
id:
uid=0(root) gid=0(root) groups=0(root),1(bin),2(daemon),3(sys),4(adm),6(disk),10(wheel)
uid=500(bazan) gid=100(users) groups=100(users)
uid=501(hlau) gid=100(users) groups=100(users)
ls -l on the USB drive:
total 4
drwx------ 1 bazan users 4096 2010-08-23 00:51 Zio
[root@server media]#
ls -l at HDA:
root@server Zio]# ls -l
total 0
lrwxrwxrwx 1 bazan users 16 2010-08-23 22:33 PHOTO -> /media/Zio/PHOTO
Re: Using External USB Hard Drive for Sharing
Posted: Tue Aug 24, 2010 9:51 am
by gboudreau
See
http://wiki.amahi.org/index.php/Shares_troubleshooting
In particular, the second bullet point near the top, about /media.
Re: Using External USB Hard Drive for Sharing
Posted: Tue Aug 24, 2010 10:11 am
by AZAN
Thanks... but I read and tried whatever as directed in the wiki before posting . Like I mentioned.... both "bazan" and "hlau" can access the share... only difference being "bazan" can see the sub folder "PHOTO" whereas "hlau" see no "PHOTO" but still able to write to "ZIO" and create directory etc...
Thanks
Re: Using External USB Hard Drive for Sharing
Posted: Tue Aug 24, 2010 10:28 am
by gboudreau
As pointed out in the above post, you can't use an auto-mounted drive found in /media if you have multiple users on your HDA.
/media auto-mounts are created by a logged in X (Gnome) session, and are readable and writable only by the user logged in on the HDA desktop, thus why only bazan can see it.
Your Zio share is not in /media, it's in /var/hda/files/Zio, so that is readable by everyone, thus why your other users can access that.
Re: Using External USB Hard Drive for Sharing
Posted: Wed Aug 25, 2010 9:58 am
by AZAN
Thanks gboudreau... sorry for the noob question as I am still learning the linux system and Amahi and how evrything fits together. You explained it well and I now understand ... and remount the drive as instructed and it works. thanks.
Now I am moving to configure Adito... I mapped the Zio drive ... now problem occurs again within Adito ie can access Zio, but cannot see folder? Do I have to go through the same process remount my usb again? I have already edited fstab and if not using adito can see the folder in windows.
Thanks again.
Re: Using External USB Hard Drive for Sharing
Posted: Wed Aug 25, 2010 10:02 am
by gboudreau
I don't use Adito, but my guess would be that Adito runs as a user who doesn't have access to your shares (maybe it runs as apache..?)
I suggest you open a new thread about that, so Adito users can see it and maybe they will be able to help.