如何在 Ubuntu 中使用软盘驱动器?

Mig*_*ada 11 hardware nautilus floppy

同一台电脑,在 Ubuntu 8.04 下完全没问题。在 12.04 下,Ubuntu 不存在软盘驱动器。驱动器和软盘 disquette 在 DOS 上运行良好。从软盘 W98se 启动计算机,完全没有问题。

如何在 Ubuntu 12.04 下使用软盘?

Sav*_*vic 11

  1. 检查软盘模块是否加载:

    lsmod | grep -i floppy
    
    Run Code Online (Sandbox Code Playgroud)

    此命令不应返回任何内容。如果它返回“floppy”,那么你已经加载了软盘模块,这个答案不能解决你的问题。

    如果要加载软盘模块:

    sudo modprobe -v floppy
    lsmod | grep -i floppy
    
    Run Code Online (Sandbox Code Playgroud)
  2. 尝试在软盘组中添加您的用户名:

    sudo adduser $USER floppy
    
    Run Code Online (Sandbox Code Playgroud)
  3. 您也可以尝试安装fdutils软件包:

    $ apt-cache show fdutils
    Package: fdutils
    [...]
    Description-en: Linux floppy utilities
     This package contains utilities for formatting extra capacity
     disks, automatic floppy disk mounting and unmounting, etc.
     .
     The package includes the following items:
     .
      - superformat: formats high capacity disks (up to 1992k
        for high density disks or up to 3984k for extra density
         disks);
      - fdmount: automatically mounts/unmounts disks when they are
        inserted/removed;
      - xdfcopy: formats, reads and writes OS/2's XDF disks;
      - MAKEFLOPPIES: creates the floppy devices in /dev;
      - getfdprm: prints the current disk geometry (number of
        sectors, track and heads etc.);
      - setfdprm: sets the current disk geometry;
      - fdrawcmd: sends raw commands to the floppy driver;
      - floppycontrol: configures the floppy driver;
      - general documentation about the floppy driver.
     .
     Note that these utilities do not work for USB floppy drives, because
     these do not allow direct access to the floppy controller.
    Homepage: http://fdutils.linux.lu/
    
    Run Code Online (Sandbox Code Playgroud)

    fdmount 似乎很有用。尝试:sudo fdmount -l

  4. 检查您的软盘驱动器是否在此处列出:

    nautilus computer://
    
    Run Code Online (Sandbox Code Playgroud)
  5. 如果您仍然遇到问题,请发布上述命令的输出,并添加以下内容:

    dmesg > dmesg.log
    gedit dmesg.log
    
    Run Code Online (Sandbox Code Playgroud)

将 dmesg.log 的内容发布到某个地方的 pastebin(即http://www.pastebin.com)并给我们链接。

PS 您可能会遇到此错误:https : //bugs.launchpad.net/ubuntu/+source/linux/+bug/441835 -- 尝试:

udisks --mount /dev/fd0
Run Code Online (Sandbox Code Playgroud)


小智 7

这是使软盘驱动器工作的实际答案。

  1. 打开终端并以 sudo 身份登录

  2. 以 sudo 身份打开 gedit

  3. 打开并编辑此文件: /lib/udev/rules.d/80-udisks.rules

  4. 找到它的这一部分(它靠近底部。您可以使用 gedit 工具栏上的“搜索”并找到“PC 软盘”它会带您到它。

    ####################################################
    
    # PC floppy drives
    #
    KERNEL=="fd*", ENV{ID_DRIVE_FLOPPY}="0"
    
    # USB floppy drives
    #
    SUBSYSTEMS=="usb", ATTRS{bInterfaceClass}=="08", ATTRS{bInterfaceSubClass}=="04", ENV{ID_DRIVE_FLOPPY}="0"
    
    # ATA Zip drives
    #
    ENV{ID_VENDOR}=="*IOMEGA*", ENV{ID_MODEL}=="*ZIP*", ENV{ID_DRIVE_FLOPPY_ZIP}="0"
    
    #####################################################
    
    Run Code Online (Sandbox Code Playgroud)
  5. 像我在 3 个方面所做的那样,将所有“1”替换为“0”。(你的脚本会有“1”,我展示的是更正的部分)看起来像这样:ENV{ID_DRIVE_FLOPPY}="0"

  6. 重新启动您将拥有的 PC 和软盘支持。

注意:软盘插入时不会自动启动窗口,它们是在此之前制作的!您需要转到“位置”或“我的电脑”并双击它。请记住像卸载 USB 记忆棒(或应该是 USB 记忆棒)一样卸载它,否则您插入的下一张软盘将无法安装。还要记住在重新启动(内部)之前弹出软盘,因为您的 PC 将尝试从中启动,这可能非常烦人。