Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 Oct 1997 12:10:31 -0500 (CDT)
From:      Conrad Sabatier <conrads@neosoft.com>
To:        questions@freebsd.org
Subject:   Error ("Invalid argument") mounting ATAPI CD-ROM
Message-ID:  <XFMail.971019121031.conrads@neosoft.com>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.971019121031.conrads>