Dragon12
May 22nd, 2006, 22:05
Ok I know this subject has been done to death and I've looked in the forums and tried everything listed in This Thread (http://www.screamingelectron.org/forum/showthread.php?t=2369) but nothing is working.
I've tried three differant CD's and two CDROM's. BIOS, dmesg & /dev show that the CDROM is there. The CD's work on fine on a Windows box & on my FreeBSD laptop.
This CD is a FreeBSD boot disk that I have used on this before:
BlackDragon# mount /cdrom
mount_cd9660: /dev/acd0: Invalid argument
BlackDragon# mount /dev/acd0 /cdrom
mount: /dev/acd0 on /cdrom: incorrect super block
BlackDragon# mount -t msdosfs /dev/acd0 /cdrom
mount_msdosfs: /dev/acd0: Invalid argument
BlackDragon#
Can anyone tell me what the heck is going on? Is the IDE on the MB bad? If so why would it register during boot?
Thanks in advanced,
Signed,
Frustrated
bumbler
May 23rd, 2006, 10:05
Well, let's see: You can't mount a CD as "msdosfs" unless it was somehow burned in raw mode on a Windows box, like an archive backup. It has to be "cd9660" for most CDs. So, assuming your /etc/fstab looks like most of them, it should show a preset mounting. Then you'd need only to do something like:
mount /cdrom
and it should mount neatly, with everything automatically preset. So, what does your fstab look like? Next we need to look at your "dmesg" output regarding the drives. Does the kernel detect your CDROM for what it is?
Dragon12
May 23rd, 2006, 23:38
Thanks Bumbler,
The CD was burned on a Windows box which is why I tried the mount -t msdosfs etc..etc trick. I tried everything that the man page suggested to do to mount a CD.
My /etc/fstab is the same as when I installed FreeBSD 6.0. I'll post it none the less.
One thing to note and that I forgot to metion previously was that the old MB died was replaced by a working version. I was able to procure a "new" one of the same make and model.
My /etc/fstab:
# Device Mountpoint FStype Options Dump Pass#
/dev/da0s1b none swap sw 0 0
/dev/da0s1a / ufs rw 1 1
/dev/da0s1e /tmp ufs rw 2 2
/dev/da0s1f /usr ufs rw 2 2
/dev/da0s1d /var ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,noauto 0
Output of dmesg:
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 6.0-RELEASE #5: Thu May 18 12:58:02 PDT 2006
root@BlackDragon.BSD:/usr/obj/usr/src/sys/BLACKDRAGON
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Pentium III/Pentium III Xeon/Celeron (497.84-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0x673 Stepping = 3
Features=0x387fbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,P GE,MCA,CMOV,PAT,PSE36,PN,MMX,FXSR,SSE>
real memory = 1073676288 (1023 MB)
avail memory = 1041641472 (993 MB)
MPTable: <INTEL Lancewood >
FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs
cpu0 (BSP): APIC ID: 1
cpu1 (AP): APIC ID: 0
ioapic0: Assuming intbase of 0
ioapic0 <Version 1.1> irqs 0-23 on motherboard
npx0: [FAST]
npx0: <math processor> on motherboard
npx0: INT 16 interface
cpu0 on motherboard
cpu1 on motherboard
pcib0: <MPTable Host-PCI bridge> pcibus 0 on motherboard
pci0: <PCI bus> on pcib0
agp0: <Intel 82443GX host to PCI bridge> mem 0xf8000000-0xfbffffff at device 0.0 on pci0
pcib1: <PCI-PCI bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
pcib2: <MPTable PCI-PCI bridge> at device 15.0 on pci1
pci2: <PCI bus> on pcib2
pci2: <network, ethernet> at device 7.0 (no driver attached)
ahc0: <Adaptec aic7896/97 Ultra2 SCSI adapter> port 0x2000-0x20ff mem 0xf4100000-0xf4100fff irq 19 at device 12.0 on pci0
ahc0: [GIANT-LOCKED]
aic7896/97: Ultra2 Wide Channel A, SCSI Id=7, 32/253 SCBs
ahc1: <Adaptec aic7896/97 Ultra2 SCSI adapter> port 0x2400-0x24ff mem 0xf4101000-0xf4101fff irq 19 at device 12.1 on pci0
ahc1: [GIANT-LOCKED]
aic7896/97: Ultra2 Wide Channel B, SCSI Id=7, 32/253 SCBs
fxp0: <Intel 82559 Pro/100 Ethernet> port 0x2800-0x283f mem 0xf4102000-0xf4102fff,0xf4000000-0xf40fffff irq 21 at device 14.0 on pci0
miibus0: <MII bus> on fxp0
inphy0: <i82555 10/100 media interface> on miibus0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
fxp0: Ethernet address: 00:00:00:00:00:00
ohci0: <NEC uPD 9210 USB controller> mem 0xf4103000-0xf4103fff irq 16 at device 16.0 on pci0
ohci0: [GIANT-LOCKED]
usb0: OHCI version 1.0
usb0: <NEC uPD 9210 USB controller> on ohci0
usb0: USB revision 1.0
uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1: <NEC uPD 9210 USB controller> mem 0xf4104000-0xf4104fff irq 21 at device 16.1 on pci0
ohci1: [GIANT-LOCKED]
usb1: OHCI version 1.0
usb1: <NEC uPD 9210 USB controller> on ohci1
usb1: USB revision 1.0
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
pci0: <serial bus, USB> at device 16.2 (no driver attached)
isab0: <PCI-ISA bridge> at device 18.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel PIIX4 UDMA33 controller> port 0x1f0-0x1f7,0x3f6,0x170-0x177,0x376,0x2860-0x286f at device 18.1 on pci0
ata0: <ATA channel 0> on atapci0
ata1: <ATA channel 1> on atapci0
uhci0: <Intel 82371AB/EB (PIIX4) USB controller> port 0x2840-0x285f irq 21 at device 18.2 on pci0
uhci0: [GIANT-LOCKED]
usb2: <Intel 82371AB/EB (PIIX4) USB controller> on uhci0
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
piix0: <PIIX Timecounter> port 0x1040-0x104f at device 18.3 on pci0
Timecounter "PIIX" frequency 3579545 Hz quality 0
pci0: <display, VGA> at device 20.0 (no driver attached)
pmtimer0 on isa0
orm0: <ISA Option ROMs> at iomem 0xc0000-0xc7fff,0xc8000-0xcdfff,0xce000-0xcf7ff on isa0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: model IntelliMouse, device ID 3
fdc0: <Enhanced floppy controller> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FAST]
ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
ppc0: Generic chipset (ECP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: <Parallel port bus> on ppc0
plip0: <PLIP network interface> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
ppi0: <Parallel I/O> on ppbus0
sc0: <System console> at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
unknown: <PNP0c02> can't assign resources (memory)
unknown: <PNP0303> can't assign resources (port)
unknown: <PNP0c02> can't assign resources (port)
unknown: <PNP0401> can't assign resources (port)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0f13> can't assign resources (irq)
unknown: <PNP0501> can't assign resources (port)
unknown: <PNP0700> can't assign resources (port)
sbc1: <Creative SB16/SB32> at port 0x220-0x22f,0x330-0x331,0x388-0x38b irq 5 drq 1,5 on isa0
sbc1: [GIANT-LOCKED]
pcm0: <SB16 DSP 4.13> on sbc1
pcm0: [GIANT-LOCKED]
ata2: <Generic ESDI/IDE/ATA controller> at port 0x168-0x16f,0x36e-0x36f irq 10 on isa0
Timecounters tick every 1.000 msec
acd0: CDRW <HP CD-Writer+ 7200/V:003.01> at ata0-master PIO3
Waiting 15 seconds for SCSI devices to settle
da0 at ahc1 bus 0 target 0 lun 0
da0: <QUANTUM ATLAS IV 9 WLS 0808> Fixed Direct Access SCSI-3 device
da0: 40.000MB/s transfers (20.000MHz, offset 31, 16bit), Tagged Queueing Enabled
da0: 8761MB (17942584 512 byte sectors: 255H 63S/T 1116C)
SMP: AP CPU #1 Launched!
Trying to mount root from ufs:/dev/da0s1a
umass0: vendor 0x07d0 USBHS MultiSlot Reader, rev 2.00/1.19, addr 2
da1 at umass-sim0 bus 0 target 0 lun 0
da1: <Generic STORAGE DEVICE 0119> Removable Direct Access SCSI-0 device
da1: 1.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present
(da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:0): SCSI Status: Check Condition
(da1:umass-sim0:0:0:0): NOT READY asc:3a,0
(da1:umass-sim0:0:0:0): Medium not present
(da1:umass-sim0:0:0:0): Unretryable error
Opened disk da1 -> 6
(da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:0): SCSI Status: Check Condition
(da1:umass-sim0:0:0:0): NOT READY asc:3a,0
(da1:umass-sim0:0:0:0): Medium not present
(da1:umass-sim0:0:0:0): Unretryable error
Opened disk da1 -> 6
(da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:0): SCSI Status: Check Condition
(da1:umass-sim0:0:0:0): NOT READY asc:3a,0
(da1:umass-sim0:0:0:0): Medium not present
(da1:umass-sim0:0:0:0): Unretryable error
Opened disk da1 -> 6
da2 at umass-sim0 bus 0 target 0 lun 1
da2: <Generic STORAGE DEVICE 0119> Removable Direct Access SCSI-0 device
da2: 1.000MB/s transfers
da2: Attempt to query device size failed: NOT READY, Medium not present
(da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0
(da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(da2:umass-sim0:0:0:1): SCSI Status: Check Condition
(da2:umass-sim0:0:0:1): NOT READY asc:3a,0
(da2:umass-sim0:0:0:1): Medium not present
(da2:umass-sim0:0:0:1): Unretryable error
Opened disk da2 -> 6
(da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0
(da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(da2:umass-sim0:0:0:1): SCSI Status: Check Condition
(da2:umass-sim0:0:0:1): NOT READY asc:3a,0
(da2:umass-sim0:0:0:1): Medium not present
(da2:umass-sim0:0:0:1): Unretryable error
Opened disk da2 -> 6
(da2:umass-sim0:0:0:1): READ CAPACITY. CDB: 25 20 0 0 0 0 0 0 0 0
(da2:umass-sim0:0:0:1): CAM Status: SCSI Status Error
(da2:umass-sim0:0:0:1): SCSI Status: Check Condition
(da2:umass-sim0:0:0:1): NOT READY asc:3a,0
(da2:umass-sim0:0:0:1): Medium not present
(da2:umass-sim0:0:0:1): Unretryable error
Opened disk da2 -> 6
umass0: at uhub1 port 2 (addr 2) disconnected
(da1:umass-sim0:0:0:0): lost device
(da1:umass-sim0:0:0:0): removing device entry
(da2:umass-sim0:0:0:1): lost device
(da2:umass-sim0:0:0:1): removing device entry
umass0: detached
umass0: vendor 0x07d0 USBHS MultiSlot Reader, rev 2.00/1.19, addr 2
da1 at umass-sim0 bus 0 target 0 lun 0
da1: <Generic STORAGE DEVICE 0119> Removable Direct Access SCSI-0 device
da1: 1.000MB/s transfers
da1: 122MB (250880 512 byte sectors: 64H 32S/T 122C)
(da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:0): SCSI Status: Check Condition
(da1:umass-sim0:0:0:0): NOT READY asc:3a,0
(da1:umass-sim0:0:0:0): Medium not present
(da1:umass-sim0:0:0:0): Unretryable error
Opened disk da1 -> 6
(da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:0): SCSI Status: Check Condition
(da1:umass-sim0:0:0:0): NOT READY asc:3a,0
(da1:umass-sim0:0:0:0): Medium not present
(da1:umass-sim0:0:0:0): Unretryable error
Opened disk da1 -> 6
(da1:umass-sim0:0:0:0): READ CAPACITY. CDB: 25 0 0 0 0 0 0 0 0 0
(da1:umass-sim0:0:0:0): CAM Status: SCSI Status Error
(da1:umass-sim0:0:0:0): SCSI Status: Check Condition
(da1:umass-sim0:0:0:0): NOT READY asc:3a,0
(da1:umass-sim0:0:0:0): Medium not present
(da1:umass-sim0:0:0:0): Unretryable error
Opened disk da1 -> 6
da2 at umass-sim0 bus 0 target 0 lun 1
da2: <Generic STORAGE DEVICE 0119> Removable Direct Access SCSI-0 device
da2: 1.000MB/s transfers
da2: 122MB (250880 512 byte sectors: 64H 32S/T 122C)
Since I was having troubles mounting CD's I switched CDROMs from the old to the HP CD-Writer+ 7200 and I am still having the same problems mounting.
Also, the floppy drive doesn't seem to want to mount either. I guess I should try the other MB that I got unless you see anything that needs fixing.
Any input would be appreciated
THANKS!
Dragon
byron
May 24th, 2006, 09:41
If you are not logged in as root, you'll need to either su to root before running the mount command or use sudo to execute the command as root. Su'ing to root would be the easiest thing to if you don't have sudo installed and configured already (man su). Sudo is not installed by default, so you'll have to install it via ports or packages. Once it's installed you'll need to edit your sudoers file (man sudoers).
Dragon12
May 24th, 2006, 15:58
Thanks Byron,
Yea, I'm root while doing this otherwise I would have gotten "Operation not permitted" and I already have sudo up and running. It was easier to do everything as su while trying to figrure out what is going on.
Thanks!
Dragon
optyk
May 24th, 2006, 18:37
As root: echo 'vfs.usermount=1' >> /etc/sysctl.conf
Add a mountpoint in fstab for your user.
Create the mountpoint in your userdir.
Reboot
Mount drives as user. ;)
Dragon12
May 24th, 2006, 22:05
Thanks to eveyone who was willing to give me advice regarding this time of suffering :wink:.
Luckly I happen to have a couple of spare MB's and spent the day changing hardware around. It looks like the IDE controler was bad. Even after switching cables on the previous MB I still had the same problem. So now I have a MB that is still in working order except the IDE. I suppose I can do everything scsi on it at some later point.
Thanks again folks!
Dragon
:bat_angel
bumbler
May 26th, 2006, 09:25
For your next trick, may I recommend you try adding these two lines to your /boot/loader.conf?
hw.ata.ata_dma="1"
hw.ata.atapi_dma="1"
This should switch your CD drives to DMA mode. I think PIO3 is mighty slow, and some burners won't even produce useable disks under FreeBSD in PIO mode.
Dragon12
May 29th, 2006, 15:35
Thanks Bumbler,
I added (copy, pasted, saved & reboot) the two lines that you suggested into my /boot/loader.conf file but dmesg still shows PIO3 for the CD-ROM. Does this mean that the CDROM is not capable of DMA?
Thanks,
Dragon
bumbler
May 30th, 2006, 20:41
Maybe. I'm not an expert, so take me with a grain of salt. It may require adding a few items to your kernel, too. Uncomment or add:
device atapicam
device scbus
device cd
device pass
What these do is allow your system to emulate the Linux style handling, and mount the CD drive(s) as a SCSI disk. For some reason, this is working really well for me under FreeBSD 5.5. As a side note, if you want to use miscellaneous USB drives, you'll need to uncomment "device ehci" for USB 2.0 support.
Dragon12
May 31st, 2006, 13:29
Thanks Bumbler,
I compiled with the new device options you suggested and I can't mount cd's anymore with "mount /cdrom" nore do music cd's play anymore with XMMS :biggrin:. I think I have to add an entry to /etc/fstab.
Not a big deal though, nothing ventured, nothing gained. I think that I will recompile the kernel without the "device atapicam" option. My father had this CDROM before I did and he had troubles with it and the research that I've done for the specs on this things people seem to hate the thing. It was free, so I can't bitch.
Thanks!
Dragon