LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-14-2008, 11:46 PM   #1
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Rep: Reputation: 30
how to share usb drive


Hey there all,

i have had really good luck with nfs sharing a directory in our house full of linux computers.
so i have a usb hard drive with 500MB.. cool. when i plug it in, the computer mounts it on /media/disk

now, i have tried to include /media/disk in my etc/exports file, but it still does not seem to work.

any advice here?
 
Old 10-15-2008, 12:11 AM   #2
Pupthai
LQ Newbie
 
Registered: Sep 2008
Location: Phitsanulok, Thailand
Distribution: PClinuxOS (Minime2008)
Posts: 10

Rep: Reputation: 0
I would think that if you mount the drive in its own dir. it would share like any other.
make a blank dir like 500Gdrive and use it as the mount point for the drive in fstab. Then just share the dir. 500Gdrive. I would also think the media/< > would share but seems to not be doing so. Maybe because that type mount has no entry in fstab. Its just an auto mount. worth a try.
 
Old 10-15-2008, 12:52 AM   #3
nephish
Member
 
Registered: Jun 2005
Distribution: arch, ubuntu
Posts: 456

Original Poster
Rep: Reputation: 30
ok, did that, but the unit will not mount there.
in fstab
/dev/sdb /mass_media ext3 defaults 0, 0

started the computer, when i turned on the usb drive, still auto mounted on /media/disk
 
Old 10-16-2008, 04:27 AM   #4
Pupthai
LQ Newbie
 
Registered: Sep 2008
Location: Phitsanulok, Thailand
Distribution: PClinuxOS (Minime2008)
Posts: 10

Rep: Reputation: 0
as root unmount the media/disk and re mount with
mount /dev/sdb command and fstab should give it the right mount point. You must have a matching empty dir for it to mount in. May not be able to do it auto, but once mounted right click of the dir mass_media select properties and it will show 500g drive size rather then the empty dir. and anything that might be in that dir before mounting the drive becomes hidden files. Not sure about ubuntu but would seem this should be rather standard for any OS, but might ubuntu forum for auto mount usb drive to dir with fstab and be sure its not a step missing.
 
Old 10-17-2008, 02:40 PM   #5
evaluatinglinux
Member
 
Registered: Oct 2008
Posts: 45

Rep: Reputation: 15
This is a totally tangential question - But, doesn't a 500 GB USB external HDD require external power input?

Debian Kernel

Last edited by evaluatinglinux; 10-25-2008 at 03:54 AM.
 
Old 10-18-2008, 04:56 AM   #6
Pupthai
LQ Newbie
 
Registered: Sep 2008
Location: Phitsanulok, Thailand
Distribution: PClinuxOS (Minime2008)
Posts: 10

Rep: Reputation: 0
Yes they normally do. I have three drives I use, an 80gig with two partitions and two old drives from dead PC's they have ide to usb adpters and use their own power source. With dir in home named share and mp3 the old drives are labeled share and mp3 and mount to those dir. and become completely shared even with windows in virtualbox via the file share it has.
/dev/sda /home/share ntfs defualt,nls=utf8, 0 0
/dev/sdb /home/mp3 ntfs defualt,nls=utf8, 0 0
All my shares are formated in NTFS. I leave most things turned on all the time and with out some kind of sleep the old drives get a work out. Everything is backed up so if they die and they will someday, then nothing is lost. I do this with a laptop which is more a moble desktop as its home 98% of the time, so they do need their own power anyway. Some of the large ext drive have a spin down and rest mode when not active, but I don't know which ones work in Linux or if any of them do.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing Debian on USB Hard Drive/USB Jump Drive kushalkoolwal Debian 10 02-26-2009 02:46 PM
SMB Drive Share JamboUK Ubuntu 2 08-24-2007 06:22 PM
FC6: In Rescue mode, how can i copy file to either external USB or to XP share drive? RMS1981 Fedora 11 01-19-2007 03:19 AM
USB drive using different partitions (usb key thumb drive) Arodef Linux - Hardware 0 08-04-2004 07:36 PM
How do I share a drive on network vash_stewy Linux - Networking 4 04-11-2004 11:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration