Networking Forums

Networking Forums > Computer Networking > Linux Networking > Two computers sharing a external hard drive at the same time

Reply
Thread Tools Display Modes

Two computers sharing a external hard drive at the same time

 
 
Ying Hu
Guest
Posts: n/a

 
      05-05-2004, 03:52 PM
Hi All,

I have a external hard drive (USB Lacie) and two computers (windows and
Linux). I wanted the two compters to share the external hard drive at
THE SAME TIME.
Is it possible?

Any help is greatly apprecieated.
Thanks

Ying
 
Reply With Quote
 
 
 
 
Hactar
Guest
Posts: n/a

 
      05-05-2004, 04:25 PM
In article <R48mc.216$(E-Mail Removed)>,
Ying Hu <(E-Mail Removed)> wrote:

> I have a external hard drive (USB Lacie) and two computers (windows and
> Linux). I wanted the two compters to share the external hard drive at
> THE SAME TIME.
> Is it possible?


I've never heard of it being possible, with the exception of some Macintosh
Powerbooks which were connected to a desktop via SCSI while on.

Consider connecting it to only one machine directly, and sharing it over the
network on that machine.

--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing? [TOFU := text oben,
A: Top-posting. followup unten]
Q: What is the most annoying thing on usenet? -- Daniel Jensen
 
Reply With Quote
 
Jan Geertsma
Guest
Posts: n/a

 
      05-05-2004, 05:28 PM
Hactar wrote:
> In article <R48mc.216$(E-Mail Removed)>,
> Ying Hu <(E-Mail Removed)> wrote:
>
>>I have a external hard drive (USB Lacie) and two computers (windows and
>>Linux). I wanted the two compters to share the external hard drive at
>>THE SAME TIME.
>>Is it possible?

>
> I've never heard of it being possible, with the exception of some Macintosh
> Powerbooks which were connected to a desktop via SCSI while on.
>
> Consider connecting it to only one machine directly, and sharing it over the
> network on that machine.


Yeah, don't make your life more difficult, go with Hactar, use nfs or
smb or whatever you prefer
 
Reply With Quote
 
/dev/rob0
Guest
Posts: n/a

 
      05-05-2004, 06:41 PM
On Wed, 05 May 2004 11:52:17 -0400, Ying Hu wrote:
> I have a external hard drive (USB Lacie) and two computers (windows and
> Linux). I wanted the two compters to share the external hard drive at
> THE SAME TIME.


This may fit a literal definition of "networking", but we're not that
literal around here. This is a hardware question, way OT here.

> Is it possible?


A long time ago with SCSI devices I discovered that it is technically
possible to share a SCSI bus among multiple machines, as long as each
device on the bus, INCLUDING THE HOST ADAPTERS, has a distinct SCSI ID.
USB storage devices are handled as SCSI in Linux, and probably Windows
as well. The question then becomes, "Do USB controllers appear on the
virtual SCSI bus as a host adapter, and if so, can you set the SCSI ID
to something nonstandard?"

My bet is that it will work just fine, but watch out for simultaneous
accesses! There's no locking. This is the kind of thing where you'd
want to be very careful. For best results have one OS mount the
filesystem read-only ... and since I doubt that's possible in a
crippled OS like Windows, I guess the Linux machine will have to do it.
--
/dev/rob0 - preferred_email=i$((28*28+28))@softhome.net
or put "not-spam" or "/dev/rob0" in Subject header to reply

 
Reply With Quote
 
Tauno Voipio
Guest
Posts: n/a

 
      05-05-2004, 07:40 PM
/dev/rob0 wrote:
> On Wed, 05 May 2004 11:52:17 -0400, Ying Hu wrote:
>
>>I have a external hard drive (USB Lacie) and two computers (windows and
>>Linux). I wanted the two compters to share the external hard drive at
>>THE SAME TIME.

>
>
> This may fit a literal definition of "networking", but we're not that
> literal around here. This is a hardware question, way OT here.
>
>
>>Is it possible?

>
>
> A long time ago with SCSI devices I discovered that it is technically
> possible to share a SCSI bus among multiple machines, as long as each
> device on the bus, INCLUDING THE HOST ADAPTERS, has a distinct SCSI ID.
> USB storage devices are handled as SCSI in Linux, and probably Windows
> as well. The question then becomes, "Do USB controllers appear on the
> virtual SCSI bus as a host adapter, and if so, can you set the SCSI ID
> to something nonstandard?"
>
> My bet is that it will work just fine, but watch out for simultaneous
> accesses! There's no locking. This is the kind of thing where you'd
> want to be very careful. For best results have one OS mount the
> filesystem read-only ... and since I doubt that's possible in a
> crippled OS like Windows, I guess the Linux machine will have to do it.


The file systems on such drives will be clobbered in a fraction of a
second, if there is no co-operation of the operating systems: if
both computers b8uffer the disk sectors independently, the crucial
file system sectors (which are the most used) will very soon end up
unsychronised.

I have worked with one system with twin Data General CPU's and common
disks - it's bloody complicated. There was a special communication
interface in both computers to aid the kernels to synchronise.
The system was built before the time of current networks. Please
follow the networking route for shared disk units - it's the thing
that works.

HTH

Tauno Voipio
tauno voipio @ iki fi

 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      05-05-2004, 07:51 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.networking Ying Hu <(E-Mail Removed)> suggested:
> Hi All,


> I have a external hard drive (USB Lacie) and two computers (windows and
> Linux). I wanted the two compters to share the external hard drive at
> THE SAME TIME.
> Is it possible?


Sure, just put the drive on the Linux box and share the mounted
fs using samba (www.samba.org), comes with most distro, perhaps
it's already installed and you just need to configure/start it?

Good luck

--
Michael Heiming (GPG-Key ID: 0xEDD27B94)

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of spam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAmUXRAkPEju3Se5QRAtsjAJ9qR/g9z8wYuszWryXkuMGVW9rDzwCdGIVV
r538NQ7WLoy5BPvUK9Ba2vk=
=2aQz
-----END PGP SIGNATURE-----
 
Reply With Quote
 
Edward Lee epl
Guest
Posts: n/a

 
      05-05-2004, 09:22 PM
"/dev/rob0" <(E-Mail Removed)> wrote in message news:<(E-Mail Removed)>...
> On Wed, 05 May 2004 11:52:17 -0400, Ying Hu wrote:
> > I have a external hard drive (USB Lacie) and two computers (windows and
> > Linux). I wanted the two compters to share the external hard drive at
> > THE SAME TIME.

>
> This may fit a literal definition of "networking", but we're not that
> literal around here. This is a hardware question, way OT here.
>
> > Is it possible?


I don't think so.

>
> A long time ago with SCSI devices I discovered that it is technically
> possible to share a SCSI bus among multiple machines, as long as each
> device on the bus, INCLUDING THE HOST ADAPTERS, has a distinct SCSI ID.
> USB storage devices are handled as SCSI in Linux, and probably Windows
> as well. The question then becomes, "Do USB controllers appear on the
> virtual SCSI bus as a host adapter, and if so, can you set the SCSI ID
> to something nonstandard?"


Can you set your motherboard to be a USB slave?

>
> My bet is that it will work just fine, but watch out for simultaneous
> accesses! There's no locking. This is the kind of thing where you'd
> want to be very careful. For best results have one OS mount the
> filesystem read-only ... and since I doubt that's possible in a
> crippled OS like Windows, I guess the Linux machine will have to do it.


My bet is that you can't fit two brains in one head and two USB root
hubs in one USB bus.
 
Reply With Quote
 
Michael Heiming
Guest
Posts: n/a

 
      05-05-2004, 10:11 PM
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
NotDashEscaped: You need GnuPG to verify this message

In comp.os.linux.networking Tauno Voipio <(E-Mail Removed)> suggested:
> /dev/rob0 wrote:
> > On Wed, 05 May 2004 11:52:17 -0400, Ying Hu wrote:
> >
> >>I have a external hard drive (USB Lacie) and two computers (windows and
> >>Linux). I wanted the two compters to share the external hard drive at
> >>THE SAME TIME.

[..]

> >>Is it possible?


Yep, albeit not with your hardware. Just setup samba, as already
written.

[..]

> > My bet is that it will work just fine, but watch out for simultaneous
> > accesses! There's no locking. This is the kind of thing where you'd

[..]

> The file systems on such drives will be clobbered in a fraction of a
> second, if there is no co-operation of the operating systems: if
> both computers b8uffer the disk sectors independently, the crucial
> file system sectors (which are the most used) will very soon end up
> unsychronised.


That's very likely to happen, please don't try this out if the
data has any worth with your USB disk.

> I have worked with one system with twin Data General CPU's and common
> disks - it's bloody complicated. There was a special communication


Try a google search on "TruCluster", those have even shared /
and yep, it's not that easy...

--
Michael Heiming - RHCE (GPG-Key ID: 0xEDD27B94)

Remove +SIGNS and www. if you expect an answer, sorry for
inconvenience, but I get tons of spam.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQFAmWZ3AkPEju3Se5QRAky5AJ4suDvUxL2o90b4EdZvuV RMosqRbQCg1VfQ
5yOcIZjmHMp0c0yqQpGx+qg=
=j+FZ
-----END PGP SIGNATURE-----
 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      05-07-2004, 11:20 PM
Ying Hu wrote:

> Hi All,
>
> I have a external hard drive (USB Lacie) and two computers (windows and
> Linux). I wanted the two compters to share the external hard drive at
> THE SAME TIME.
> Is it possible?


It theory it's possible, but it's not practical. That was often done years
ago, with mini-computers, but you need some method to arbitrate access. In
the Data General systems I worked on, the disk adapter board supported 2
controllers, but included a locking mechanism, to prevent simultaneous
access. A better bet, would be to share the drive over a network.

--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      05-07-2004, 11:25 PM
Hactar wrote:

> I've never heard of it being possible, with the exception of some
> Macintosh Powerbooks which were connected to a desktop via SCSI while on.
>


It was common with mini-computers. I used to support Data General & DEC
(Digital Equipment Corporation) computers, among others, which did it.
However, it requires some arbitration method, to prevent both computers
from accessing the disk at the same time.
--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
wireless external hard drive charles cashion Wireless Internet 2 12-08-2009 09:01 AM
Reading\Writing to Networked External Hard Drive neil154 Windows Networking 4 09-21-2007 12:46 AM
Accessing an external hard drive JohnHBoyd Wireless Networks 3 01-08-2007 03:44 PM
Cant Access External Hard Drive Amy Johnson Wireless Networks 2 06-24-2005 11:45 PM
New External Hard Drive Amy Johnson Wireless Networks 3 06-09-2005 12:46 PM



1 2 3 4 5 6 7 8 9 10 11