Using External USB Hard Drive for Sharing

arodriguez
Posts: 2
Joined: Wed Mar 11, 2009 3:33 pm

Using External USB Hard Drive for Sharing

Postby arodriguez » Wed Mar 11, 2009 3:52 pm

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

User avatar
moredruid
Expert
Posts: 791
Joined: Tue Jan 20, 2009 1:33 am
Location: Netherlands
Contact:

Re: Using External USB Hard Drive for Sharing

Postby moredruid » Thu Mar 12, 2009 12:09 am

Benny, glad you like amahi!

you need to make sure you have the following base path:

Code: Select all

/var/hda/files/
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:

Code: Select all

ln -s /media/EXTERNAL benny_music
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 :)
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D2173656C7572206968616D41snlbxq' | dc
Galileo - HP Proliant ML110 G6 quad core Xeon 2.4GHz, 4GB RAM, 2x750GB RAID1 + 2x1TB RAID1 HDD

arodriguez
Posts: 2
Joined: Wed Mar 11, 2009 3:33 pm

Re: Using External USB Hard Drive for Sharing

Postby arodriguez » Thu Mar 12, 2009 6:30 am

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

User avatar
cpg
Administrator
Posts: 2618
Joined: Wed Dec 03, 2008 7:40 am
Contact:

Re: Using External USB Hard Drive for Sharing

Postby cpg » Thu Mar 12, 2009 6:52 am

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! :)
My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 8GB RAM, 1TBx2+3TBx1

AZAN
Posts: 13
Joined: Wed Feb 03, 2010 6:07 pm

Re: Using External USB Hard Drive for Sharing - Help needed

Postby AZAN » Tue Aug 24, 2010 7:23 am

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

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Using External USB Hard Drive for Sharing

Postby gboudreau » Tue Aug 24, 2010 9:51 am

See http://wiki.amahi.org/index.php/Shares_troubleshooting
In particular, the second bullet point near the top, about /media.
- Guillaume Boudreau

AZAN
Posts: 13
Joined: Wed Feb 03, 2010 6:07 pm

Re: Using External USB Hard Drive for Sharing

Postby AZAN » Tue Aug 24, 2010 10:11 am

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

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Using External USB Hard Drive for Sharing

Postby gboudreau » Tue Aug 24, 2010 10:28 am

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.
- Guillaume Boudreau

AZAN
Posts: 13
Joined: Wed Feb 03, 2010 6:07 pm

Re: Using External USB Hard Drive for Sharing

Postby AZAN » Wed Aug 25, 2010 9:58 am

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.

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: Using External USB Hard Drive for Sharing

Postby gboudreau » Wed Aug 25, 2010 10:02 am

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.
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 29 guests