Re: [Cooker] urpmi and removable media
On Monday 15 April 2002 1:15 am, Borsenkow Andrej wrote: > cat /etc/urpmi/urpmi.cfg Aha! Got it. Thanks a bunch. -Dave
RE: [Cooker] urpmi and removable media
> > If this has been brought up, I appologize. I haven't been reading the list > recently. > > Here's the problem: > I have cooker and contrib local on my hard drive. recently I tried to > install > something but urpmi thinks that the medium is removable. It unmounts the > partition and then complains that it can't find the packages. Here is the > output: > > [root@mercury root]# urpmi kde3-koffice > eject: unable to eject, last error: Input/output error > Please insert the medium named "Contrib" on device [/dev/hda11] > Press Enter when it's done... > > What determines what is removable and what is not? man urpmi.addmedia cat /etc/urpmi/urpmi.cfg you'll have to remove and read all your media. Or directly edit all files /var/lib/urpmi/list.* (removable:// -> file://)
Re: [Cooker] urpmi and removable media
Philip Van Hoof <[EMAIL PROTECTED]> writes: [...] > int we_have_been_executed_by_a_tty=0; > > if (!isatty(fileno(stdout))) { /* not sure if correct */ fileno(stdout) is always 1. > we_have_been_executed_by_a_tty=1; > } > > if (we_have_been_executed_by_a_tty) { > > printf("We had to mount some media to complete the installation of > some packages, do you want to unmount this media > (release it) ? [Y/n]"); > > } else { > /*Probably some GUI tool executed us. Let the tool handle the > unmounting of devices > */ > } -- Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/
Re: [Cooker] urpmi and removable media
Borsenkow Andrej <[EMAIL PROTECTED]> writes: > > > > > Nice. Let's make urpmi call eject after installation is done :-) > > > > > > BTW what it does with processes that possible hold device open? > > > > Sorry? > > > > less /mnt/cdrom/readme.txt > switch to another shell > eject cdrom > > what happens to less? (i suppose you talk about supermount) eject is forbidden when a fd is still open. -- Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/
Re: [Cooker] urpmi and removable media
Borsenkow Andrej <[EMAIL PROTECTED]> writes: > Nice. Let's make urpmi call eject after installation is done :-) > > BTW what it does with processes that possible hold device open? Sorry? -- Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/
RE: [Cooker] urpmi and removable media
> > > Assuming we are using normal (not supermounted) media, many people are > > complaining that they cannot eject CD after installing something with > > urpmi/rpmdrake. The reason is obvious - they (programs) mount CDs but do > > not umount them. You may be surprised, but the fact that you have to > > unmount CD to be able to eject it is not widely known (and many users do > > not even know how to do it anyway). > > What's funny is that "eject " now umounts before really ejecting. > Nice. Let's make urpmi call eject after installation is done :-) BTW what it does with processes that possible hold device open? -andrej
Re: [Cooker] urpmi and removable media
Borsenkow Andrej <[EMAIL PROTECTED]> writes: > Assuming we are using normal (not supermounted) media, many people are > complaining that they cannot eject CD after installing something with > urpmi/rpmdrake. The reason is obvious - they (programs) mount CDs but do > not umount them. You may be surprised, but the fact that you have to > unmount CD to be able to eject it is not widely known (and many users do > not even know how to do it anyway). What's funny is that "eject " now umounts before really ejecting. > I suggest to take some conservative approach. If CD was not mounted when > urpmi was started - umount it after installation has completed. If CD was > already mounted - do not touch it (assume user knows what he's doing). If > you have had to change CDs during installation - it looks reasonable to > unmount it as well. > > Comments? > > -andrej > -- Guillaume Cottenceau - http://people.mandrakesoft.com/~gc/