[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: /dev/cdrom is not a valid block device



Hi Andreas, David and others

Thanks for your advice.

- snip -
> >>>    eject /dev/hdc
> >>
> >> As ROOT it works, not as USER
> >
> > Add yourself to the cdrecording group, (or whichever group /dev/hdc is
> > owned by).
>
> /dev/hdc probably is owned by the disk group, and it is a bad idea to
> add users to that group because it allows direct read/write access to
> all hard disks. The user can easily overwrite complete file systems
> using dd. Better change /dev/hdc group to cdrom, or use ide-scsi
> emulation instead, so you can access the drive through /dev/scd*, which
> belong to the cdrom group.

I reworked the setup as follows;

# ln -s /dev/hdc /dev/cdwriter
# ls -al /dev/ | grep cdrom
.....
lrwxrwxrwx    1 root     root           11 2004-01-05 04:04 cdrom -> /dev/
cdrom0
lrwxrwxrwx    1 root     root            8 2004-01-05 04:04 cdrom0 -> /dev/hdd
.....
(already exist)

re-editted /etc/fstab
# cat /etc/fstab
....
/dev/hdd        /mnt/cdrom      auto    ro,user,noauto,exec     0 0
/dev/hdc        /mnt/cdwriter   auto    rw,user,noauto,exec     0 0

Created /mnt/cdrom  and  /mnt/cdwriter

Ctrl+Alt+BackSpace
relogin

Now on KDE desktop
I can mount and umount both 'cdrom' and 'cdwriter' by right-clicking their 
icons -> mount/umount

But I could not eject them by right-clicking their icons -> eject.  I must 
push the bottom of their devices manually.  

Also on Konsole window
$ eject /mnt/cdrom  or
$ eject /mnt/cdwriter
did not work.

Rebooted the PC with the same result

B.R.
Stephen





Reply to: