From owner-freebsd-questions Sun Oct 19 10:36:25 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA20609 for questions-outgoing; Sun, 19 Oct 1997 10:36:25 -0700 (PDT) (envelope-from owner-freebsd-questions) Received: from as5200-port-254.no.neosoft.com (as5200-port-254.no.neosoft.com [206.27.167.254]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA20599 for ; Sun, 19 Oct 1997 10:36:20 -0700 (PDT) (envelope-from conrads@as5200-port-254.no.neosoft.com) Received: (from conrads@localhost) by as5200-port-254.no.neosoft.com (8.8.7/8.8.5) id MAA19836 for freebsd-questions@freebsd.org; Sun, 19 Oct 1997 12:35:41 -0500 (CDT) Message-ID: X-Mailer: XFMail 1.2-beta-100797 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 Resent-Date: Sun, 19 Oct 1997 12:10:31 -0500 (CDT) Resent-Message-Id: Resent-From: Conrad Sabatier Resent-To: questions@freebsd.org Date: Sun, 19 Oct 1997 12:35:40 -0500 (CDT) Reply-To: conrads@neosoft.com Organization: NeoSoft, Inc. From: Conrad Sabatier To: freebsd-questions@freebsd.org Subject: Error ("Invalid argument") mounting ATAPI CD-ROM Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk This has been troubling me for a long time, and I can't figure it out. Sysinstall has no problem mounting /dev/wcd0c as /dist, but I can't mount the disk myself as /cdrom. The problem first appeared in the 2.2.x releases and has followed me right up to -current. I'm really baffled. Any help would be greatly appreciated. root:/root# mount -t cd9660 /dev/wcd0c /cdrom cd9660: Invalid argument root:/root# mount_cd9660 /dev/wcd0c /cdrom mount_cd9660: Invalid argument root:/root# cat /etc/fstab # Device Mountpoint FStype Options Dump Pass# /dev/wd1a / ufs rw 1 1 /dev/wd1s1f /usr ufs rw 1 1 /dev/wd1s1e /var ufs rw 1 1 proc /proc procfs rw 0 0 /dev/wcd0c /cdrom cd9660 ro,noauto 0 0 /dev/wd0s1 /c msdos rw 0 0 /dev/wd1s1b none swap sw 0 0 /dev/wd0s2b none swap sw 0 0 root:/root# ktrace mount -t cd9660 /dev/wcd0c /cdrom cd9660: Invalid argument root:/root# kdump 18744 ktrace RET ktrace 0 18744 ktrace CALL readlink(0x80818dc,0xefbfd154,0x3f) 18744 ktrace NAMI "/etc/malloc.conf" 18744 ktrace RET readlink -1 errno 2 No such file or directory 18744 ktrace CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0) 18744 ktrace RET mmap 134344704/0x801f000 18744 ktrace CALL break(0x5000) 18744 ktrace RET break 0 18744 ktrace CALL break(0x6000) 18744 ktrace RET break 0 18744 ktrace CALL execve(0xefbfd204,0xefbfd6c4,0xefbfd6dc) 18744 ktrace NAMI "/usr/local/kde/bin/mount" 18744 ktrace RET execve -1 errno 2 No such file or directory 18744 ktrace CALL execve(0xefbfd204,0xefbfd6c4,0xefbfd6dc) 18744 ktrace NAMI "/usr/local/qt/bin/mount" 18744 ktrace RET execve -1 errno 2 No such file or directory 18744 ktrace CALL execve(0xefbfd204,0xefbfd6c4,0xefbfd6dc) 18744 ktrace NAMI "/sbin/mount" 18744 mount RET execve 0 18744 mount CALL readlink(0x2364c,0xefbfd5fc,0x3f) 18744 mount NAMI "/etc/malloc.conf" 18744 mount RET readlink -1 errno 2 No such file or directory 18744 mount CALL mmap(0,0x1000,0x3,0x1002,0xffffffff,0,0,0) 18744 mount RET mmap 134389760/0x802a000 18744 mount CALL break(0x35000) 18744 mount RET break 0 18744 mount CALL break(0x36000) 18744 mount RET break 0 18744 mount CALL open(0x2e20,0,0xefbfcb68) 18744 mount NAMI "." 18744 mount RET open 3 18744 mount CALL chdir(0x2e22) 18744 mount NAMI "/" 18744 mount RET chdir 0 18744 mount CALL lstat(0xefbfcb69,0xefbfcad8) 18744 mount NAMI "cdrom" 18744 mount RET lstat 0 18744 mount CALL chdir(0xefbfcb69) 18744 mount NAMI "cdrom" 18744 mount RET chdir 0 18744 mount CALL sigaction(0xc,0xefbfc63c,0xefbfc630) 18744 mount RET sigaction 0 18744 mount CALL __getcwd(0xefbfcb68,0x400) 18744 mount RET __getcwd 0 18744 mount CALL sigaction(0xc,0xefbfc630,0) 18744 mount RET sigaction 0 18744 mount CALL fchdir(0x3) 18744 mount RET fchdir 0 18744 mount CALL close(0x3) 18744 mount RET close 0 18744 mount CALL stat(0xefbfcb68,0xefbfd46c) 18744 mount NAMI "/cdrom" 18744 mount RET stat 0 18744 mount CALL fork 18744 mount RET fork 18745/0x4939 18744 mount CALL wait4(0x4939,0xefbfcb5c,0,0) 18744 mount RET wait4 18745/0x4939 18744 mount CALL exit(0x1) -- Conrad Sabatier | "If it's Bill's, I don't want it" http://www.neosoft.com/~conrads | http://www.FreeBSD.org