Re: Re: [rhn-users] usb camera removes second cdrom-R/RW

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

 



Thank you wery much for your answer on my problem.
I have added some info.

Thanks again
> 
> From: Ryan Camick <ryan@endless.eu.org>
> Date: 2002/12/13 Fri AM 01:26:29 CET
> To: psyche-list@redhat.com
> Subject: Re: [rhn-users] usb camera removes second cdrom-R/RW
> 
> First of all, I do not have a solution to this problem.  I have provided
> a little info, and some probing questions, to see if we can help solve
> this problem.  I wonder if Erik Troan, who wrote updfstab's man page,
> reads this list, and has time to offer any suggestions.
> 
> (I wonder if the solution to this problem is to shut kudzu off using
> command, as root # service kudzu stop ) (Restart kudzu if you decide you
> need it for new hardware.)
> 
> On Wed, 2002-12-11 at 15:54, Sandor Suta wrote:
> > Help me... do anyone have a clue on this, I dont want to reinstall the
> > whole RH8.0.
> 
> We don't want you to have to reinstall either.  It's better to learn to
> fix things, so it's great that you are trying!  Let's try to verify some
> of the related packages have not been modified from their original
> state, so we know we are all working with the same stuff.  Try these
> commands, as any user, and if no output is produce it means the package
> is good:
> 
> $ rpm -q --verify kudzu
ok
> $ rpm -q --verify kernel
output: .M......   /dev/shm
> $ rpm -q --verify hotplug
> S.5....T c /etc/hotplug/usb.usermap
ok
> 
> (My system produces one line of output for hotplug, as shown above, and
> I expect your will too.)
> 
> Also please show version for each of those packages to ensure you are
> up2date.
> 
> $ rpm -q kudzu kernel hotplug
kudzu-0.99.69-1
kernel-2.4.18-18.8.0
hotplug-2002_04_01-13
> 
> > > On Tue, 2002-12-10 at 17:51, Sandor Suta wrote:
> > > > Yes, my camera also loads the storage device.
> > > > I don't know if I have done something wrong when I first was
> > > > investigating how the usb-camera worked with Redhat, though I'm a newbie
> > > > on redhat and linux. The thing I did was that I connected the camera to
> > > > my computer with the power switch off, then I turned on the power first
> > > > on my camera then on my computer, so that kudzu would find the new
> > > > hardware on bootup... Yes you maybe find this stupid when considering
> > > > that I was using a usb with hotplug capability kernel. Well I'm a newbie
> > > > and I didn't find any information on how to make it work so I did a
> > > > little try and error. 
> 
> This sounds fine to me.  I believe I installed RH 8.0 and about a week
> later just plugged in my camera and # mount /mnt/camera
> 
> Testing today, I find that plugging the camera in, setting to PC connect
> and turning its power on, this line is added to /etc/fstab
> 
> /dev/sda1  /mnt/camera    auto    noauto,owner,kudzu 0 0
> 
> This line is not removed when I unmount/shutoff the camera and unplug
> it.  It appears to stay there for good.  You say the line is removed on
> your system, correct?

Both no and yes, it depends how I turn the camera on and the computer.
In the first case I have the computer turned off and I plug in the camera and turn the camera on 
and after that I turn on my computer and let it boot in a normal way with the camera plugged in and the power turned on. 
And now when I have logged in, I can mount my camera, when I am turning the camera off, the line "/dev/sda1  /mnt/camera    auto    noauto,owner,kudzu 0 0" in fstab is removed and added again when I'm reconnecting the camera. It's in this way I want updfstad to function, I don't want to always have my camera connected and turnd on when I'm turning my computer on.

In the second case, its vice versa, The computer's power is turned on (the normal way unlike to the first case above) and I have logged in to my account. I'm plugging the camera in to the computer and turn the power on on the camera, the line "/dev/sda1  /mnt/camera    auto    noauto,owner,kudzu 0 0" is added to fstab.
And when I turn the camera off the line stays, as it did for you, but the line for my CD-R/RW "/dev/cdrom1             /mnt/cdrom1             iso9660 noauto,owner,kudzu,ro 0 0" is removed.
Ok I could remove the kudzu from that line and the line would not be removed, but then when I turn on my camera again a line "/dev/cdrom2             /mnt/cdrom2             iso9660 noauto,owner,kudzu,ro 0 0" would appear and disappear at disconnect.

> 
> > > > Maybe, I don't know, but if there is any config files or database-file
> > > > that kudzu or other writes the systems configuration to, could be
> > > > scsi-related, or something else. I don't know really where to start
> > > > troubleshooting.
> > > > Have you any clue where to start looking or what config-files is
> > > > appropriate to look at?
> > > > 
> > > > Sandor
> > > > 
> > > > On Mon, 2002-12-09 at 21:39, Brian S. Paskin wrote:
> > > > > I have a Sony DSC-P9 digital camera and I do not experience this.  I have 2 
> > > > > cdrom drives which are loaded with the scsi driver.  How is the camera 
> > > > > loading?  Mine loads as a usb mass storage device.  It is very strange that a 
> > > > > usb device would some how be tied to a scsi device.
> 
> Let's establish that USB mass storage cameras _do_ look like SCSI
> devices:
> 
> >From # man updfstab
> 
> USB devices look like SCSI devices to user space, so  those  are
> supported as well, but are only added if they are currently attached to
> the system (having a scsi device assigned to them is not sufficient).
> 
> ----
> 
> My HP PhotoSmart 912 mounts as USB harddrive on /dev/sda1 and is scsi
> device 0,0,0
My camera use scsi device 0,0,0 in the first case described above
And 1,0,0 in the second case. And My CD-R/RW use 0,0,0 in the second case and 1,0,0 in the first case.

> 
> > > > > > On Mon, 2002-12-02 at 22:00, Sandor Suta wrote:
> > > > > > > Hi!
> > > > > > > I have this problem: When I connect my digital camera (Sony DSC-P5,
> > > > > > > cyber-shot 3.2) everything works ok, updfstab updates my fstab and
> > > > > > > creates the directory /mnt/camera and I can mount it like a floppy and
> > > > > > > do my work.
> > > > > > > And now when I turn of my camera the problem begin, updfs removes my
> > > > > > > second "cdrom1" from the fstab and folder /mnt/cdrom1. updfstab don't
> > > > > > > touch the line for the camera and the folder /mnt/camera, my cdrom1 is
> > > > > > > acctually an CD-R/RW and uses like my camera the scsibus (when I run
> > > > > > > cdrecord -scanbus, the camera is on scsibus1 as 1,0,0 and my CD-R/RW on
> > > > > > > scsibus0 as 0,0,0) I dont know if this info about the scsibus will help
> > > > > > > troubleshooting?
> > > > > > > When I turn on my camera again the "cdrom1" reappears, strange... and I
> > > > > > > can mount my cdrom again without manually change fstab. I have tried to
> > > > > > > remove the kudzu from my cdrom1-line in fstab with the result, that,
> > > > > > > when turning of and on the camera a "third" "cdrom2" appears in the
> > > > > > > system with the same setting s as "cdrom1", what is wrong, how do a
> > > > > > > troubleshoot to solve this problem?
> 
> Your note about trying to remove the kudzu line from cdrom1 in
> /etc/fstab is good.  This is what I would have recommended.

I think that I will use this solution, if there is no other clean solution for it.
> 
> >From # man updfstab:
> 
> Devices which updfstab adds to /etc/fstab are  marked  with  the  kudzu
> mount option to distinguish them from other devices.  updfstab will not
> remove devices from /etc/fstab unless they are marked  with  the  kudzu
> mount  option.  It  also  ignores  devices  that  are already listed in
> /etc/fstab, or which have multiple partitions on  the  media  currently
> inserted.
But how can updfs add the line cdrom2 (when removing kudzu from the cdrom1 line, second case) when I'm connecting a camera?

> 
> > > > > > > I have installed Redhat 8.0 and I have most settings as default.
> > > > > > >
> > > > > > > Do anyone have a clue of what i could do to make this function properly?
> > > > > > >
> > > > > > > Thanx for your help!
> 
> -- 
> Powered by Red Hat Linux 8.0
> 
> 
> 
> -- 
> Psyche-list mailing list
> Psyche-list@redhat.com
> https://listman.redhat.com/mailman/listinfo/psyche-list
> 



-- 
Psyche-list mailing list
Psyche-list@redhat.com
https://listman.redhat.com/mailman/listinfo/psyche-list

[Index of Archives]     [Fedora General Discussion]     [Red Hat General Discussion]     [Centos]     [Kernel]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat 9]     [Gimp]     [Yosemite News]

  Powered by Linux