Recognizing a floppy

This is for discussing general topics about how to use VirtualBox.
Jamesapp
Posts: 2
Joined: 8. Jan 2011, 00:55
Primary OS: Mac OS X Leopard
VBox Version: OSE Debian
Guest OSses: Dos

Recognizing a floppy

Post by Jamesapp »

Hello,
How do I get my os to recognize a floppy drive?

I have an external USB floppy connected to a laptop running Mac os x. And I have freedos installed, but when I get to the command line and type a: my floppy isn't recognized? How can I get freedos to recognize my floppy drive?

Any help, or info would be great...
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Recognizing a floppy

Post by Perryg »

I don't know if freedos supports USB devices by default. You should see about that first.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Recognizing a floppy

Post by mpack »

Jamesapp wrote:but when I get to the command line and type a: my floppy isn't recognized?
The floppy is connected to your host PC, not the virtual PC, so the virtual PC can't access it normally (just like it can't access any other host drive). If you want to associate a virtual floppy drive with a physical (host) floppy drive then you need to create that association in the VMs settings. I'm not a Mac user so I can't tell you how floppy (or any other) drives are identified there.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Recognizing a floppy

Post by ChipMcK »

Before VB will attach an USB device, you need to tell VB that it is a resource to be monitored.
Settings for the virtual machine: Create an USBFilter for the USB device while the virtual machine is shutdown.
Then the device should be selectable when the virtual machine is running.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Recognizing a floppy

Post by Perryg »

As I said unless you can overcome this issue I don't know you can make this happen.
http://en.wikipedia.org/wiki/FreeDOS
So far there is no USB driver support inside the FreeDOS project,
Unless there is some way to emulate a real floppy on the MAC side. That might work. I have tried this on Windows and Linux and never got it to work in FreeDOS.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Recognizing a floppy

Post by mpack »

Guys... unless I've missed something then the USB thing is a red herring. USB is how it connects to the host, not necessarily how it connects to the guest. While you could certainly connect it to some guests using USB, IMHO it's easier just to connect to it like any other host floppy drive. Or are you saying that Mac hosts don't recognize removable USB floppy drives?
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Recognizing a floppy

Post by ChipMcK »

mpack wrote:Guys... unless I've missed something then the USB thing is a red herring. USB is how it connects to the host, not necessarily how it connects to the guest. While you could certainly connect it to some guests using USB, IMHO it's easier just to connect to it like any other host floppy drive. Or are you saying that Mac hosts don't recognize removable USB floppy drives?
An Apple computer does not have a built-in floppy drive. How does one make the connection from emulation with images to physical media on USB?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Recognizing a floppy

Post by mpack »

ChipMcK wrote:An Apple computer does not have a built-in floppy drive
Most modern Windows PCs don't have them either. I'm not sure what your question is about: once the floppy is connected to the host you just choose host drive X in the VM floppy settings. X would be "A:" or "B:" on Windows hosts, but like I said before I don't know how a Mac hosts identifies drives since I'm not a Mac user.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Recognizing a floppy

Post by ChipMcK »

choose host drive X in the VM floppy settings
But the choice is an image, not drive, in the Storage section.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Recognizing a floppy

Post by mpack »

ChipMcK wrote:
choose host drive X in the VM floppy settings
But the choice is an image, not drive, in the Storage section.
Well, first things first. (1) Can someone confirm whether or not a Mac host supports external floppy drives at all? (with or without drivers). (2) On a Windows host the VBox Storage selection gives you a pulldown list which includes all physical floppy drives, plus a button beside it to select a floppy image instead. Is this not what you get on a Mac?
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Recognizing a floppy

Post by ChipMcK »

1) a Mac Host supports USB floppy drives
2) On Mac host, Storage floppy controller gives choice of two (2) virtual floppies
3) On Mac host, an image may be mounted/attached to a virtual floppy

My question is "on a Mac host how do I connect the virtual floppy to the real USB floppy?"
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Recognizing a floppy

Post by fixedwheel »

mpack wrote:(2) On a Windows host the VBox Storage selection gives you a pulldown list which includes all physical floppy drives, plus a button beside it to select a floppy image instead. Is this not what you get on a Mac?
don't know about Mac, but maybe this helps to sort that out
a) Linux host with legacy floppy drive: pulldown list includes floppy drive
b) Linux host with USB floppy drive: pulldown list without floppy drive
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Recognizing a floppy

Post by mpack »

fixedwheel wrote:b) Linux host with USB floppy drive: pulldown list without floppy drive
Sounds like drive enumeration on Linux doesn't work the way I'd expect. It's possible you could still connect the drive manually in that case, by editing the xml.
ChipMcK
Volunteer
Posts: 1095
Joined: 20. May 2009, 02:17
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows, OSX
Location: U S of A

Re: Recognizing a floppy

Post by ChipMcK »

Mac host do not have legacy floppy drives.
editing the xml
Assuming the one for the virtual machine.
fixedwheel
Volunteer
Posts: 1699
Joined: 13. Sep 2008, 02:18

Re: Recognizing a floppy

Post by fixedwheel »

ChipMcK wrote:Mac host do not have legacy floppy drives.
i know about
google tells me Mac have dd command?

Code: Select all

dd if=/dev/fd0 of=foobar.img bs=512
replace /dev/fd0 by the Mac device name of your USB floppy and when ready attach foobar.img to the guest.
bs=512 is optional only to speed things up - and exchange if= and of= to write back to physical medium


@mpack i have access to the USB floppy next monday at work
Post Reply