Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ls -l /mnt/floppy 1

Status
Not open for further replies.

GuzaPasha

Technical User
May 15, 2003
311
FR
ntuity >ls -l /mnt/floppy/
total 0
crw-rw-rw- 1 root root 0, 0 Sep 20 16:21 0
crw-rw-rw- 1 root root 0, 0 Sep 20 16:21 1
crw-rw-rw- 1 root root 0, 0 Sep 20 16:21 2
crw-rw-rw- 1 root root 0, 0 Sep 20 16:21 3

Is this regular output?

Still no idea how to copy to floppy and to read from it.

Could anyone explain this for me and how to access floppy.

tnx,

 
The easiest way is to use the mtools (I think that's what it's called) package, which includes utilies like mdir, mcopy, etc. I think the 'm' stands for MS-DOS. Obviously these are only useful for MS-DOS formatted floppies.

Annihilannic.
 
This is the UNIX SCO 7.1.1 result.

i am getting troubles to access the floppy... No idea how to access it, i got some replies that ls -l /mnt/floppy will list he contest of a floppy disk, no success for me...
 
What operating system are you using?
On Linux, 'mount -t auto /dev/fd0 /mnt/floppy' will work fine


"If you always do what you've always done, you will always be where you've always been."
 
Other SCOs require you to mount the floppy first. For example, assuming a /mnt/floppy mount point existed you would "mount /dev/fd0 /mnt/floppy" which would add a unix filesystem based floppy identified as /dev/fd0 at /mnt/floppy so that you could do your ls -l /mnt/floppy and get a listing like you showed.
And to keep from getting errors you would umount the device when you were ready to take it out.

Once the floppy was mounted you could copy to /mnt/floppy just like any other place on the machine. Or cat a file to read from it, or remove it with rm.

I don't know if there is any difference with your 7.1.1. My examples are from the SCO open server versions. Hope they can help.

Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
Great help Edfair.

The floppy is mounted as you said.

Should I get sth like regular file listing? or the one i showed.

Am I able to list it as other filesystems.

Thx,

GuzaPasha



 
At the point where the floppy is mounted it becomes part of the filesystem / directory structure and anything on it is handled just like any other file or directory. You do your ls command and you'll see what is on the floppy.

can't remember what the exact differences are but you have several choices for listing the files:
l /mnt/floppy shows pretty much the same
ls /mnt/floppy reduced to file names
ls -l /mnt/floppy your listing

I would suspect that most people would put their floppy into the filesystem at /mnt since that is the way the support books explain the operation. But that isn't the only way. The book (5.0.4 was the last one I saw) suggested "mount /dev/fd0 /mnt". I create 2 directories on the systems I build, /fd0 & /cd0. When I need the floppy it is mount /dev/fd0 /fd0 and the CD is mount /dev/cd0 /cd0.
Be aware that anything that is on the directory you use as a mount point disappears when you mount a device there, until you umount the device.

Ed Fair
Give the wrong symptoms, get the wrong solutions.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top