From owner-freebsd-questions Tue Nov 5 6: 8:32 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B416337B401 for ; Tue, 5 Nov 2002 06:08:30 -0800 (PST) Received: from sage-one.net (adsl-65-71-135-137.dsl.crchtx.swbell.net [65.71.135.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id B268843E3B for ; Tue, 5 Nov 2002 06:08:29 -0800 (PST) (envelope-from jackstone@sage-one.net) Received: from sagea (sagea [192.168.0.3]) by sage-one.net (8.11.6/8.11.6) with SMTP id gA5E8Lo28188; Tue, 5 Nov 2002 08:08:22 -0600 (CST) (envelope-from jackstone@sage-one.net) Message-Id: <3.0.5.32.20021105080820.01125110@mail.sage-one.net> X-Sender: jackstone@mail.sage-one.net X-Mailer: QUALCOMM Windows Eudora Pro Version 3.0.5 (32) Date: Tue, 05 Nov 2002 08:08:20 -0600 To: Matthew Seaman , questions@FreeBSD.ORG From: "Jack L. Stone" Subject: Re: Mount floopy disk In-Reply-To: <20021105125317.GC98973@happy-idiot-talk.infracaninophi> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 12:53 PM 11.5.2002 +0000, Matthew Seaman wrote: >On Tue, Nov 05, 2002 at 12:29:45PM +0000, Tiago Andre wrote: >> I like to know how do i mount my floopy disk i try: >> mount /dev/fd0 /mnt >> and >> mount /dev/fd0c /mnt >> but the anwser is incorrect super block > >These are DOS format floppies? The best advice is "don't bother >mounting the disks". Just install the emulators/mtools port, which >lets you use DOS-like commands to access the floppy: > > mdir a: > mcopy filename.txt a: > >etc. This has a number of advantages over actually mounting the >floppy: > > - you don't need root privilege to use mtools > > - you can eject and swap floppy disks at will, without > getting grief from the OS > > - similarly you won't run into problems trying to write data > to a write protected floppy disk. > >Note that those last two effects are not just annoying but can in some >circumstances lead to system crashes or having to reboot the machine >to clear the errors. > >Now, if I haven't scared you off enough, the literal answer to your >question is: > > # mount -t msdos /dev/fd0 /mnt > >That has to be done as root: you'll need to install sudo or similar to >make it possible for ordinary users to do that securely. Always >remember to unmount the disk before ejecting it. > I used to always had trouble remembering the proper syntax to mount the floppy, so I made a little script that was easier to remember. It mounts and runs a listing. -- you must have a "floppy" directory in /mnt. Just be sure to have the floppy in the drive: Here is "mountfloppy" script: #!/bin/sh # Floppy drive /sbin/umount /mnt/floppy /sbin/mount -t msdos /dev/fd0 /mnt/floppy cd /mnt/floppy ls Don't forget to umount /mnt/floppy. I also made a similar script for the cdrom mount..... "mountcd" Best regards, Jack L. Stone, Administrator SageOne Net http://www.sage-one.net jackstone@sage-one.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message