Make Mandrake use a different drive for installing packages
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Make Mandrake use a different drive for installing packages
Hey,
My DVD drive doesn't like Mandrake, so installed it with my CD-RW drive instead. But when Mandrake wants to install packages it doesn't give me the option of using another drive.
So, how can I tell it to use the CD-RW drive as standard? It's very annoying not being able to install packages because of my DVD drive. (Last time I buy an Aopen, that's for sure.
Also: Why won't the file browsers display the .cda files on an audio CD? When I look at the /cdrom contents it's just blank when an audio CD is in the drive. Data CDs work fine, so what's the problem? (The CD is not at fault, since ksCD comes up and plays the CD perfectly when I put it in the drive).
Thanks for the guidance, but I don't think it is the same problem.
I have succeeded in getting urpmi at least to use my CD-RW instead of my DVD-Drive by editing /etc/urpmi/urpmi.cfg. I replaced all refences to 'cdrom' with 'cdrom2'. This worked! Urpmi ejected the right drive and requested the disc on 'hdd' (which is correct). But it still won't read the disc. I put it in and press enter as requested, but it just ejects the disc and tells me to put the disc in! I've made sure I waited until the drive finished doing it's initial spin-process.
Now I've got a bigger problem: CDs won't read at all, from either drive! If I put a CD-R, or a commercial disc in either drive and browse to them in Konqueror I get a blank screen. I did swap round hdd and hdc in fstab earlier, but I swapped them back, restored the edit back again (dumn) and then finally put it back as it was. I don't know if this would have affected it. The only other thing of mention is that I did mount -a while trying to get urpmi to read the Installation disc (I thought maybe the drive wasn't mounted). (I did this in a seperate Konsole instance/session mind). I have restarted since then and tried again: same problem: blank screen in Konqueror.
Try using urpmi.removemedia -a followed by urpmi.addmedia with appropriate parameters. The reason for this is that urpmi uses more than just urpmi.cfg, for example, the files in /var/lib/urpmi (the hdlists) may need to be updated too.
For your other problem, what worked for me was to get rid of supermount and magicdev and just do things the old fashioned way. You need to manually mount and configure stuff like xine and grip on your own but it works and its very consistent. If you really want automatic mounting like in windows maybe someone else has some ideas.
If you use Mandrake Control Center, you can delete your package sources and then put your insallation media in the drive you want to use and then create new sources and urpmi will as for the path of the source and just point it to the right folder e.g. If your cdrw is in /mnt/cdrom 2, point urpmi to that path and hdlists and you system should now use the drive that you want to be your default for installing packages.
You can use the software media manager (under system > configuration > packaging) to edit the paths of the installation cds. So you could change the paths for the CDs from /mnt/cdrom to /mnt/cdrom2 to switch CD drives.
Thanks. After getting supermount to seemingly work again I tried editing the packages in Mandrake CC, and it didn't like certain discs for some reason. (Can't remember exactly which). So I torched all the entries and started adding them again. It was fine with CD 3 and 4, but with CD 1 and 2 it complains again... (sigh)...:
Code:
Errors encountered:
No RPM files found from [/mnt/cdrom2]
No hdlist file found for medium "Installation CD X (x86) (cdromX)"
Problem reading synthesis file of medium "Installation CD X (x86) (cdromX)"
Using different names for the disc makes no difference.
I can read the discs fine in Windows, so they themselves are not at fault.
If I try with a relative path set manually (Mandrake/RPM) I get the following error instead (joy!):
Code:
Unable to access medium "Installation CD X (x86) (cdromX)".
this could be because you mounted manually the directory when creating the medium
Argh.
I can't read the two Install CDs in Konqueror either. I get a blank screen. If I try another CD (Halo CD :P) I get taken to the 'Goodies' subdir on the CD for some strange reason.
I tried also to 'urpmi kernel' after this and got the following:
Code:
umount: [/mnt/cdrom2] device is busy
umount: [/mnt/cdrom2] device is busy
Please insert "Installation CD 4 " on device /a/long/systemish/thing/including/ide0/or/something
(Note: "Installation CD 4 " is roughly what it said. It DID NOT say the full "Installation CD 4 (x86) (cdrom4)")
I put in the CD as requested, and it started installing a strange kernel version (aaaargh!) When I rebooted a weird kernel version appeared in LILO, so I guess it succeeded. (Oops.)
I also tried to mount /mnt/cdrom2 from Konsole. (With one of the not-liked Install CDs in the drive) It said nothing. I still couldn't see anything on the CD by cd'ing and dir'ing before and after. I tried to unmount /mnt/cdrom2 and it said the following:
Code:
umount: it seems /mnt/cdrom2 is mounted multiple times
What should I do next to try and fix this? I have a feeling I've unwittingly screwed up the system with my rash editing of urpmi.cfg and fstab... So therefore I'm tempted to wipe Mandrake and start again... (a Windows hangover ). Good idea?
I reinstalled Mandrake 10, and I managed to change CD 1 to use 'cdrom2' via the 'Edit' option in the Package Manager. After that one it started having a fit over me changing it (again), giving me this error:
Code:
Unable to access medium "Installation CD X (x86) (cdromX)".
this could be because you mounted manually the directory when creating the medium
Even when I change one from cdrom2 back to cdrom it STILL has a fit and produces the same error.
I find this hard to believe! A new install and still this problem occurs!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.