Mount: not a directory WTF?!
Whaddup peeps? In a nutshell, I just converted from Fedora Core 1 to Slackware 11 and even though I've only been using it for maybe six hours so far, I already like it better, anyway, whenever I try to mount my cd-rom or cd-rw drives it keeps giving me the same crap:
mount: block device /dev/hdc is write-protected, mounting read-only mount: Not a directory And then nothing. I'm not going to bother with the whole fstab bs for the moment, I'm trying to mount these drives manually. And I'm root when I try to mount them so I don't wanna hear anything about permissions. My cd-rw drive is on /dev/hdc and my cdrom is /dev/hdd when I try to use mount -t iso9660 /dev/hdc /mnt/cdrw it gives me the same errors. I manually created the /mnt/cdrw directory to mount my cds here and it keeps on giving the same error. I know it can't be the scsi emulation mucking it up because it does this with my cdrom too. Yes they are on the same ide channel, (i don't use scsi or sata, yet) these are run of the mill atapi drives. It's really pissing me off because all of my data is backed up on CD and I need it. I have no other OS on my system, it's just Slackware. So WTF is going on? |
fstab is not that difficult and allows you to mount devices frequently without having to type the whole mount command again and again.
Try mounting with the "auto" option for filesystem. |
Quote:
Also look at output of dmesg there might be a clue. Try mounting in your $HOME directory also. mkdir cdrom mount -t iso9660 /dev/hdc cdrom And you don't have any aliases like cdrom or cdrw do you? |
Show us the output of:
Code:
# cat /etc/fstab Code:
/dev/<somesthing> /<location> <item> <item> <nr> <nr> Code:
# ls -ald /<location>; file /<location> |
Okay here's the contents of /etc/fstab fresh from the konsole:
/dev/hda2 swap swap defaults 0 0 /dev/hda1 / reiserfs /dev/hda3 /home reiserfs defaults 0 0 /dev/cdrw /mnt/cdrw auto noauto,owner,ro 0 0 /dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0 /dev/fd0 /mnt/floppy auto noauto,owner 0 0 devpts /dev/pts devpts gid=5,mode=620 0 0 proc /proc proc defa As you can see it's already set up for auto fs detection, and it gives me the same bs. this is the command I used just five seconds ago to mount the cd-rw as well as the ouput from that command: root@darkstar:~# mount -t auto -o unhide /dev/hdc /mnt/cdrw mount: block device /dev/hdc is write-protected, mounting read-only mount: Not a directory I've also tried this: root@darkstar:~# mount -t iso9660 /dev/hdc /mnt/cdrom mount: block device /dev/hdc is write-protected, mounting read-only mount: Not a directory and this: root@darkstar:~# ls -ald /mnt/* ; file /mnt/* -rw-r--r-- 1 root root 376 2006-09-25 23:09 /mnt/README drwxr-xr-x 2 root root 48 2006-09-25 21:02 /mnt/cdrecorder/ drwxr-xr-x 2 root root 48 2006-10-22 02:22 /mnt/cdrom/ drwxr-xr-x 2 root root 48 2006-10-22 02:22 /mnt/cdrw/ drwxr-xr-x 2 root root 48 2006-09-25 21:02 /mnt/dvd/ drwxr-xr-x 2 root root 48 2002-03-16 02:34 /mnt/floppy/ drwxr-xr-x 2 root root 48 2002-03-16 02:34 /mnt/hd/ drwxr-xr-x 2 root root 48 2006-09-25 21:02 /mnt/memory/ drwxr-xr-x 2 root root 48 2006-09-25 21:03 /mnt/tmp/ drwxr-xr-x 2 root root 48 2006-09-25 21:02 /mnt/zip/ /mnt/README: ASCII English text /mnt/cdrecorder: directory /mnt/cdrom: directory /mnt/cdrw: directory /mnt/dvd: directory /mnt/floppy: directory /mnt/hd: directory /mnt/memory: directory /mnt/tmp: directory /mnt/zip: directory See what I'm getting at? This doesn't make any sense at all, and here, just for the sake of being thorough: root@darkstar:~# cat /var/log/dmesg Linux version 2.4.33.3 (root@darkstar) (gcc version 3.4.6) #2 Sat Oct 21 23:07:24 EDT 2006 BIOS-provided physical RAM map: BIOS-e820: 0000000000000000 - 00000000000a0000 (usable) BIOS-e820: 00000000000f0000 - 0000000000100000 (reserved) BIOS-e820: 0000000000100000 - 0000000007ffc000 (usable) BIOS-e820: 0000000007ffc000 - 0000000007fff000 (ACPI data) BIOS-e820: 0000000007fff000 - 0000000008000000 (ACPI NVS) BIOS-e820: 00000000fec00000 - 00000000fec01000 (reserved) BIOS-e820: 00000000fee00000 - 00000000fee01000 (reserved) BIOS-e820: 00000000ffff0000 - 0000000100000000 (reserved) 127MB LOWMEM available. On node 0 totalpages: 32764 zone(0): 4096 pages. zone(1): 28668 pages. zone(2): 0 pages. Kernel command line: BOOT_IMAGE=Linux ro root=301 Found and enabled local APIC! Initializing CPU#0 Detected 1532.941 MHz processor. Console: colour VGA+ 80x25 Calibrating delay loop... 3060.53 BogoMIPS Memory: 126796k/131056k available (1728k kernel code, 3876k reserved, 355k data, 100k init, 0k highmem) Dentry cache hash table entries: 16384 (order: 5, 131072 bytes) Inode cache hash table entries: 8192 (order: 4, 65536 bytes) Mount cache hash table entries: 512 (order: 0, 4096 bytes) Buffer cache hash table entries: 4096 (order: 2, 16384 bytes) Page-cache hash table entries: 32768 (order: 5, 131072 bytes) CPU: L1 I Cache: 64K (64 bytes/line), D cache 64K (64 bytes/line) CPU: L2 Cache: 256K (64 bytes/line) Intel machine check architecture supported. Intel machine check reporting enabled on CPU#0. CPU: After generic, caps: 0383fbff c1cbfbff 00000000 00000000 CPU: Common caps: 0383fbff c1cbfbff 00000000 00000000 CPU: AMD Athlon(TM) XP 1800+ stepping 02 Enabling fast FPU save and restore... done. Enabling unmasked SIMD FPU exception support... done. Checking 'hlt' instruction... OK. POSIX conformance testing by UNIFIX enabled ExtINT on CPU#0 ESR value before enabling vector: 00000000 ESR value after enabling vector: 00000000 Using local APIC timer interrupts. calibrating APIC timer ... ..... CPU clock speed is 1532.9260 MHz. ..... host bus clock speed is 266.5956 MHz. cpu: 0, clocks: 2665956, slice: 1332978 CPU0<T0:2665952,T1:1332960,D:14,S:1332978,C:2665956> mtrr: v1.40 (20010327) Richard Gooch (rgooch@atnf.csiro.au) mtrr: detected mtrr type: Intel PCI: Using configuration type 1 PCI: Probing PCI hardware PCI: Probing PCI hardware (bus 00) PCI: Via IRQ fixup PCI: Using IRQ router VIA [1106/3147] at 00:11.0 Linux NET4.0 for Linux 2.4 Based upon Swansea University Computer Society NET3.039 Initializing RT netlink socket Starting kswapd VFS: Disk quotas vdquot_6.5.1 parport0: PC-style at 0x378 (0x778) [PCSPP,TRISTATE] parport0: irq 7 detected i2c-core.o: i2c core module version 2.6.1 (20010830) i2c-dev.o: i2c /dev entries driver module version 2.6.1 (20010830) i2c-core.o: driver i2c-dev dummy driver registered. i2c-algo-bit.o: i2c bit algorithm module i2c-proc.o version 2.6.1 (20010830) pty: 512 Unix98 ptys configured Serial driver version 5.05c (2001-07-08) with MANY_PORTS MULTIPORT SHARE_IRQ SERIAL_PCI enabled ttyS00 at 0x03f8 (irq = 4) is a 16550A ttyS01 at 0x02f8 (irq = 3) is a 16550A Floppy drive(s): fd0 is 1.44M FDC 0 is a post-1991 82077 loop: loaded (max 8 devices) PPP generic driver version 2.4.2 PPP Deflate Compression module registered PPP BSD Compression module registered Linux agpgart interface v0.99 (c) Jeff Hartmann agpgart: Maximum main memory to use for agp memory: 94M agpgart: Detected Via Apollo Pro KT266 chipset agpgart: AGP aperture is 64M @ 0xe0000000 Uniform Multi-Platform E-IDE driver Revision: 7.00beta4-2.4 ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: IDE controller at PCI slot 00:11.1 VP_IDE: chipset revision 6 VP_IDE: not 100% native mode: will probe irqs later ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx VP_IDE: VIA vt8233a (rev 00) IDE UDMA133 controller on pci00:11.1 ide0: BM-DMA at 0xb000-0xb007, BIOS settings: hda:DMA, hdb:pio ide1: BM-DMA at 0xb008-0xb00f, BIOS settings: hdc:DMA, hdd:DMA hda: Maxtor 4D040H2, ATA DISK drive hdc: AOPEN CD-RW CRW3248 1.10 20020301, ATAPI CD/DVD-ROM drive hdd: EPO CD-ROM CR-840S, ATAPI CD/DVD-ROM drive ide0 at 0x1f0-0x1f7,0x3f6 on irq 14 ide1 at 0x170-0x177,0x376 on irq 15 hda: attached ide-disk driver. hda: host protected area => 1 hda: 80043264 sectors (40982 MB) w/2048KiB Cache, CHS=4982/255/63, UDMA(100) hdc: attached ide-cdrom driver. hdc: ATAPI 48X CD-ROM CD-R/RW drive, 8192kB Cache, DMA Uniform CD-ROM driver Revision: 3.12 hdd: attached ide-cdrom driver. hdd: ATAPI 36X CD-ROM drive, 128kB Cache, UDMA(33) Partition check: hda: hda1 hda2 hda3 hda4 < hda5 hda6 > SCSI subsystem driver Revision: 1.00 scsi0 : SCSI host adapter emulation for IDE ATAPI devices cmpci: version $Revision: 6.16 $ time 23:08:48 Oct 21 2006 PCI: Found IRQ 10 for device 00:05.0 PCI: Sharing IRQ 10 with 00:09.2 PCI: Sharing IRQ 10 with 00:0e.0 cmpci: found CM8738 adapter at io 0xd800 irq 10 cmpci: chip version = 055 usb.c: registered new driver usbdevfs usb.c: registered new driver hub host/usb-uhci.c: $Revision: 1.275 $ time 23:08:58 Oct 21 2006 host/usb-uhci.c: High bandwidth mode enabled PCI: Found IRQ 12 for device 00:09.0 IRQ routing conflict for 00:09.0, have irq 5, want irq 12 host/usb-uhci.c: USB UHCI at I/O 0xd400, IRQ 5 host/usb-uhci.c: Detected 2 ports usb.c: new USB bus registered, assigned bus number 1 hub.c: USB hub found hub.c: 2 ports detected PCI: Found IRQ 12 for device 00:09.1 IRQ routing conflict for 00:09.1, have irq 11, want irq 12 IRQ routing conflict for 00:0d.0, have irq 11, want irq 12 IRQ routing conflict for 00:0d.1, have irq 11, want irq 12 IRQ routing conflict for 01:00.0, have irq 11, want irq 12 host/usb-uhci.c: USB UHCI at I/O 0xd000, IRQ 11 host/usb-uhci.c: Detected 2 ports usb.c: new USB bus registered, assigned bus number 2 hub.c: USB hub found hub.c: 2 ports detected PCI: Found IRQ 10 for device 00:11.2 IRQ routing conflict for 00:11.2, have irq 9, want irq 10 IRQ routing conflict for 00:11.3, have irq 9, want irq 10 host/usb-uhci.c: USB UHCI at I/O 0xa800, IRQ 9 host/usb-uhci.c: Detected 2 ports usb.c: new USB bus registered, assigned bus number 3 hub.c: USB hub found hub.c: 2 ports detected PCI: Found IRQ 10 for device 00:11.3 IRQ routing conflict for 00:11.2, have irq 9, want irq 10 IRQ routing conflict for 00:11.3, have irq 9, want irq 10 host/usb-uhci.c: USB UHCI at I/O 0xa400, IRQ 9 host/usb-uhci.c: Detected 2 ports usb.c: new USB bus registered, assigned bus number 4 hub.c: USB hub found hub.c: 2 ports detected host/usb-uhci.c: v1.275:USB Universal Host Controller Interface driver usb.c: registered new driver hiddev usb.c: registered new driver hid hid-core.c: v1.8.1 Andreas Gal, Vojtech Pavlik <vojtech@suse.cz> hid-core.c: USB HID support drivers Initializing USB Mass Storage driver... usb.c: registered new driver usb-storage USB Mass Storage support registered. Linux video capture interface: v1.00 i2c-core.o: driver tv card mixer driver registered. mice: PS/2 mouse device common for all mice I2O Core - (C) Copyright 1999 Red Hat Software I2O: Event thread created as pid 12 Linux I2O PCI support (c) 1999 Red Hat Software. i2o: Checking for PCI I2O controllers... I2O configuration manager v 0.04. (C) Copyright 1999 Red Hat Software NET4: Linux TCP/IP 1.0 for NET4.0 IP Protocols: ICMP, UDP, TCP, IGMP IP: routing cache hash table of 512 buckets, 4Kbytes TCP: Hash tables configured (established 8192 bind 16384) Linux IP multicast router 0.06 plus PIM-SM NET4: Unix domain sockets 1.0/SMP for Linux NET4.0. FAT: bogus logical sector size 0 FAT: bogus logical sector size 0 reiserfs: found format "3.6" with standard journal hub.c: new USB device 00:11.2-2, assigned address 2 reiserfs: checking transaction log (device ide0(3,1)) ... for (ide0(3,1)) input: USB HID v1.10 Mouse [Logitech Optical USB Mouse] on usb3:2.0 ide0(3,1):Using r5 hash to sort names VFS: Mounted root (reiserfs filesystem) readonly. Freeing unused kernel memory: 100k freed Adding Swap: 377516k swap-space (priority -1) reiserfs: found format "3.6" with standard journal reiserfs: checking transaction log (device ide0(3,3)) ... for (ide0(3,3)) ide0(3,3):Using r5 hash to sort names Perhaps I should re-install the OS? (OMG! what a hassle that would be) I've already recompiled the kernel, (it was necesssary to get my mouse working) but prior to that I had the same troubles. I'd try with a 2.6 kernel but my 2.6 kernels are on, you guessed it, CD. And I don't have broadband so downloading one is out. i think whoever figures this one out should get a golden penguin award or something, |
Run dmesg after you get the error. You only need to post the last few lines of dmesg.
dmesg |tail Also if you try to mount to a non-directory you get a different error: # mount /dev/hdc file mount: block device /dev/hdc is write-protected, mounting read-only mount: mount point file is not a directory That is a different error than you are getting. mount: Not a directory So your error is not from mounting to the wrong mount point. |
Okay, here you go:
ISO 9660 Extensions: Microsoft Joliet Level 3 ISOFS: changing to secondary root ISO 9660 Extensions: Microsoft Joliet Level 3 ISOFS: changing to secondary root |
Code:
/dev/hda2 swap swap defaults 0 0 Code:
mount /mnt/cdrw |
All times are GMT -5. The time now is 02:14 AM. |