regarding floppy


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers regarding floppy
# 1  
Old 08-11-2008
Question regarding floppy

Regarding floppy drive ..

I need a command or a method by which i can detect a floppy drive is present or not ?

Thanks,
Priya.
# 2  
Old 08-11-2008
Depending on your OS you could check with
Code:
ls /dev/fd?*

and test it's return code ($?). Might be no absolute guarantee but maybe it helps though.
On Linux you can also use hwinfo and grep for it etc.
# 3  
Old 08-11-2008
cat /proc/devices
# 4  
Old 08-11-2008
Bug Thank you

Thanks for the help.
Executed both the commands and each serves a different purpose.

Thank you.Smilie
# 5  
Old 08-11-2008
Hello Priya,

/proc/devices -
This file displays the various character and block devices currently configured. This does not include devices whose modules are not loaded. So you can easily figure out whether your floopy drive has been detected or not.

"fd" should appear in your block device section if its detected by system.

regrets, i should have explain it in my earlier post.

- nilesh
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

mount floppy, to be sure

Hi there, I never touch a AIX because i'm used to work on FreeBSD. I'll have to copy some file from a floppy to an AIX. Just to be sure is the mount command the same ? I mean a simple mount /dev/fd0 /floppy should work ? Thanks :) (1 Reply)
Discussion started by: Yogz
1 Replies

2. UNIX for Dummies Questions & Answers

Saving to a floppy

How do I save a file to a floppy. I mounted the drive and it is there. Everytime I try to save to the floppy, it tells me the resource is busy. Please advise. Thanks, (1 Reply)
Discussion started by: umether
1 Replies

3. AIX

Boot Floppy

Dear Sirs, I would like to make a Boot Floppy for the RS6k F30. Somebody can help me? Spart (1 Reply)
Discussion started by: spartiate
1 Replies

4. UNIX Desktop Questions & Answers

I cant access the floppy

I have two Digital boxs... vintage mid90's OS DEC Unix... I need to write an ASCII file to the floppy drive for transfer to a Windows box. The boxes are isolated. No email, no internet, no network... except between each other. A primary and a backup. I examined /dev and found two... (2 Replies)
Discussion started by: ChrisCram
2 Replies

5. Filesystems, Disks and Memory

reformatting a floppy!

i am trying to reformat a floppy i am using solaris 9 when i run this: rmformat -F quick /vol/dev/aliases/floppy0 it tells me that it cannot perform the operation on a mounted device. how do i unmount the device and format the floppy? (1 Reply)
Discussion started by: rmuhammad
1 Replies

6. UNIX for Dummies Questions & Answers

floppy

i manage to screw up alittle i entered in /etc/fstab mount /dev/fd0 msdos /mnt/floppy 2 2 or something and now when i boot i get an error like this The following file systems had an unexpected inconsistency: msdos: /dev/fd0 (/mnt/floppy) Unknown error; Help! init: /bin/sh on /etc/rc... (3 Replies)
Discussion started by: ekizz
3 Replies

7. UNIX for Dummies Questions & Answers

Floppy , CDrom

We use #eject cdrom to eject the cdrom . Is there a way to "close" it after using that command ? is there a command to eject floppy ? Thanks (7 Replies)
Discussion started by: hitlermom
7 Replies

8. Filesystems, Disks and Memory

Writing to a floppy

For some reason I cannot get my UNIX box on my network so I have no way of tranferring files from it or to it. Does anyone.....anyone know how I redirect my output or write to the floppy? (2 Replies)
Discussion started by: jlrusso
2 Replies

9. UNIX for Dummies Questions & Answers

Suse Floppy not available

HI, I installed Suse 8.1 on an Emachine with a Cyrix processor equivelent to Pentium II. The dmesg reveals that the floppy was recognised, and there is an icon on the desktop for it, but when I trey to access it, it is not available. If I access it from a terminal window, the error I get... (7 Replies)
Discussion started by: Sonshyne5
7 Replies

10. UNIX for Dummies Questions & Answers

opening floppy

I have solaris 8 (Intel Version) and I was wondering how I can transfer a bunch of text files (shellscripts) via floppy. I don't have internet connectivity with my Solaris pc so I can't download the files. I have the text files on my windows 2000 pc and copied them to a floppy but when I try to... (7 Replies)
Discussion started by: eloquent99
7 Replies
Login or Register to Ask a Question