Stupid SCO Questions
Results 1 to 6 of 6

Thread: Stupid SCO Questions

  1. #1
    Join Date
    Jun 2001
    Location
    San Antonio, Texas, USA
    Posts
    381

    Smile Stupid SCO Questions

    My apologies in advance for being Unix illiterate (I'm trying to learn though!).

    OS: SCO Open Server 5.0.5

    I'm having problems mounting a floppy disk. I can format it and look at the contents, but can't mount it so I can run a script. This is what I do/get:

    #mount -r /dev/fd0 /mnt
    mount: cannot stat '/dev/fd0': No such file or directory (error 2).

    I check in /dev/ and see that there is an fd directory, but no fd0.
    I checked on another machine and found fd and fd0, but fd0 doesn't appear to be a file or a directory.
    Here's what the fd0 entry looks like on machine #2:
    brw-rw-rw- 2 bin bin 2, 64 Jan 23 13:56 fd0

    Is there an easy way to rebuild the missing fd0 device?

    Thanks in advance,

    Cj

  2. #2
    Join Date
    Mar 2000
    Location
    Elyria, Ohio - USA
    Posts
    2,075
    If you look at your output from machine #2. let me eplain a couple things first.

    brw-rw-rw- 2 bin bin 2, 64 Jan 23 13:56 fd0

    The vert first character 'b', indicates that the nod is a block device. The numbers '2, 64' are the devices major and minor number, respectively, or their address and port number. In order to create the device file do"

    mknod /dev/fd0 b 2 64

    That's assuming that they are the same type of machine. On my machine the major and minor numbers for fd0 are '2, 0'.

    Hope this helps. -mk
    If it ain't broke,
    Fix it till it is.

  3. #3
    Join Date
    Jun 2001
    Location
    San Antonio, Texas, USA
    Posts
    381
    That worked! They were identical machines with identical hardware. Thanks for the education :-)

    If you're feeling generous enough to answer one more....
    Let's say I didn't have the identical machine handy? How would I determine the address & port numbers for the floppy drive?


    Thanks again!

    Cj

  4. #4
    Join Date
    Mar 2000
    Location
    Elyria, Ohio - USA
    Posts
    2,075
    I'm not really sure. I know the major number will always be the same. As for the minor number, you may have to hunt and peck. Although, I think that depending on the OS, SCO, Linux, HPUX, within that OS the minor number will always be the same. I could be wrong, though. -mk
    If it ain't broke,
    Fix it till it is.

  5. #5
    Join Date
    Jun 2001
    Location
    San Antonio, Texas, USA
    Posts
    381
    I could be wrong, though
    But you're "righter" than I was, and I'm much further along now than I was yesterday :-)

    Thanks again!

    Cj

  6. #6
    Join Date
    Mar 2000
    Location
    Elyria, Ohio - USA
    Posts
    2,075
    I'm glad I could help. Have fun. -mk
    If it ain't broke,
    Fix it till it is.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •