From owner-freebsd-questions@FreeBSD.ORG Tue Aug 29 01:08:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 8B0EF16A4DD for ; Tue, 29 Aug 2006 01:08:12 +0000 (UTC) (envelope-from ajm91qw@sbcglobal.net) Received: from smtp107.sbc.mail.mud.yahoo.com (smtp107.sbc.mail.mud.yahoo.com [68.142.198.206]) by mx1.FreeBSD.org (Postfix) with SMTP id 1E41743D72 for ; Tue, 29 Aug 2006 01:08:11 +0000 (GMT) (envelope-from ajm91qw@sbcglobal.net) Received: (qmail 2949 invoked from network); 29 Aug 2006 01:08:11 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=sbcglobal.net; h=Received:Date:From:To:Subject:Message-ID:References:Mime-Version:Content-Type:Content-Disposition:In-Reply-To:User-Agent; b=bHVFkG2Xo+wSS5/niZRwVIuDRnWOcWCgtvpZeHk/FdH5tLIrFEi7pWLvbO40TGbDcJOgtg0agh/LiyvTrP+/CsitByeUaZmrZTqty3npDYaXJkIBQi/5F7XU972T+13CCMTqUAZ1mdJGcnJgD1Z3ygDKTmuiLmbWu5dfN2lThTo= ; Received: from unknown (HELO localhost) (ajm91qw@sbcglobal.net@70.254.64.36 with plain) by smtp107.sbc.mail.mud.yahoo.com with SMTP; 29 Aug 2006 01:08:10 -0000 Date: Mon, 28 Aug 2006 20:09:42 -0500 From: ajm To: freebsd-questions@freebsd.org Message-ID: <20060829010942.GA710@powerfull.bsd> References: <34702.127.0.0.1.1156765075.squirrel@mithlond.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <34702.127.0.0.1.1156765075.squirrel@mithlond.net> User-Agent: Mutt/1.5.11 Subject: Re: having hard time with mounting floppies X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Aug 2006 01:08:12 -0000 On Mon, Aug 28, 2006 at 02:37:55PM +0300, Tuomas wrote: > Hi, all! > > I run DesktopBSD 1.0 and I cannot mount floppies. I had the same problem > with FreeBSD 5.5. Here it goes: > > localhost# mount -t msdos /dev/fd0 /media/floppy > msdosfs: /dev/fd0: Input/output error > > localhost# fdformat /dev/fd0 > Format 1440K floppy `/dev/fd0'? (y/n): y > Processing fdformat: ioctl(FD_FORM): Input/output error > > This is what dmesg says: > > Copyright (c) 1992-2005 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD 5.5-PRERELEASE #1: Sun Feb 5 17:26:01 CET 2006 > root@Rex:/usr/obj/usr/src/sys/DESKTOPBSD > Timecounter "i8254" frequency 1193182 Hz quality 0 > CPU: Intel Pentium III (734.63-MHz 686-class CPU) > Origin = "GenuineIntel" Id = 0x686 Stepping = 6 > Features=0x383fbff > real memory = 267264000 (254 MB) > avail memory = 251109376 (239 MB) > npx0: on motherboard > npx0: INT 16 interface > acpi0: on motherboard > acpi0: Power Button (fixed) > Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 > acpi_timer0: <24-bit timer at 3.579545MHz> port 0xf808-0xf80b on acpi0 > cpu0: port 0x530-0x537 on acpi0 > acpi_throttle0: on cpu0 > pcib0: port 0xcf8-0xcff on acpi0 > pci0: on pcib0 > agp0: mem > 0xfea80000-0xfeafffff,0xf8000000-0xfbffffff irq 11 at device 1.0 on pci0 > pcib1: at device 30.0 on pci0 > pci1: on pcib1 > rl0: port 0x7800-0x78ff mem > 0xfebfff00-0xfebfffff irq 9 at device 1.0 on pci1 > miibus0: on rl0 > rlphy0: on miibus0 > rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto > rl0: Ethernet address: 00:0e:2e:85:56:e1 > isab0: at device 31.0 on pci0 > isa0: on isab0 > atapci0: port > 0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 at device 31.1 on pci0 > ata0: channel #0 on atapci0 > ata1: channel #1 on atapci0 > uhci0: port 0xff00-0xff1f irq 10 at > device 31.2 on pci0 > usb0: on uhci0 > usb0: USB revision 1.0 > uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1 > uhub0: 2 ports with 2 removable, self powered > pci0: at device 31.3 (no driver attached) > pcm0: port 0xf400-0xf43f,0xf000-0xf0ff irq 9 at > device 31.5 on pci0 > pcm0: > acpi_button0: on acpi0 > fdc0: port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0 > fd0: <1440-KB 3.5" drive> on fdc0 drive 0 > ppc0: port 0x778-0x77f,0x378-0x37f irq 7 drq 3 > on acpi0 > ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode > ppc0: FIFO with 16/16/9 bytes threshold > ppbus0: on ppc0 > plip0: on ppbus0 > lpt0: on ppbus0 > lpt0: Interrupt-driven port > ppi0: on ppbus0 > atkbdc0: port 0x64,0x60 irq 1 on acpi0 > atkbd0: irq 1 on atkbdc0 > kbd0 at atkbd0 > psm0: irq 12 on atkbdc0 > psm0: model IntelliMouse, device ID 3 > sio0: <16550A-compatible COM port> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0 > sio0: type 16550A > orm0: at iomem 0xc0000-0xc7fff on isa0 > pmtimer0 on isa0 > sc0: at flags 0x100 on isa0 > sc0: VGA <16 virtual consoles, flags=0x300> > sio1: configured irq 3 not in bitmap of probed irqs 0 > sio1: port may not be enabled > vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0 > Timecounter "TSC" frequency 734633835 Hz quality 800 > Timecounters tick every 1.000 msec > ad0: 19470MB [39560/16/63] at ata0-master UDMA66 > acd0: DVDROM at ata1-master PIO4 > cd0 at ata1 bus 0 target 0 lun 0 > cd0: Removable CD-ROM SCSI-0 device > cd0: 16.000MB/s transfers > cd0: Attempt to query device size failed: NOT READY, Medium not present > Mounting root from ufs:/dev/ad0s2a > > (End of dmesg.) > > I can mount floppies with other OSes, Kubuntu LiveCD for instance. I > googled and found other people having similar problems. One solution that > was put forward was using a non-ACPI kernel. With FreeBSD 5.5 I recompiled > the kernel with ACPI disabled, but the problem still persisted. I don't > know what to do now. > > (As a matter of fact, I might be having the same problem with cdrom!) > > Could someone help me? Much oblige! > > Tuomas > > > As root... these are the following things I do for a FreeBSD Floppy: fdformat -y -f 1440 /dev/fd0 bsdlabel -w /dev/fd0 fd1440 newfs -L FreeBSD /dev/fd0 For a Dos floppy: fdformat -y -f 1440 /dev/fd0 newfs_msdos -f 1440 -L MSDOS /dev/fd0 Perferably I would use sudo to execute the above commands as a user. see sudo(8) and visudo(8) To mount the floppy I use the following: FreeBSD floppy... sudo mount -v -w /dev/fd0 /home/aj/floppy DOS floppy sudo mount_msdosfs /dev/fd0 /home/aj/floppy Just make sure to create a subdirectory in your home directory. see mount_msdosfs(8) and for cdroms mount_cd9660(8) Hope this helped you... -- FreeBSD 6.0-RELEASE i386 GENERIC