Make a PC Look Like a Firewire or USB Drive?
buckinm asks: "Here's the problem: I have a Windows laptop that I use for work. When I'm at home though, I much rather use my Mac. Since we use Cisco's VPN client at work, I can't mount the drives on the PC from the Mac. What I'd like to know, is there any software out there that would make the PC act like a Firewire or USB drive? I'd want to be able to mount it read/write. I know I could do some sort of rsync of thing when not connected to the VPN, but that seems like too much trouble. I wouldn't be against writing something like that, if I could get some idea of what is required to listen / respond to traffic on the Firewire or USB ports."
Seems like smart minds think alike. I just submitted a simular post in my case for my laptop to be used as a thumb drive on the lab machines at school.
Hope we hear something good!!!
At first glance I thought this was an article about cramming PC parts into a Firewire drive enclosure, along the lines of the stories that proliferated after the release of the Mac Mini:)
As for the PC side, I don't know. It's obviously possible, but I haven't heard of it. The Tinkerer in me says make a switch that disconnects the HD from the computer and connects it to a IDE->Firewire adaptor you hide in the case. Switch in one position it's a normal computer. Switch in the other it's a firewire disk.
Good luck.
Comment forecast: Bits of genius surrounded by a sea of mediocrity.
the firewire interface has a tcp/ip stack.
Is it true that more people vote for the winner of American Idol, than vote for the president? -Ali G.
...the gadget device driver and API. From the linked page:
Tiller's Rule: Never use a word in written form that you've only heard and never read. You will end up looking foolish.
Simplest way:
Share the drive with SAMBA. Windows (and probably every other modern OS) supports Ethernet-over-Firewire.
Mount SAMBA share with IP-over-Firewire.
Problem solved.
Not sure, but adding a 2nd ethernet card might help. You could run a network separate from your main uplink, only between the Mac and the PC.
Have you looked into doing a Samba share. You can use it on a mac..
Some people might scare you with security issues, but that only applies to earlier versions. If you get the latests build, you will be safe.
What is the problem?
You want to mount drives form a Mac?
Share the drives and mount them.
You want to mount vpn mapped drives from a Mac?
Same deal, share them and mount them. If you can't share them, them subst them and share the subst.
You want to access your network from the Mac via the laptop?
Enable routing on the laptop.
Better yet, why not install the VPN client on the Mac and leave the laptop out of the question?
What do you want?
You could always get an external HDD shell from Maxtor. They're quite useful. I used to use a thumbdrive, and then I figured "why not have an external drive?". It's inexpensive too.
Hold down COMMAND+T when you boot for "target disk mode". Makes your computer into a firewire drive.
This is great if you want to use the HDD of your Powerbook G4 on your friend's G5 tower. I think you can even set it to be the boot disk.
Macs rule.
Don't forget that the disk in your windows laptop is FAT32 or NTFS or whatever, so you have the added step of making that mountable from OS X, in addition to all your firewire hoopla.
Does the VPN software preventing you from just simply connecting to your home LAN and mounting via Samba? If so, I suggest you make your laptop dual boot, so you can run Fedora or Mandrake linux and then share the drives after booting to one of those. If you don't want to dual boot, just boot from a Knoppix CD and run Knoppix linux.
There are 2 kinds of people in this world. Those that can keep their train of thought,
SCSI and FireWire Disk Modes
2000.11.29
Paulo Rodrigues
Our Fair Computer Company has released some quirky yet useful features in its computer systems and OS, and then advertised them very little, if at all. Apple's SCSI Disk Mode, and it's modernized offspring, FireWire Target Disk Mode, are excellent examples.
SCSI Disk Mode
SCSI Disk Mode, introduced way back in October 1991 on the PowerBook 100, allowed you to mount your PowerBook's hard drive on another Mac using a funny $30 cable made called PowerBook 100 Seriesthe SCSI Disk Adaptor. (Apple changed its name to HD Target Mode starting with the 5300 and 190, since they used IDE hard drives, but it works the same way. For consistency I'll refer to them both as SCSI Disk Mode.)
While today you can do the same thing with File Sharing and a $15 ethernet "crossover" cable, on most models you're limited to the relatively poor bandwidth of 10 megabit per second ethernet. Also, if your PowerBook has no ethernet port, you'd need to buy either an expensive PC Card ethernet adaptor or a speed-squashing LocalTalk-to-Ethernet bridge.
I'll refer to the Mac acting as an external hard drive as the "target" Mac, like Apple does, and the connecting computer as the "host" Mac.
Setup of SCSI Disk Mode
1. Shut down both machines.
2. Connect your SCSI Disk Adaptor between the target PowerBook and the host Mac.
3. Start up the target PowerBook. A SCSI icon and ID number should appear on the screen.
4. Turn on any other SCSI devices if the PowerBook is not the only device on the SCSI chain.
5. Start up the host Mac.
6. The PowerBook's hard drive icon should mount on the desktop of the host Mac. You can use it like you would use an external drive with little speed loss over using the PowerBook's drive in the PowerBook.
Okay, so it's not true plug-and-play ease, but it's a really convenient feature if you have an older PowerBook and another Mac with SCSI and can get your hands on the hard-to-find SCSI Disk Adaptors.
* Note that the PowerBook 140, 145, 145b, 150, and 170 do not support SCSI Disk Mode.
FireWire Target Disk Mode
Apple stopped including SCSI with the 2000 PowerBooks, replacing the SCSI port with two of Apple's more-Indigo iBookmodern FireWire ports. So you're in the dark if you wanna drop a huge file onto a new PowerBook's hard drive at full speed, right?
Of course not! Apple cleverly designed a new FireWire-based technology, called FireWire Target Disk Mode, which lets you connect your new PowerBook to another FireWire-equipped Mac. When Apple announced its new iBooks last September -- which also come with FireWire -- it included FireWire Target Disk Mode on them as well. As with its SCSI counterpart, the vast majority of 2000 PowerBook and iBook don't know such a feature exists!
Setup of FireWire Target Disk Mode is almost too easy:
1. Shut down the target Mac, leaving the host computer running.
2. Connect an ordinary 6-pin to 6-pin FireWire cable to a FireWire port on both computers. (These can be bought for around $15.)
3. Start up the target Mac and hold down the "T" key. A FireWire icon will appear on the screen, and the hard drive icon of the target Mac will pop up onto the host Mac's desktop.
Compared to SCSI Disk Mode, FireWire Target Disk Mode requires no rebooting of the host Mac and needs only an easy-to-find FireWire cable (it's half the price of the SCSI Disk Adaptor). FireWire Target Disk Mode is the fastest and easiest way to send files between a new portable Mac and any other Mac with FireWire. For sharing files between PowerBooks, FireWire provides 100 times the bandwidth of IrDA, the bigwig in Windows notebook computer and Palm PDA file sharing.
One other nicety is that FireWire Target Disk Mode is hot pluggable, you don't have to plug the two computers together before you start up the "target" PowerBook or iBook. Once the target computer has booted and the FireWire icon
Comment removed based on user account deletion
Since we use Cisco's VPN client at work, I can't mount the drives on the PC from the Mac
OK, you have a PC laptop. You have a Cisco VPN. You have files. What files do you need to share?
If the files are on the laptop, just network the 2 boxes at home and share the files, right?
If the files are at work, get a Cisco VPN solution for the Mac (I used one for years).
If IT won't help (surprise, right?), and you're determined to break the law/policy/whatever, there are a lot of options:
Add an interface on the laptop and set it up as a router.
http://sourceforge.net/projects/openvpn/, maybe over http://www.nocrew.org/software/httptunnel.html (either from the laptop or a machine in the office).
Maybe run the VPN in an emulator layer (http://fabrice.bellard.free.fr/qemu/), give it access to the local filesystem, let the "outter layer" windows export the same filesystem, keep updating using rsync (just brainstorming, here).
Or just keep it simple, stupid. Get an external firewire drive, dump the files you need, and swap it to/from the mac/laptop.
Sounds like you want Target Disk mode for PCs, but I don't think that such a beast exists. I believe Target Disk mode is a lower level feature than the OS (perhaps in Open Firmware?). I don't know a BIOS that supports anything similar, though I am no maven there.
You could put your Mac into Target Disk mode on your PC, but then you'd have to software for the PC that reads HFS+ formatted disks. Ugh...
IP-over-FireWire won't work because the VPN client locks out other network connections, so that knocks that idea out.
If you are willing to tear out your drive each time you work at home, then I suppose you could use one of the Wiebe Tech USB/FireWire enclosures, but I doubt that would be worth your time.
Good luck,
CC
Why not just an Iomega ZIP drive?
Use a Linux-Live-CD or USB-Boot or even Floppy to boot a minimal Linux with Samba, NFS or whatever fits your Mac best and share the files with that. Switching is as easy as removing the CD from the Drive and rebooting.
Linux is not Windows
don't forget to tell the idiot to turn off his VPN.
Use the Cisco VPN client for Mac OSX? Am I missing something here?
Sera
Slashdot, where armchair scientists get shouted down and armchair theologians get modded up.
I looked into this a while back.8 &c2coff=1&threadm=79240318.0302052128.2ac4b7de%40p osting.google.com&rnum=8&prev=/groups%3Fq%3Dcisco% 2B%2522default%2Bgateway%2522%2Bvpn%2Bclient%26hl% 3Den%26lr%3D%26ie%3DUTF-8%26c2coff%3D1%26sa%3DN%26 tab%3Dwg
http://groups.google.com/groups?hl=en&lr=&ie=UTF-
is a summary of what I found then.
There is an option "allow local LAN access" on the "transport" tab of the VPN client setup. However, according to the Usenet post above:
"... the administrator has the final say whether or not clients can do local LAN, both by enabling/or/ not enable "split tunnelling"
in the concentrator GROUP/CLIENT CONFIG. Without split tunnelling your stuck sending everything through the tunnel. You are only allowed to speak to your DEFAULT gateway, I.E the ISP ROUTER. Nothing you can do with the client will override this."
Its a bad idea anyway.
Even Apple is dropping Firewire.
USB wins! Yea! What did it win?
Because the question wasn't "What would make an ideal doorstop?"
Seriously, I used to use a ZIP drive at home until one day 6 years ago I went to Fry's to buy disks to back up my (probably) 20Gb hard drive and realized that it would cost more just to buy enough ZIP disks than it would to buy a CD burner. So I bought a CD burner instead and have used that for backups until I got a DVD burner.
Now, the CD burner part is irrelevant here. I would advocate the method already suggested of getting an external USB hard drive. Make it FAT32 format, as I believe OS X can read/write to that. If you do that MAKE SURE you know the max FAT32 filesystem OS X can support. I ran into this problem with RH EL3. The 2.4.21 kernel doesn't support FAT32 filesystems beyond ~130Gb. Well, it doesn't complain if you make them, but after you put about 130Gb worth of data on them, they get subtly corrupted.
The gadget driver operates a USB *peripheral* port. It's meant for use in embedded systems like printers. Your PC does not have a USB peripheral port, it has only host ports. The USB protocol is asymmetric; you're not going to connect an Apple and a PC using their USB host ports.
Get a USB of firewire hard drive and back up you notebooks drive to it. Hook it up to you Mac and you at least have all your data. Could be a good reason to get an iPod.
See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
OpenFirmware is a hell of a lot more featureladen than the PC's BIOS. While attempts to update BIOS are ongoing (see LinuxBIOS), a more effective shortterm solution is to emulate part of the functionality: boot off a livecd/floppy and network/fileshare over tcpip (nic or firewire). I'd advise u to look towards the always excellent Bart Lagerweij site
so i read it again 4 hours later, and that was ambigious.
i mean
on my laptop running ex pee, the firewire shows up under network connections as having a tcp/ip stack.
Grump
Is it true that more people vote for the winner of American Idol, than vote for the president? -Ali G.
Is there a program that will make my Pocket PC (Asus 716) behave like a normal USB drive so I can copy stuff on and off of it without needing the ActiveSync app installed?
There is support in newer Linux kernels for doing just this, only for SCSI (or was it an external patch)? I think it was originally meant for SANs and such, but you could probably get about the effect you want from it if you can find the patch :-)
/* Steinar */
(This comment is of course GPLed.)
This is totally OT and moderators can mod me down to the 9th level of hell but your sig "still looking for a wife..." caught my eye.
To wit, if you are looking, you will project that state of being and have little luck.
If instead you become/behave/act/think like a husband your chances will improve greatly!
I don't consider sig comments to be OT, because there is no private message system on /.
Anyway, don't take the sig too seriously (because I don't). Its just a running joke.
I'm 21 so not *too desperate* yet.
Grump
Is it true that more people vote for the winner of American Idol, than vote for the president? -Ali G.
Well, as others have pointed out, the obvious solution to his problem is to shut down the VPN and then mount the drives across the network. That's so obvious, even by normal "Ask Slashdot" standards, that I'm going to assume there's some reason it won't work.
I'm guessing that he wants to be pull down files from work to his PC, then use the Mac to modify the files, and then push the files from his PC back to work. If we further assume that he can't (effectively) add entries to his PC's route table when the VPN is on, and we assume that starting/stopping the VPN is a huge production, then the question makes sense.
My best suggestion would be to go sneakernet -- get yourself a small removeable storage medium (an iPod, a USB drive, a floppy, a digitil camera, whatever), and just transfer the files from one machine to the other that way.
The Cisco client does some low level stuff that if I understand it correctly, actually installs a new low level IP stack under the OS's that you have no control over or access to. The OS's stack is fully under the control of the VPN client since all traffic has to pass through it's private stack. It's funny, you can't even ping your own defaut gateway, the one the VPN traffic is traveling through.
The way around it is to use another stack. IPX might work but the simplest one i've found the IPv6 stack. It's completely separate from the V4 stack and the Cisco client I've used doesn't touch it. You can use all kinds of fun tricks with that. Hmm... better post this as AC. We all know "freedom of speech" doesn't mean what it used to these days.
Anyone's in particular?
I see even classic Slashdot is now pretty much unusable on dial up anymore.
not really.
have someone to intorduce?
Is it true that more people vote for the winner of American Idol, than vote for the president? -Ali G.
AC, you are absolutely right. This is exactly what he needs to do. I've done the IPX trick on the Cisco VPN client many times to print from my work laptop to my home printer (via a second windows box). I'm not sure about IPX support in the Mac (or even worse Netbios over IPX) so I'd go with the IPv6. A second trick that no longer works that well (used to work on older Cisco clients) was to add a second NIC (i.e. a PCMCIA 802.11 card) after the tunnel was established, or to have it deactivated at least, don't remember the exact details.
As a funny note, I notified Cisco of this problem with the Split Routing protection about 5 years ago (through the proper support channels, being as my company were customers of the product). They claimed it wasn't a bug or vulnerability.
Last but not least, you can always just go and get the damn VPN client for the Mac, and share the files the long way - over your tunnel into the office
-Jack Ash
Or enough of the wrong ones, either. :-)
I see even classic Slashdot is now pretty much unusable on dial up anymore.
The whole point of having a VPN and a work computer is to isolate and secure your work data.
By propagating your work data to your home PC (even if it is a more secure Macintosh) increases the chance that something is going to go wrong. The IT/IS people at work gave you laptops so you could work at home on the laptop. They set up a VPN so that you could SECURELY connect and work from anywhere. Is the simple convienience of working on your personal computer worth the risks of bypassing a reasonably secure setup??
I can think of a few problem cases where the benefits won't outweigh the loss.
-The first is outright theft. If someone gets your laptop and knows or figures out that they can just jack in, everything is compromised.
-I know Mac's are considered more secure, but what happens if your Mac is compromised and is connected to your laptop which is also connected to the VPN?? It'd make a nice straight IP tunnel straight to you losing your job and your company getting pWnZ0r3d.
-The last, and most likely, is a file synchronization problem. The whole idea of having everything on your laptop or on the company servers is that you have one copy and know where it is. If you start working on things on your own PC, what happens if you don't save it to the right location?? You polish of a report at home and save it locally, then the big boss asks for it on monday and BAM, you're "..in the unemployment line with all those scumbags!".
In short, deal with it. Don't go monkeying with the company laptop because it isn't your machine and it isn't your data.
I agree. Assuming that the complication here is that he needs the laptop running Windows as a VPN client to work, all the other suggestions such as SAMBA or live Linux CD won't work. But I wonder, does the VPN also shut out port 5900? If it doesn't, he can always run a VNC server and use the Mac to control the laptop desktop. I know you can't file share from Mac to the laptop or vice versa that way, but if he's just wanting to use one computer at home, then this is another option to the sneakernet.
Linux at home
USB host-controller in PCs are different. In USB, only the host-controller can bus-master - i.e. initiate transactions on the USB bus - no other device on the bus can. I believe this is specified in the protocol itself. The protocol allows for a smart host-controller and dumb devices. One master and the rest slaves.
This might become clearer if you examine the terminology. The ports closest to the host-controller are said to belong to the "root hub". USB provides for a tree architecture, rooted at the host-controller's ports.
This means that you cannot connect two PCs back-back through their USB ports and say run PPP over them. AFAIK host-controllers in PCs do not have a slave mode that they can be switched to.
The PC emulating a hard-disk has to be able to become a slave to show up as a device.
veliath
something like a pc-linq cable or some such - check the google text ads on the right...
I am pretty sure it works with macs too.
What are the odds that some idiot will name his mutex ether-rot-mutex!
"... the administrator has the final say whether or not clients can do local LAN, both by enabling/or/ not enable "split tunnelling" in the concentrator GROUP/CLIENT CONFIG. Without split tunnelling your stuck sending everything through the tunnel. You are only allowed to speak to your DEFAULT gateway, I.E the ISP ROUTER. Nothing you can do with the client will override this."
Correct. The VPN Concentrator has to be configured to allow local LAN access and can even restrict the addresses used, for example allow 192.168.0.* only and if the home user is using 192.168.1.*, tough luck.
Split tunneling is different, in that it leaves your default route alone and only captures traffic destined for your companies address range, this is bad bad bad, because an attack can come from your ISP and then has a nice encrypted tunnel into the corporate network. This happened to a company in Japan a couple of years back which resulted in the total banning of connecting home Windows machines to the corporate network weather via modem or VPN.
wierd I am not "bucking the man" but i totally agree with the parent poster.
if you do have personal data on the laptop just use a removable harddrive if they are huge files or a thumbdrive if they're smallish.
all that aside The laptop "_SHOULD_" have the programs you need to work iwth the files on it. what of compatibility issues? say something you save on the mac embedds something in a way one of the inferior pcs that have to deal with your jobs output can't handle?
I get files all the time that "_SHOULD_" be compatible with our versions of software but stuff pops up that fubars the file. fonts that weren't embedded, or files in the wrong format pc/mac. I know that if it's not working here it didn't come from a computer I am responsible for, or my boss snafu'd it.
"He's a real midnight golfer"
he'd have to actually move the mouse since he doesn't know any keyboard shortcuts.
"I hold down the button while I click?" (last week, about holding ctrl to select multiple files)
He's used windows for 8 years now.
cringe
"He's a real midnight golfer"
You could try another approach...
Buy a cheap USB-to-ethernet adapter, and run a 2nd network to your laptop. VPN over the primary NICr, and shared drive over the secondary NIC.
Note that I have not tried this, but *in theory* is should work. It, however, depends upon how the VPN software is written.
If you check out the sales, even if this does NOT work, you should only be out $10 or so (assuming that your Mac can talk to a cheap USB NIC - check for compatability before you buy).
"-1 Troll" is the apparently the same as "-1 I disagree with you."
I purchased an IOgear Smartlink cable. I had to use USB 1.1 due to OS and hardware inadequacies, but there may be a USB 2.0 option (though I don't see it on the IOgear site). The connection software is pretty crummy-looking, but it works, and their site claims that it supports Macs as well Windows (although I have not used it on a Mac). Since it's USB 1.1, it is as slow as molassass for entire-drive transfers, and you may prefer a different method.
Another option I looked into was an ethernet crossover cable, which, I believe swaps two of the wires over the course of the cable run. This was available at RadioShack (and I am sure other places). I decided not to go down this route, and it sounds like a no go for you as well, but I'm including it for the sake of completeness.
The third thing that might work is an external harddrive. I didn't use one because of the expense, but it may be worth it if you don't want to wait while your files transfer via USB. If you're doing smallish (less than 1GB) transfers, a thumb-drive may be the easiest way to do this.
It is VERY important that you do not try a straight USB to USB connection without the bridge cable. I understand that it can fry the USB ports on the machines. If you look at the image of the Smartlink cable on the page linked above, you'll see a bulge in the middle of the cable. That's the USB 'slave' that allows both computers to act as masters when doing the file transfer. FireWire may be a different story though, as you may just be able to plug it right in (no guarantees, though).
- You don't care about network security. In which case, please tell us where you work and your job title. I'd like to apply there in anticipation of your departure.
- You're really a sysadmin and you're trying to find out if this is a possible weakness in your network. If so, please tell us where you work and the job titles of people you suspect. I'd like to apply there in anticipation of their departure(s).
;)
- -or-
- You're trolling to see if there's a market and/or programmers for your new product.
All of these the possibility of a job for me in the near future!Anyway, the point is that if it's possible to access external USB or Firewire drives on a VPN'd computer, then it's definitely possible to set up a network connection, and it is a *major* security problem. In fact, I wouldn't be surprised if there's already a localhost IP proxy adapter that runs TCP/IP/USB, which gets decoded back to TCP/IP on an unsecured box.
If you cannot find such a program, I'd be happy to write one for you. Here's an md5sum of a phrase I can give you to verify that I'm the one who made this post (if you're interested in hiring me): cd39f5d7adcca45c081346de5da7f9c6. I'll be awaiting your reply.This is likely to have been said, but her it goes. So why not just user IP over Firewire??? Share your drive with access restrictions and use the faster connection firewire provides.
done
Regards,
Ryan Pritchard
Fun Extends All Basic Life Expectancies
Try this for firewire emulation by a Linux box.
Endpoint: Oracle firewire OSSI haven't tried it, but it is the only solution to allow "device" emulaton for x86 computers that I've found.
Now, if only the Linksys WRT54G would bridge IPX (since it won't route it)... My wife uses her laptop wirelessly, and can't get to any printers on our wired network when she has her VPN connected.
These VPNs that block local access are going to any more and more of us as time goes on, it seems.
For the Pee-See you need to write your own BIOS to get what you want. If you design firmware that is similar in function to what Apple uses on their products. Apple has been doing this for years. It might take the Pee-See vendors 10 or 20 years to do the same.
Your Average Joe
You could try an external hard drive with a USB hub. Both the PC and Mac would plug in to the hub and access the drive as needed for file transfers. Not my idea of an ideal solution, but it might provide a workaround (as well as a good backup location...)