RE: smart media changing problem
Pavel Rozenboim <[email protected]>
| Newsgroups | gmane.linux.redhat.release.limbo |
|---|---|
| Message-ID | <7BCD42353C1FD411A66200062939B2F1746CFA@EXCHANGE> |
Permissions on /dev/hd* and /dev/sd* do not allow users to either read or write. I think that's why eject does not work for me. Will it be a security compromise to give anyone read access to block devices? Sorry for off-topic question. Pavel. -----Original Message----- From: Pavel Rozenboim [mailto:[email protected]] Sent: Thu, September 19, 2002 7:09 PM To: [email protected] Subject: RE: smart media changing problem Try to run eject command as root. For some reason I get same error every time I try to eject cdrom as non-root user. BTW, any ideas why? Worth bugzilla? Pavel. > -----Original Message----- > From: Gerry Tool [mailto:[email protected]] > Sent: Thu, September 19, 2002 5:44 PM > To: [email protected] > Subject: Re: smart media changing problem > > > On Thu, 2002-09-19 at 09:45, Thomas Dodd wrote: > > > > > > > > > > Initializing USB Mass Storage driver... > > > usb.c: registered new driver usb-storage > > > scsi1 : SCSI emulation for USB Mass Storage devices > > > Vendor: Olympus Model: Camedia MAUSB-2 Rev: 0100 > > > Type: Direct-Access ANSI SCSI > revision: 02 > > > > Seams detected OK. > > > > > Attached scsi removable disk sda at scsi1, channel 0, id 0, lun 0 > > > > Knows it's removable too. > > I wonder if issuing and eject might help? > > > [gerry@gstpc gerry]$ mount /mnt/smedia > mount: block device /dev/sda1 is write-protected, mounting read-only > [gerry@gstpc gerry]$ umount /mnt/smedia > [gerry@gstpc gerry]$ eject /mnt/smedia > eject: unable to open `/dev/sda1' > [gerry@gstpc gerry]$ mount /mnt/smedia > mount: block device /dev/sda1 is write-protected, mounting read-only > [gerry@gstpc gerry]$ eject /mnt/smedia > eject: unable to open `/dev/sda1' > > this is where I took the card out and reinserted it. > > [gerry@gstpc gerry]$ mount /mnt/smedia > mount: block device /dev/sda1 is write-protected, mounting read-only > mount: wrong fs type, bad option, bad superblock on /dev/sda1, > or too many mounted file systems > [gerry@gstpc gerry]$ eject sda > eject: unable to find or open device for: `sda' > [gerry@gstpc gerry]$ > > > gerry > > > > _______________________________________________ > Limbo-list mailing list > [email protected] > https://listman.redhat.com/mailman/listinfo/limbo-list >