[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    eject and umount /dev/cdrom fails on busybox-1.4.1
From:       Natanael Copa <natanael.copa () gmail ! com>
Date:       2007-02-25 1:06:10
Message-ID: 20070225020610.e7aaeeaa.natanael.copa () gmail ! com
[Download RAW message or body]

I noticed that "eject" fails on busybox-1.4.1. Looks like it fails on
umount. 

~ $ mount /dev/cdrom
~ $ umount /dev/cdrom
umount: cannot umount /dev/cdrom: Invalid argument
~ $ mount
rootfs on / type rootfs (rw)
/dev/none on / type tmpfs (rw)
proc on /proc type proc (rw)
none on /sys type sysfs (rw)
mdev on /dev type tmpfs (rw)
none on /dev/pts type devpts (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/md1 on /var type ext3 (rw,data=ordered)
/dev/cdrom on /media/cdrom type iso9660 (ro)

umount /media/cdrom works.

Funny enough, unmouting /dev/loop0 works:

~ $ mount -o loop /media/cdrom/modules.cmg /lib/modules/
mount: /dev/loop0 is write-protected, mounting read-only
mount: /dev/loop0 is write-protected, mounting read-only
mount: /dev/loop0 is write-protected, mounting read-only
mount: /dev/loop0 is write-protected, mounting read-only
~ $ mount
rootfs on / type rootfs (rw)
/dev/none on / type tmpfs (rw)
proc on /proc type proc (rw)
none on /sys type sysfs (rw)
mdev on /dev type tmpfs (rw)
none on /dev/pts type devpts (rw)
tmpfs on /dev/shm type tmpfs (rw)
/dev/md1 on /var type ext3 (rw,data=ordered)
/dev/cdrom on /media/cdrom type iso9660 (ro)
/dev/loop0 on /lib/modules type cramfs (ro)
~ $ umount /dev/loop0
~ $

/dev/cdrom is a symbolic link to /dev/hda

here is the strace output (gdb dont work on that pax'ed kernel, sorry):

open("/proc/mounts", O_RDONLY)          = 4
ioctl(4, SNDCTL_TMR_TIMEBASE or TCGETS, 0x59d0ffd0) = -1 ENOTTY (Inappropriate ioctl for device)
read(4, "rootfs / rootfs rw 0 0\n/dev/none"..., 4096) = 251
read(4, "", 4096)                       = 0
close(4)                                = 0
readlink("/dev", 0x59d0e0ec, 4095)      = -1 EINVAL (Invalid argument)
readlink("/dev/cdrom", "hda", 4095)     = 3
readlink("/dev/hda", 0x59d0e0ec, 4095)  = -1 EINVAL (Invalid argument)
oldumount("/dev/cdrom")                 = -1 EINVAL (Invalid argument)
write(2, "umount", 6umount)                   = 6
write(2, ": ", 2: )                       = 2
write(2, "cannot umount ", 14cannot umount )          = 14
write(2, "/dev/cdrom", 10/dev/cdrom)              = 10
write(2, ": ", 2: )                       = 2
write(2, "Invalid argument", 16Invalid argument)        = 16
write(2, "\n", 1
)                       = 1
_exit(1)                                = ?
Process 30996 detached
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic