Can a USB hub be used to access a drive from two devices?USB 2 Hub for running USB External DrivesWould a USB hub work in reverse?USB Hub questionsUSB Hub Error -62Is there any advantage to using a USB 3 hub with USB 2 storage devices?What are the implications of plugging a USB 2.0 hub into a USB 3.0 hubUSB Hub requires “Scan for hardware changes” to detect my USB HDDPlugging in USB device shorts out USB hubOnly one of two USB 3 HDD works on powered USB hub. Why?Can two USB 3.1 Gen-1 devices together saturate a USB 3.1 Gen-2 root hub?
How do Windows version numbers work?
How to query contacts with no cases, opportunities etc
Password maker in c#
What's a moment that's more impactful on a reread called?
How can I deal with a player trying to insert real-world mythology into my homebrew setting?
The monorail explodes before I can get on it
Cubic programming and beyond?
diff shows a file that does not exist
Science writing - exact, precise, or accurate
Is an acid a salt or not?
Extract an attribute value from XML
How might the United Kingdom become a republic?
Why do players in the past play much longer tournaments than today's top players?
Cops: The Hidden OEIS Substring
QGIS Welcome page: What is 'pin to list' for?
Bronze Age Underwater Civilization
Stuck Apple Mail - how to reset?
Referring to different instances of the same character in time travel
How did the hit man miss?
Reverse the word order in string, without reversing the words
How do I take a fraction to a negative power?
Why isn't there research to build a standard lunar, or Martian mobility platform?
Correct use of ergeben?
How the name "craqueuhhe" is read
Can a USB hub be used to access a drive from two devices?
USB 2 Hub for running USB External DrivesWould a USB hub work in reverse?USB Hub questionsUSB Hub Error -62Is there any advantage to using a USB 3 hub with USB 2 storage devices?What are the implications of plugging a USB 2.0 hub into a USB 3.0 hubUSB Hub requires “Scan for hardware changes” to detect my USB HDDPlugging in USB device shorts out USB hubOnly one of two USB 3 HDD works on powered USB hub. Why?Can two USB 3.1 Gen-1 devices together saturate a USB 3.1 Gen-2 root hub?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
So let's say, I get a USB hub, and I plug it into a hard drive for example (as in, I plug the USB cable that typically goes in a PC, into a hard drive) and then I plug for example two PCs into it (as in, I plug it into the part where there are multiple USB slots), can the two PCs both read and write data to it?
hard-drive usb
add a comment |
So let's say, I get a USB hub, and I plug it into a hard drive for example (as in, I plug the USB cable that typically goes in a PC, into a hard drive) and then I plug for example two PCs into it (as in, I plug it into the part where there are multiple USB slots), can the two PCs both read and write data to it?
hard-drive usb
Not an answer, but SCSI could do this, with some caveats. From 2004 criggie.org.nz/scsi
– Criggie
Jul 5 at 13:09
add a comment |
So let's say, I get a USB hub, and I plug it into a hard drive for example (as in, I plug the USB cable that typically goes in a PC, into a hard drive) and then I plug for example two PCs into it (as in, I plug it into the part where there are multiple USB slots), can the two PCs both read and write data to it?
hard-drive usb
So let's say, I get a USB hub, and I plug it into a hard drive for example (as in, I plug the USB cable that typically goes in a PC, into a hard drive) and then I plug for example two PCs into it (as in, I plug it into the part where there are multiple USB slots), can the two PCs both read and write data to it?
hard-drive usb
hard-drive usb
edited Jul 4 at 16:22
Run5k
12.2k7 gold badges36 silver badges56 bronze badges
12.2k7 gold badges36 silver badges56 bronze badges
asked Jul 2 at 17:38
humanhuman
1562 silver badges4 bronze badges
1562 silver badges4 bronze badges
Not an answer, but SCSI could do this, with some caveats. From 2004 criggie.org.nz/scsi
– Criggie
Jul 5 at 13:09
add a comment |
Not an answer, but SCSI could do this, with some caveats. From 2004 criggie.org.nz/scsi
– Criggie
Jul 5 at 13:09
Not an answer, but SCSI could do this, with some caveats. From 2004 criggie.org.nz/scsi
– Criggie
Jul 5 at 13:09
Not an answer, but SCSI could do this, with some caveats. From 2004 criggie.org.nz/scsi
– Criggie
Jul 5 at 13:09
add a comment |
6 Answers
6
active
oldest
votes
No. USB by design can only have a single host (one PC).
What you can get is a kind of "switch", often combined with a USB hub. Then you can connect two PCs to it and manually switch between them. But only one PC can be the USB host at a time.
If you want to share a harddisk between two PCs, then there are other ways to do that (e.g. NAS = network attached storage).
11
If you want to share a USB mass storage device with multiple devices, connect it to a router with the ability to share a USB storage device connected to it, allowing access to the storage.
– Ramhound
Jul 2 at 19:10
8
@NicHartley: The USB protocol is stateful, so not easily: The intermediate device would have to remember various states of the devices, and either do workarounds if the two hosts expect them to be in different states, or just plainly fail in this case. It would also have to decide which host to send back the answer to. For simple USB devices, it could probably be made to work, and for USB storage devices probably too. However, just for USB storage devices, it would probably be easier for the intermediate device to simulate two distinct USB slaves, and pass on the SCSI commands to the drive.
– dirkt
Jul 3 at 20:00
3
@NicHartley The other limitations are the drives' native command sets and filesystems are generally not designed to allow simultaneous access from multiple hosts, even if you get past the USB hurdle. You'd have to start/end a new session every time, at which point you're little better than just manually switching the drive (there'll be a huge latency while waiting for the switch from the other host).
– Bob
Jul 4 at 1:12
12
Not only would the SCSI session be a problem. OSes aggressively cache access to the file system, for two OSes to have concurrent access to the same block device/filesystem, they would need to synchronize access to the file system metadata, which would be insanely slow, if at all possible.
– Aron
Jul 4 at 1:38
3
@Aron: Actually, that's definitely possible and not too horrendous. It's been used in High-Availability systems so that a pair of computers would share the same disks. This allowed for uninterrupted operation even if one of the pair crashed.**But** this requires OS cooperation.
– MSalters
Jul 4 at 7:10
|
show 3 more comments
No. You cannot share USB devices between different hosts. USB switches allow you to disconnect USB devices from one computer and connect them to another by pressing a button. The primary use is (most probably) to connect a keyboard-mouse-set to two PCs and switch as needed.
But even if USB would allow the setup you have in mind, you'll run into trouble. Most filesystems will be damaged/become inconsistent/corrupt if data is written simultaneously by two computers. Please don't confuse this with special protocols like Samba/Windows Shares, NFS etc. In these cases, only the computer that shares the data will continue to read and write to disk for the other computers. So although multiple computers have access, a single computer controls all read and write accesses.
If you want to share a harddisk between two PCs you can use sharing options in the OS of one of the PCs (e.g., Windows Shares, NFS). Moreover, today's home routers and NAS allow to easily share attached storage in the network.
add a comment |
No, you cannot, but there are other similar solutions.
If you were to set up a NAS (Network Attached Storage) on the network, then both PC's could read off of the network storage device. This would work over the entire network, as it is connected to the network. You then could even map the drive or subdirectory on the USB as a drive, if you want.
Alternately, you can plug the USB into another PC and map one PC read another PC by manually setting ip addreses (if they are not already mapped), set the sharing settings, and you connect them with via ethernet, but I'm pretty sure that you can't automatically access external drives (anything plugged into USB) using this method unless they are specifically mapped. In this case the drive would be plugged into only 1 computer and the other PC would read the drive through the other PC, over ethernet.
add a comment |
It's physically impossible to plug a hub into two PCs using standard USB cables. Hubs and PCs both have A-type sockets on downstream ports, and there are no standard cables connecting two A-sockets together.
The same issue will arise when you'll try to connect your hub's upstream port to a hard drive, as they will both have B-type sockets . There are exceptions to this case, as upstream ports are allowed to have AB or C-type sockets, but it won't work nevertheless, as USB is dysfunctional without a host on the bus.
Male A-male A cables are readily available, despite not being covered in the standard. I have one somewhere, I think it came with a SATA adapter.
– Pete Kirkham
Jul 6 at 1:12
@PeteKirkham That's why I say "there are no standard cables".
– Dmitry Grigoryev
Jul 8 at 8:12
add a comment |
It should be possible using USB-C that supports the Thunderbolt interface:
Apple’s Thunderbolt can support up to six devices in a daisy chain, on
a single port. So an example of this would be if your MacBook Pro
(device 1) is connected to an iMac (device 2), which is connected to
an external hard drive (device 3), which is connected to another
external hard drive (device 4), which is connected to RAID storage
(device 5), which is connected to an Apple Thunderbolt Display (device
6).
In this daisy chain, your MacBook Pro and your iMac will be able to read the data from all the hard drives and the RAID, as well as talk to each other. Pretty cool, huh?
add a comment |
I have a KVM that is able to share a single USB2 port between up to 4 computers along with the keyboard mouse.
You can drop a file from a Windows PC onto it and read it from a Mac connected to the same KVM. It's pretty cool.
Cost about $100 on Amazon for the 4Port version with 4K support. I have a MacMini + Windows + RaspberryPI + Nintendo Switch connected.
The trick is that normal KVM's disconnect the ports as you switch between hosts, but this model keeps the ports alive so the O/S doesn't lose / rediscover the keyboard/mouse/usb each time you switch.
I've tested the port with a USB2 stick, PS4 controller and a Logitech mechanical keyboard which needed more power than the dedicated keyboard usb port on the KVM.
Don't want to break any advertising rules, but if you google the product, it's red.
My first answer, so YMMV.
Out of curiosity: What happens if you plug a USB harddisk or USB stick into this port (to be safe, not one with valuable data)? Will it be detected on all four computers? What happens if you try to write to the same file on all four computers at the same time, every time with different contents? Or do you have to manually switch? In this case, what happens when you read/write from a computer where it hasn't been switched to?
– dirkt
Jul 4 at 13:24
1
What does KVM mean in this context?
– Marc.2377
Jul 5 at 2:01
Sorry if I was unclear. KVM in this case is "keyboard, video, mouse" switch. The initials have since become more commonly reused for the linux vm technology. The original KVM was a rackmount thing to allow multiple servers to share the same mouse/keyboard and monitor. I use one to share my limited space between a pc, mac + random smaller boxes. classic psone, c64 mini, raspberry pi, psmini, etc.
– Ian Stoffberg
Jul 5 at 15:51
@dirkt It looks like you can't write simultaneously. I plugged in a usb drive on the windows pc and when I went to the mac it was there. I could read/write on either machine, but not at the same time. it seems like the switch preserves a connected state that a drive is present, but doesn't really permit IO. The switch didn't power up my external 2.5" drive. If I get a 3.5" one with external power, I'll give that a try sometime.
– Ian Stoffberg
Jul 5 at 16:07
So it automatically switches, after some kind of timeout? When you try to write on the "wrong" machine, you don't get an error message? Interesting solution.
– dirkt
Jul 5 at 17:27
|
show 2 more comments
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "3"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1455415%2fcan-a-usb-hub-be-used-to-access-a-drive-from-two-devices%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
6 Answers
6
active
oldest
votes
6 Answers
6
active
oldest
votes
active
oldest
votes
active
oldest
votes
No. USB by design can only have a single host (one PC).
What you can get is a kind of "switch", often combined with a USB hub. Then you can connect two PCs to it and manually switch between them. But only one PC can be the USB host at a time.
If you want to share a harddisk between two PCs, then there are other ways to do that (e.g. NAS = network attached storage).
11
If you want to share a USB mass storage device with multiple devices, connect it to a router with the ability to share a USB storage device connected to it, allowing access to the storage.
– Ramhound
Jul 2 at 19:10
8
@NicHartley: The USB protocol is stateful, so not easily: The intermediate device would have to remember various states of the devices, and either do workarounds if the two hosts expect them to be in different states, or just plainly fail in this case. It would also have to decide which host to send back the answer to. For simple USB devices, it could probably be made to work, and for USB storage devices probably too. However, just for USB storage devices, it would probably be easier for the intermediate device to simulate two distinct USB slaves, and pass on the SCSI commands to the drive.
– dirkt
Jul 3 at 20:00
3
@NicHartley The other limitations are the drives' native command sets and filesystems are generally not designed to allow simultaneous access from multiple hosts, even if you get past the USB hurdle. You'd have to start/end a new session every time, at which point you're little better than just manually switching the drive (there'll be a huge latency while waiting for the switch from the other host).
– Bob
Jul 4 at 1:12
12
Not only would the SCSI session be a problem. OSes aggressively cache access to the file system, for two OSes to have concurrent access to the same block device/filesystem, they would need to synchronize access to the file system metadata, which would be insanely slow, if at all possible.
– Aron
Jul 4 at 1:38
3
@Aron: Actually, that's definitely possible and not too horrendous. It's been used in High-Availability systems so that a pair of computers would share the same disks. This allowed for uninterrupted operation even if one of the pair crashed.**But** this requires OS cooperation.
– MSalters
Jul 4 at 7:10
|
show 3 more comments
No. USB by design can only have a single host (one PC).
What you can get is a kind of "switch", often combined with a USB hub. Then you can connect two PCs to it and manually switch between them. But only one PC can be the USB host at a time.
If you want to share a harddisk between two PCs, then there are other ways to do that (e.g. NAS = network attached storage).
11
If you want to share a USB mass storage device with multiple devices, connect it to a router with the ability to share a USB storage device connected to it, allowing access to the storage.
– Ramhound
Jul 2 at 19:10
8
@NicHartley: The USB protocol is stateful, so not easily: The intermediate device would have to remember various states of the devices, and either do workarounds if the two hosts expect them to be in different states, or just plainly fail in this case. It would also have to decide which host to send back the answer to. For simple USB devices, it could probably be made to work, and for USB storage devices probably too. However, just for USB storage devices, it would probably be easier for the intermediate device to simulate two distinct USB slaves, and pass on the SCSI commands to the drive.
– dirkt
Jul 3 at 20:00
3
@NicHartley The other limitations are the drives' native command sets and filesystems are generally not designed to allow simultaneous access from multiple hosts, even if you get past the USB hurdle. You'd have to start/end a new session every time, at which point you're little better than just manually switching the drive (there'll be a huge latency while waiting for the switch from the other host).
– Bob
Jul 4 at 1:12
12
Not only would the SCSI session be a problem. OSes aggressively cache access to the file system, for two OSes to have concurrent access to the same block device/filesystem, they would need to synchronize access to the file system metadata, which would be insanely slow, if at all possible.
– Aron
Jul 4 at 1:38
3
@Aron: Actually, that's definitely possible and not too horrendous. It's been used in High-Availability systems so that a pair of computers would share the same disks. This allowed for uninterrupted operation even if one of the pair crashed.**But** this requires OS cooperation.
– MSalters
Jul 4 at 7:10
|
show 3 more comments
No. USB by design can only have a single host (one PC).
What you can get is a kind of "switch", often combined with a USB hub. Then you can connect two PCs to it and manually switch between them. But only one PC can be the USB host at a time.
If you want to share a harddisk between two PCs, then there are other ways to do that (e.g. NAS = network attached storage).
No. USB by design can only have a single host (one PC).
What you can get is a kind of "switch", often combined with a USB hub. Then you can connect two PCs to it and manually switch between them. But only one PC can be the USB host at a time.
If you want to share a harddisk between two PCs, then there are other ways to do that (e.g. NAS = network attached storage).
edited Jul 2 at 18:58
answered Jul 2 at 17:56
dirktdirkt
10.7k3 gold badges17 silver badges26 bronze badges
10.7k3 gold badges17 silver badges26 bronze badges
11
If you want to share a USB mass storage device with multiple devices, connect it to a router with the ability to share a USB storage device connected to it, allowing access to the storage.
– Ramhound
Jul 2 at 19:10
8
@NicHartley: The USB protocol is stateful, so not easily: The intermediate device would have to remember various states of the devices, and either do workarounds if the two hosts expect them to be in different states, or just plainly fail in this case. It would also have to decide which host to send back the answer to. For simple USB devices, it could probably be made to work, and for USB storage devices probably too. However, just for USB storage devices, it would probably be easier for the intermediate device to simulate two distinct USB slaves, and pass on the SCSI commands to the drive.
– dirkt
Jul 3 at 20:00
3
@NicHartley The other limitations are the drives' native command sets and filesystems are generally not designed to allow simultaneous access from multiple hosts, even if you get past the USB hurdle. You'd have to start/end a new session every time, at which point you're little better than just manually switching the drive (there'll be a huge latency while waiting for the switch from the other host).
– Bob
Jul 4 at 1:12
12
Not only would the SCSI session be a problem. OSes aggressively cache access to the file system, for two OSes to have concurrent access to the same block device/filesystem, they would need to synchronize access to the file system metadata, which would be insanely slow, if at all possible.
– Aron
Jul 4 at 1:38
3
@Aron: Actually, that's definitely possible and not too horrendous. It's been used in High-Availability systems so that a pair of computers would share the same disks. This allowed for uninterrupted operation even if one of the pair crashed.**But** this requires OS cooperation.
– MSalters
Jul 4 at 7:10
|
show 3 more comments
11
If you want to share a USB mass storage device with multiple devices, connect it to a router with the ability to share a USB storage device connected to it, allowing access to the storage.
– Ramhound
Jul 2 at 19:10
8
@NicHartley: The USB protocol is stateful, so not easily: The intermediate device would have to remember various states of the devices, and either do workarounds if the two hosts expect them to be in different states, or just plainly fail in this case. It would also have to decide which host to send back the answer to. For simple USB devices, it could probably be made to work, and for USB storage devices probably too. However, just for USB storage devices, it would probably be easier for the intermediate device to simulate two distinct USB slaves, and pass on the SCSI commands to the drive.
– dirkt
Jul 3 at 20:00
3
@NicHartley The other limitations are the drives' native command sets and filesystems are generally not designed to allow simultaneous access from multiple hosts, even if you get past the USB hurdle. You'd have to start/end a new session every time, at which point you're little better than just manually switching the drive (there'll be a huge latency while waiting for the switch from the other host).
– Bob
Jul 4 at 1:12
12
Not only would the SCSI session be a problem. OSes aggressively cache access to the file system, for two OSes to have concurrent access to the same block device/filesystem, they would need to synchronize access to the file system metadata, which would be insanely slow, if at all possible.
– Aron
Jul 4 at 1:38
3
@Aron: Actually, that's definitely possible and not too horrendous. It's been used in High-Availability systems so that a pair of computers would share the same disks. This allowed for uninterrupted operation even if one of the pair crashed.**But** this requires OS cooperation.
– MSalters
Jul 4 at 7:10
11
11
If you want to share a USB mass storage device with multiple devices, connect it to a router with the ability to share a USB storage device connected to it, allowing access to the storage.
– Ramhound
Jul 2 at 19:10
If you want to share a USB mass storage device with multiple devices, connect it to a router with the ability to share a USB storage device connected to it, allowing access to the storage.
– Ramhound
Jul 2 at 19:10
8
8
@NicHartley: The USB protocol is stateful, so not easily: The intermediate device would have to remember various states of the devices, and either do workarounds if the two hosts expect them to be in different states, or just plainly fail in this case. It would also have to decide which host to send back the answer to. For simple USB devices, it could probably be made to work, and for USB storage devices probably too. However, just for USB storage devices, it would probably be easier for the intermediate device to simulate two distinct USB slaves, and pass on the SCSI commands to the drive.
– dirkt
Jul 3 at 20:00
@NicHartley: The USB protocol is stateful, so not easily: The intermediate device would have to remember various states of the devices, and either do workarounds if the two hosts expect them to be in different states, or just plainly fail in this case. It would also have to decide which host to send back the answer to. For simple USB devices, it could probably be made to work, and for USB storage devices probably too. However, just for USB storage devices, it would probably be easier for the intermediate device to simulate two distinct USB slaves, and pass on the SCSI commands to the drive.
– dirkt
Jul 3 at 20:00
3
3
@NicHartley The other limitations are the drives' native command sets and filesystems are generally not designed to allow simultaneous access from multiple hosts, even if you get past the USB hurdle. You'd have to start/end a new session every time, at which point you're little better than just manually switching the drive (there'll be a huge latency while waiting for the switch from the other host).
– Bob
Jul 4 at 1:12
@NicHartley The other limitations are the drives' native command sets and filesystems are generally not designed to allow simultaneous access from multiple hosts, even if you get past the USB hurdle. You'd have to start/end a new session every time, at which point you're little better than just manually switching the drive (there'll be a huge latency while waiting for the switch from the other host).
– Bob
Jul 4 at 1:12
12
12
Not only would the SCSI session be a problem. OSes aggressively cache access to the file system, for two OSes to have concurrent access to the same block device/filesystem, they would need to synchronize access to the file system metadata, which would be insanely slow, if at all possible.
– Aron
Jul 4 at 1:38
Not only would the SCSI session be a problem. OSes aggressively cache access to the file system, for two OSes to have concurrent access to the same block device/filesystem, they would need to synchronize access to the file system metadata, which would be insanely slow, if at all possible.
– Aron
Jul 4 at 1:38
3
3
@Aron: Actually, that's definitely possible and not too horrendous. It's been used in High-Availability systems so that a pair of computers would share the same disks. This allowed for uninterrupted operation even if one of the pair crashed.**But** this requires OS cooperation.
– MSalters
Jul 4 at 7:10
@Aron: Actually, that's definitely possible and not too horrendous. It's been used in High-Availability systems so that a pair of computers would share the same disks. This allowed for uninterrupted operation even if one of the pair crashed.**But** this requires OS cooperation.
– MSalters
Jul 4 at 7:10
|
show 3 more comments
No. You cannot share USB devices between different hosts. USB switches allow you to disconnect USB devices from one computer and connect them to another by pressing a button. The primary use is (most probably) to connect a keyboard-mouse-set to two PCs and switch as needed.
But even if USB would allow the setup you have in mind, you'll run into trouble. Most filesystems will be damaged/become inconsistent/corrupt if data is written simultaneously by two computers. Please don't confuse this with special protocols like Samba/Windows Shares, NFS etc. In these cases, only the computer that shares the data will continue to read and write to disk for the other computers. So although multiple computers have access, a single computer controls all read and write accesses.
If you want to share a harddisk between two PCs you can use sharing options in the OS of one of the PCs (e.g., Windows Shares, NFS). Moreover, today's home routers and NAS allow to easily share attached storage in the network.
add a comment |
No. You cannot share USB devices between different hosts. USB switches allow you to disconnect USB devices from one computer and connect them to another by pressing a button. The primary use is (most probably) to connect a keyboard-mouse-set to two PCs and switch as needed.
But even if USB would allow the setup you have in mind, you'll run into trouble. Most filesystems will be damaged/become inconsistent/corrupt if data is written simultaneously by two computers. Please don't confuse this with special protocols like Samba/Windows Shares, NFS etc. In these cases, only the computer that shares the data will continue to read and write to disk for the other computers. So although multiple computers have access, a single computer controls all read and write accesses.
If you want to share a harddisk between two PCs you can use sharing options in the OS of one of the PCs (e.g., Windows Shares, NFS). Moreover, today's home routers and NAS allow to easily share attached storage in the network.
add a comment |
No. You cannot share USB devices between different hosts. USB switches allow you to disconnect USB devices from one computer and connect them to another by pressing a button. The primary use is (most probably) to connect a keyboard-mouse-set to two PCs and switch as needed.
But even if USB would allow the setup you have in mind, you'll run into trouble. Most filesystems will be damaged/become inconsistent/corrupt if data is written simultaneously by two computers. Please don't confuse this with special protocols like Samba/Windows Shares, NFS etc. In these cases, only the computer that shares the data will continue to read and write to disk for the other computers. So although multiple computers have access, a single computer controls all read and write accesses.
If you want to share a harddisk between two PCs you can use sharing options in the OS of one of the PCs (e.g., Windows Shares, NFS). Moreover, today's home routers and NAS allow to easily share attached storage in the network.
No. You cannot share USB devices between different hosts. USB switches allow you to disconnect USB devices from one computer and connect them to another by pressing a button. The primary use is (most probably) to connect a keyboard-mouse-set to two PCs and switch as needed.
But even if USB would allow the setup you have in mind, you'll run into trouble. Most filesystems will be damaged/become inconsistent/corrupt if data is written simultaneously by two computers. Please don't confuse this with special protocols like Samba/Windows Shares, NFS etc. In these cases, only the computer that shares the data will continue to read and write to disk for the other computers. So although multiple computers have access, a single computer controls all read and write accesses.
If you want to share a harddisk between two PCs you can use sharing options in the OS of one of the PCs (e.g., Windows Shares, NFS). Moreover, today's home routers and NAS allow to easily share attached storage in the network.
edited Jul 3 at 10:54
answered Jul 2 at 19:07
user3422070user3422070
5013 silver badges4 bronze badges
5013 silver badges4 bronze badges
add a comment |
add a comment |
No, you cannot, but there are other similar solutions.
If you were to set up a NAS (Network Attached Storage) on the network, then both PC's could read off of the network storage device. This would work over the entire network, as it is connected to the network. You then could even map the drive or subdirectory on the USB as a drive, if you want.
Alternately, you can plug the USB into another PC and map one PC read another PC by manually setting ip addreses (if they are not already mapped), set the sharing settings, and you connect them with via ethernet, but I'm pretty sure that you can't automatically access external drives (anything plugged into USB) using this method unless they are specifically mapped. In this case the drive would be plugged into only 1 computer and the other PC would read the drive through the other PC, over ethernet.
add a comment |
No, you cannot, but there are other similar solutions.
If you were to set up a NAS (Network Attached Storage) on the network, then both PC's could read off of the network storage device. This would work over the entire network, as it is connected to the network. You then could even map the drive or subdirectory on the USB as a drive, if you want.
Alternately, you can plug the USB into another PC and map one PC read another PC by manually setting ip addreses (if they are not already mapped), set the sharing settings, and you connect them with via ethernet, but I'm pretty sure that you can't automatically access external drives (anything plugged into USB) using this method unless they are specifically mapped. In this case the drive would be plugged into only 1 computer and the other PC would read the drive through the other PC, over ethernet.
add a comment |
No, you cannot, but there are other similar solutions.
If you were to set up a NAS (Network Attached Storage) on the network, then both PC's could read off of the network storage device. This would work over the entire network, as it is connected to the network. You then could even map the drive or subdirectory on the USB as a drive, if you want.
Alternately, you can plug the USB into another PC and map one PC read another PC by manually setting ip addreses (if they are not already mapped), set the sharing settings, and you connect them with via ethernet, but I'm pretty sure that you can't automatically access external drives (anything plugged into USB) using this method unless they are specifically mapped. In this case the drive would be plugged into only 1 computer and the other PC would read the drive through the other PC, over ethernet.
No, you cannot, but there are other similar solutions.
If you were to set up a NAS (Network Attached Storage) on the network, then both PC's could read off of the network storage device. This would work over the entire network, as it is connected to the network. You then could even map the drive or subdirectory on the USB as a drive, if you want.
Alternately, you can plug the USB into another PC and map one PC read another PC by manually setting ip addreses (if they are not already mapped), set the sharing settings, and you connect them with via ethernet, but I'm pretty sure that you can't automatically access external drives (anything plugged into USB) using this method unless they are specifically mapped. In this case the drive would be plugged into only 1 computer and the other PC would read the drive through the other PC, over ethernet.
edited Jul 3 at 13:37
Keeta
1032 bronze badges
1032 bronze badges
answered Jul 3 at 12:13
rtyocumrtyocum
1295 bronze badges
1295 bronze badges
add a comment |
add a comment |
It's physically impossible to plug a hub into two PCs using standard USB cables. Hubs and PCs both have A-type sockets on downstream ports, and there are no standard cables connecting two A-sockets together.
The same issue will arise when you'll try to connect your hub's upstream port to a hard drive, as they will both have B-type sockets . There are exceptions to this case, as upstream ports are allowed to have AB or C-type sockets, but it won't work nevertheless, as USB is dysfunctional without a host on the bus.
Male A-male A cables are readily available, despite not being covered in the standard. I have one somewhere, I think it came with a SATA adapter.
– Pete Kirkham
Jul 6 at 1:12
@PeteKirkham That's why I say "there are no standard cables".
– Dmitry Grigoryev
Jul 8 at 8:12
add a comment |
It's physically impossible to plug a hub into two PCs using standard USB cables. Hubs and PCs both have A-type sockets on downstream ports, and there are no standard cables connecting two A-sockets together.
The same issue will arise when you'll try to connect your hub's upstream port to a hard drive, as they will both have B-type sockets . There are exceptions to this case, as upstream ports are allowed to have AB or C-type sockets, but it won't work nevertheless, as USB is dysfunctional without a host on the bus.
Male A-male A cables are readily available, despite not being covered in the standard. I have one somewhere, I think it came with a SATA adapter.
– Pete Kirkham
Jul 6 at 1:12
@PeteKirkham That's why I say "there are no standard cables".
– Dmitry Grigoryev
Jul 8 at 8:12
add a comment |
It's physically impossible to plug a hub into two PCs using standard USB cables. Hubs and PCs both have A-type sockets on downstream ports, and there are no standard cables connecting two A-sockets together.
The same issue will arise when you'll try to connect your hub's upstream port to a hard drive, as they will both have B-type sockets . There are exceptions to this case, as upstream ports are allowed to have AB or C-type sockets, but it won't work nevertheless, as USB is dysfunctional without a host on the bus.
It's physically impossible to plug a hub into two PCs using standard USB cables. Hubs and PCs both have A-type sockets on downstream ports, and there are no standard cables connecting two A-sockets together.
The same issue will arise when you'll try to connect your hub's upstream port to a hard drive, as they will both have B-type sockets . There are exceptions to this case, as upstream ports are allowed to have AB or C-type sockets, but it won't work nevertheless, as USB is dysfunctional without a host on the bus.
answered Jul 3 at 11:02
Dmitry GrigoryevDmitry Grigoryev
6,4751 gold badge23 silver badges60 bronze badges
6,4751 gold badge23 silver badges60 bronze badges
Male A-male A cables are readily available, despite not being covered in the standard. I have one somewhere, I think it came with a SATA adapter.
– Pete Kirkham
Jul 6 at 1:12
@PeteKirkham That's why I say "there are no standard cables".
– Dmitry Grigoryev
Jul 8 at 8:12
add a comment |
Male A-male A cables are readily available, despite not being covered in the standard. I have one somewhere, I think it came with a SATA adapter.
– Pete Kirkham
Jul 6 at 1:12
@PeteKirkham That's why I say "there are no standard cables".
– Dmitry Grigoryev
Jul 8 at 8:12
Male A-male A cables are readily available, despite not being covered in the standard. I have one somewhere, I think it came with a SATA adapter.
– Pete Kirkham
Jul 6 at 1:12
Male A-male A cables are readily available, despite not being covered in the standard. I have one somewhere, I think it came with a SATA adapter.
– Pete Kirkham
Jul 6 at 1:12
@PeteKirkham That's why I say "there are no standard cables".
– Dmitry Grigoryev
Jul 8 at 8:12
@PeteKirkham That's why I say "there are no standard cables".
– Dmitry Grigoryev
Jul 8 at 8:12
add a comment |
It should be possible using USB-C that supports the Thunderbolt interface:
Apple’s Thunderbolt can support up to six devices in a daisy chain, on
a single port. So an example of this would be if your MacBook Pro
(device 1) is connected to an iMac (device 2), which is connected to
an external hard drive (device 3), which is connected to another
external hard drive (device 4), which is connected to RAID storage
(device 5), which is connected to an Apple Thunderbolt Display (device
6).
In this daisy chain, your MacBook Pro and your iMac will be able to read the data from all the hard drives and the RAID, as well as talk to each other. Pretty cool, huh?
add a comment |
It should be possible using USB-C that supports the Thunderbolt interface:
Apple’s Thunderbolt can support up to six devices in a daisy chain, on
a single port. So an example of this would be if your MacBook Pro
(device 1) is connected to an iMac (device 2), which is connected to
an external hard drive (device 3), which is connected to another
external hard drive (device 4), which is connected to RAID storage
(device 5), which is connected to an Apple Thunderbolt Display (device
6).
In this daisy chain, your MacBook Pro and your iMac will be able to read the data from all the hard drives and the RAID, as well as talk to each other. Pretty cool, huh?
add a comment |
It should be possible using USB-C that supports the Thunderbolt interface:
Apple’s Thunderbolt can support up to six devices in a daisy chain, on
a single port. So an example of this would be if your MacBook Pro
(device 1) is connected to an iMac (device 2), which is connected to
an external hard drive (device 3), which is connected to another
external hard drive (device 4), which is connected to RAID storage
(device 5), which is connected to an Apple Thunderbolt Display (device
6).
In this daisy chain, your MacBook Pro and your iMac will be able to read the data from all the hard drives and the RAID, as well as talk to each other. Pretty cool, huh?
It should be possible using USB-C that supports the Thunderbolt interface:
Apple’s Thunderbolt can support up to six devices in a daisy chain, on
a single port. So an example of this would be if your MacBook Pro
(device 1) is connected to an iMac (device 2), which is connected to
an external hard drive (device 3), which is connected to another
external hard drive (device 4), which is connected to RAID storage
(device 5), which is connected to an Apple Thunderbolt Display (device
6).
In this daisy chain, your MacBook Pro and your iMac will be able to read the data from all the hard drives and the RAID, as well as talk to each other. Pretty cool, huh?
answered Jul 5 at 8:36
Cees TimmermanCees Timmerman
1,0201 gold badge10 silver badges37 bronze badges
1,0201 gold badge10 silver badges37 bronze badges
add a comment |
add a comment |
I have a KVM that is able to share a single USB2 port between up to 4 computers along with the keyboard mouse.
You can drop a file from a Windows PC onto it and read it from a Mac connected to the same KVM. It's pretty cool.
Cost about $100 on Amazon for the 4Port version with 4K support. I have a MacMini + Windows + RaspberryPI + Nintendo Switch connected.
The trick is that normal KVM's disconnect the ports as you switch between hosts, but this model keeps the ports alive so the O/S doesn't lose / rediscover the keyboard/mouse/usb each time you switch.
I've tested the port with a USB2 stick, PS4 controller and a Logitech mechanical keyboard which needed more power than the dedicated keyboard usb port on the KVM.
Don't want to break any advertising rules, but if you google the product, it's red.
My first answer, so YMMV.
Out of curiosity: What happens if you plug a USB harddisk or USB stick into this port (to be safe, not one with valuable data)? Will it be detected on all four computers? What happens if you try to write to the same file on all four computers at the same time, every time with different contents? Or do you have to manually switch? In this case, what happens when you read/write from a computer where it hasn't been switched to?
– dirkt
Jul 4 at 13:24
1
What does KVM mean in this context?
– Marc.2377
Jul 5 at 2:01
Sorry if I was unclear. KVM in this case is "keyboard, video, mouse" switch. The initials have since become more commonly reused for the linux vm technology. The original KVM was a rackmount thing to allow multiple servers to share the same mouse/keyboard and monitor. I use one to share my limited space between a pc, mac + random smaller boxes. classic psone, c64 mini, raspberry pi, psmini, etc.
– Ian Stoffberg
Jul 5 at 15:51
@dirkt It looks like you can't write simultaneously. I plugged in a usb drive on the windows pc and when I went to the mac it was there. I could read/write on either machine, but not at the same time. it seems like the switch preserves a connected state that a drive is present, but doesn't really permit IO. The switch didn't power up my external 2.5" drive. If I get a 3.5" one with external power, I'll give that a try sometime.
– Ian Stoffberg
Jul 5 at 16:07
So it automatically switches, after some kind of timeout? When you try to write on the "wrong" machine, you don't get an error message? Interesting solution.
– dirkt
Jul 5 at 17:27
|
show 2 more comments
I have a KVM that is able to share a single USB2 port between up to 4 computers along with the keyboard mouse.
You can drop a file from a Windows PC onto it and read it from a Mac connected to the same KVM. It's pretty cool.
Cost about $100 on Amazon for the 4Port version with 4K support. I have a MacMini + Windows + RaspberryPI + Nintendo Switch connected.
The trick is that normal KVM's disconnect the ports as you switch between hosts, but this model keeps the ports alive so the O/S doesn't lose / rediscover the keyboard/mouse/usb each time you switch.
I've tested the port with a USB2 stick, PS4 controller and a Logitech mechanical keyboard which needed more power than the dedicated keyboard usb port on the KVM.
Don't want to break any advertising rules, but if you google the product, it's red.
My first answer, so YMMV.
Out of curiosity: What happens if you plug a USB harddisk or USB stick into this port (to be safe, not one with valuable data)? Will it be detected on all four computers? What happens if you try to write to the same file on all four computers at the same time, every time with different contents? Or do you have to manually switch? In this case, what happens when you read/write from a computer where it hasn't been switched to?
– dirkt
Jul 4 at 13:24
1
What does KVM mean in this context?
– Marc.2377
Jul 5 at 2:01
Sorry if I was unclear. KVM in this case is "keyboard, video, mouse" switch. The initials have since become more commonly reused for the linux vm technology. The original KVM was a rackmount thing to allow multiple servers to share the same mouse/keyboard and monitor. I use one to share my limited space between a pc, mac + random smaller boxes. classic psone, c64 mini, raspberry pi, psmini, etc.
– Ian Stoffberg
Jul 5 at 15:51
@dirkt It looks like you can't write simultaneously. I plugged in a usb drive on the windows pc and when I went to the mac it was there. I could read/write on either machine, but not at the same time. it seems like the switch preserves a connected state that a drive is present, but doesn't really permit IO. The switch didn't power up my external 2.5" drive. If I get a 3.5" one with external power, I'll give that a try sometime.
– Ian Stoffberg
Jul 5 at 16:07
So it automatically switches, after some kind of timeout? When you try to write on the "wrong" machine, you don't get an error message? Interesting solution.
– dirkt
Jul 5 at 17:27
|
show 2 more comments
I have a KVM that is able to share a single USB2 port between up to 4 computers along with the keyboard mouse.
You can drop a file from a Windows PC onto it and read it from a Mac connected to the same KVM. It's pretty cool.
Cost about $100 on Amazon for the 4Port version with 4K support. I have a MacMini + Windows + RaspberryPI + Nintendo Switch connected.
The trick is that normal KVM's disconnect the ports as you switch between hosts, but this model keeps the ports alive so the O/S doesn't lose / rediscover the keyboard/mouse/usb each time you switch.
I've tested the port with a USB2 stick, PS4 controller and a Logitech mechanical keyboard which needed more power than the dedicated keyboard usb port on the KVM.
Don't want to break any advertising rules, but if you google the product, it's red.
My first answer, so YMMV.
I have a KVM that is able to share a single USB2 port between up to 4 computers along with the keyboard mouse.
You can drop a file from a Windows PC onto it and read it from a Mac connected to the same KVM. It's pretty cool.
Cost about $100 on Amazon for the 4Port version with 4K support. I have a MacMini + Windows + RaspberryPI + Nintendo Switch connected.
The trick is that normal KVM's disconnect the ports as you switch between hosts, but this model keeps the ports alive so the O/S doesn't lose / rediscover the keyboard/mouse/usb each time you switch.
I've tested the port with a USB2 stick, PS4 controller and a Logitech mechanical keyboard which needed more power than the dedicated keyboard usb port on the KVM.
Don't want to break any advertising rules, but if you google the product, it's red.
My first answer, so YMMV.
answered Jul 4 at 13:08
Ian StoffbergIan Stoffberg
271 bronze badge
271 bronze badge
Out of curiosity: What happens if you plug a USB harddisk or USB stick into this port (to be safe, not one with valuable data)? Will it be detected on all four computers? What happens if you try to write to the same file on all four computers at the same time, every time with different contents? Or do you have to manually switch? In this case, what happens when you read/write from a computer where it hasn't been switched to?
– dirkt
Jul 4 at 13:24
1
What does KVM mean in this context?
– Marc.2377
Jul 5 at 2:01
Sorry if I was unclear. KVM in this case is "keyboard, video, mouse" switch. The initials have since become more commonly reused for the linux vm technology. The original KVM was a rackmount thing to allow multiple servers to share the same mouse/keyboard and monitor. I use one to share my limited space between a pc, mac + random smaller boxes. classic psone, c64 mini, raspberry pi, psmini, etc.
– Ian Stoffberg
Jul 5 at 15:51
@dirkt It looks like you can't write simultaneously. I plugged in a usb drive on the windows pc and when I went to the mac it was there. I could read/write on either machine, but not at the same time. it seems like the switch preserves a connected state that a drive is present, but doesn't really permit IO. The switch didn't power up my external 2.5" drive. If I get a 3.5" one with external power, I'll give that a try sometime.
– Ian Stoffberg
Jul 5 at 16:07
So it automatically switches, after some kind of timeout? When you try to write on the "wrong" machine, you don't get an error message? Interesting solution.
– dirkt
Jul 5 at 17:27
|
show 2 more comments
Out of curiosity: What happens if you plug a USB harddisk or USB stick into this port (to be safe, not one with valuable data)? Will it be detected on all four computers? What happens if you try to write to the same file on all four computers at the same time, every time with different contents? Or do you have to manually switch? In this case, what happens when you read/write from a computer where it hasn't been switched to?
– dirkt
Jul 4 at 13:24
1
What does KVM mean in this context?
– Marc.2377
Jul 5 at 2:01
Sorry if I was unclear. KVM in this case is "keyboard, video, mouse" switch. The initials have since become more commonly reused for the linux vm technology. The original KVM was a rackmount thing to allow multiple servers to share the same mouse/keyboard and monitor. I use one to share my limited space between a pc, mac + random smaller boxes. classic psone, c64 mini, raspberry pi, psmini, etc.
– Ian Stoffberg
Jul 5 at 15:51
@dirkt It looks like you can't write simultaneously. I plugged in a usb drive on the windows pc and when I went to the mac it was there. I could read/write on either machine, but not at the same time. it seems like the switch preserves a connected state that a drive is present, but doesn't really permit IO. The switch didn't power up my external 2.5" drive. If I get a 3.5" one with external power, I'll give that a try sometime.
– Ian Stoffberg
Jul 5 at 16:07
So it automatically switches, after some kind of timeout? When you try to write on the "wrong" machine, you don't get an error message? Interesting solution.
– dirkt
Jul 5 at 17:27
Out of curiosity: What happens if you plug a USB harddisk or USB stick into this port (to be safe, not one with valuable data)? Will it be detected on all four computers? What happens if you try to write to the same file on all four computers at the same time, every time with different contents? Or do you have to manually switch? In this case, what happens when you read/write from a computer where it hasn't been switched to?
– dirkt
Jul 4 at 13:24
Out of curiosity: What happens if you plug a USB harddisk or USB stick into this port (to be safe, not one with valuable data)? Will it be detected on all four computers? What happens if you try to write to the same file on all four computers at the same time, every time with different contents? Or do you have to manually switch? In this case, what happens when you read/write from a computer where it hasn't been switched to?
– dirkt
Jul 4 at 13:24
1
1
What does KVM mean in this context?
– Marc.2377
Jul 5 at 2:01
What does KVM mean in this context?
– Marc.2377
Jul 5 at 2:01
Sorry if I was unclear. KVM in this case is "keyboard, video, mouse" switch. The initials have since become more commonly reused for the linux vm technology. The original KVM was a rackmount thing to allow multiple servers to share the same mouse/keyboard and monitor. I use one to share my limited space between a pc, mac + random smaller boxes. classic psone, c64 mini, raspberry pi, psmini, etc.
– Ian Stoffberg
Jul 5 at 15:51
Sorry if I was unclear. KVM in this case is "keyboard, video, mouse" switch. The initials have since become more commonly reused for the linux vm technology. The original KVM was a rackmount thing to allow multiple servers to share the same mouse/keyboard and monitor. I use one to share my limited space between a pc, mac + random smaller boxes. classic psone, c64 mini, raspberry pi, psmini, etc.
– Ian Stoffberg
Jul 5 at 15:51
@dirkt It looks like you can't write simultaneously. I plugged in a usb drive on the windows pc and when I went to the mac it was there. I could read/write on either machine, but not at the same time. it seems like the switch preserves a connected state that a drive is present, but doesn't really permit IO. The switch didn't power up my external 2.5" drive. If I get a 3.5" one with external power, I'll give that a try sometime.
– Ian Stoffberg
Jul 5 at 16:07
@dirkt It looks like you can't write simultaneously. I plugged in a usb drive on the windows pc and when I went to the mac it was there. I could read/write on either machine, but not at the same time. it seems like the switch preserves a connected state that a drive is present, but doesn't really permit IO. The switch didn't power up my external 2.5" drive. If I get a 3.5" one with external power, I'll give that a try sometime.
– Ian Stoffberg
Jul 5 at 16:07
So it automatically switches, after some kind of timeout? When you try to write on the "wrong" machine, you don't get an error message? Interesting solution.
– dirkt
Jul 5 at 17:27
So it automatically switches, after some kind of timeout? When you try to write on the "wrong" machine, you don't get an error message? Interesting solution.
– dirkt
Jul 5 at 17:27
|
show 2 more comments
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1455415%2fcan-a-usb-hub-be-used-to-access-a-drive-from-two-devices%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Not an answer, but SCSI could do this, with some caveats. From 2004 criggie.org.nz/scsi
– Criggie
Jul 5 at 13:09