Using a floppy

本文介绍在Solaris系统中使用软盘的方法,包括如何插入软盘并使用Volume Manager自动挂载,如何检查未被自动检测到的软盘,以及如何格式化软盘为MS-DOS或UNIX兼容格式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Using a Floppy (Solaris)

Purdue Engineering Computer Network
Solaris provides a new tool called the Volume Manager which replaces the special commands cdmount, dosmount, fdmount, mountcd, and mountfd. The Volume Manager automatically detects when a CD-ROM or floppy disk has been inserted into the drive, and mounts it automatically.

To make use of a floppy disk, simply insert it into the disk drive, and it will be mounted by the Volume Manager.

NOTE

On many Sun hardware platforms, it is not possible to automatically detect the presence of a floppy disk in the drive. If the Volume Manager does not appear to mount your floppy disk, execute the volcheck command, which will tell the Volume Manager to go look for a disk in the disk drive.

Once you have inserted the floppy disk into the drive and, if necessary, executed the volcheck command, one of two things will occur:

  1. If the floppy disk has not yet been formatted, you will see a couple of errors on the workstation console:



    fd0: read failed (40 1 0)
    fd0: bad format

    Nothing else will appear to happen. Before you can make use of the floppy disk, you must format it with the fdformat command. If you are using a high-density (1.44MB) disk, the following command will format the disk:


    % fdformat
    Press return to start formatting floppy in /vol/dev

    /rdiskette0/unformatted.

    If you are using a low-density (720KB) disk, use the -l option to fdformat.

    • If you would like to make an MS-DOS-compatible floppy disk, specify the -d option to the fdformat command. After formatting, eject the floppy disk with the eject command:
                      % eject floppy 

      Then insert it in the drive again, and type volcheck once more. The floppy disk can now be accessed as the directory /floppy/floppy0. Files which you place in this directory will be readable by MS-DOS systems. However, you are responsible for making any character conversions (such as carriage-return line-feed substitutions) required by the MS-DOS system. Once you are done with the disk, eject it using the eject command as described above.

    • If you would like to make a UNIX-compatible floppy disk, you must install a file system on the disk. To do this, use the newfs command:
           % /usr/sbin/newfs /vol/dev/aliases/floppy0
      /vol/dev/aliases/floppy0: 2880 sectors in 80

      cylinders of 2 tracks,18 sectors

      1.4MB in 5 cyl groups (16 c/g, 0.28MB/g, 128 i/g)
      super-block backups (for fsck -F ufs -o b=#) at:
      32, 640, 1184, 1792, 2336,

    After creating the file system, eject the floppy disk with the eject command:

                 % eject floppy 

    Then insert it in the drive again, and type volcheck once again. The floppy disk can now be accessed as the directory /floppy/floppy0. Once you are done with the disk, eject it using the eject command as described above.

  2. If the floppy disk has already been formatted, either with a UNIX or an MS-DOS file system, it will automatically be mounted as /floppy/floppy0. You can access the files in this directory just as if they were on your local workstation. Once you have finished with the disk, eject it from the disk drive with the eject command:
        % eject floppy 
 
### geekOS Project Bochs Configuration and Usage Bochs is an open-source IA-32 (x86) PC emulator that can run on several platforms including Windows, Linux, and macOS. For projects like geekOS, configuring Bochs properly ensures accurate emulation of hardware components necessary for testing and developing operating systems. In the context provided by the configuration snippet[^1], `private_colormap` setting pertains to how colors are managed within the graphical user interface during simulation: When using Bochs with geekOS or similar OS development projects, one might encounter settings such as `private_colormap`. This option controls whether a dedicated color map should be created specifically for the Bochs display window rather than sharing one with other applications. In this case, since `enabled=0`, Bochs uses a shared colormap which could lead to faster performance but less precise control over displayed colors depending upon the host environment’s capabilities. For general guidance on configuring Bochs for use with geekOS: The typical setup involves editing a `.bochsrc` file where various parameters related to CPU type, memory size, disk images, boot devices, etc., need specification according to requirements. Here's an example configuration tailored towards running an experimental kernel like those developed under geekOS: ```plaintext megs: 32 ; Amount of RAM available to guest OS. romimage: file=/usr/share/bochs/BIOS-bochs-latest ; Path to BIOS image. vgaromimage: file=/usr/share/vgabios/VGABIOS-lgpl-latest.bin ; VGA ROM path. boot: floppy,disk ; Boot order preference. floppya: 1_44=floppy.img, status=inserted ; Floppy drive A connected to specified image. ata0-master: type=disk, mode=flat, path="disk.img", cylinders=795, heads=16, spt=63 ; Hard Disk definition. display_library: x ; Use X Window System for graphics output. log: bochsout.txt ; Log messages into text file named 'bochsout.txt'. ``` This basic template provides enough information to start experimenting without overwhelming beginners while still offering flexibility through adjustable options suitable for more advanced users who wish to customize their environments further based on specific needs.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值