LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 07-17-2004, 08:00 AM   #1
Foxy
Member
 
Registered: Jul 2003
Distribution: SuSE 9.1 Professional
Posts: 81

Rep: Reputation: 15
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).
 
Old 07-17-2004, 01:14 PM   #2
doug_s
Member
 
Registered: Apr 2004
Posts: 82

Rep: Reputation: 15
It's probably the same problem as this.

If you need more help post your /etc/fstab and /etc/urpmi/urpmi.cfg files
 
Old 07-18-2004, 12:12 PM   #3
Foxy
Member
 
Registered: Jul 2003
Distribution: SuSE 9.1 Professional
Posts: 81

Original Poster
Rep: Reputation: 15
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.

Files: fstab:
Code:
/dev/hda5 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
/dev/hda8 /home ext3 defaults 1 2
none /mnt/cdrom supermount dev=/dev/hdc,fs=auto,ro,exec,--,umask=0,user,iocharset=iso8859-15,codepage=850,noauto 0 0
none /mnt/cdrom2 supermount dev=/dev/hdd,fs=auto,ro,exec,--,umask=0,user,iocharset=iso8859-15,codepage=850,noauto 0 0
none /mnt/floppy supermount dev=/dev/hdb,fs=ext2:vfat,--,umask=0,iocharset=iso8859-15,sync,codepage=850 0 0
/dev/hda1 /mnt/windows vfat umask=0,iocharset=iso8859-15,codepage=850 0 0
none /proc proc defaults 0 0
/dev/hda7 /usr ext3 defaults 1 2
/dev/hda6 swap swap defaults 0 0
File: /etc/urpmi/urpmi.cfg:
Code:
Installation\ CD\ 1\ (x86)\ (cdrom1) removable://mnt/cdrom2/Mandrake/RPMS {
  hdlist: hdlist.Installation CD 1 (x86) (cdrom1).cz
  with_hdlist: ../../Mandrake/base/hdlist1.cz
  key-ids: 70771ff3
  removable: /dev/cdrom2
}

Installation\ CD\ 2\ (x86)\ (cdrom2) removable://mnt/cdrom2/Mandrake/RPMS2 {
  hdlist: hdlist.Installation CD 2 (x86) (cdrom2).cz
  with_hdlist: ../../Mandrake/base/hdlist2.cz
  key-ids: 70771ff3
  removable: /dev/cdrom2
}

Installation\ CD\ 3\ (x86)\ (cdrom3) removable://mnt/cdrom2/Mandrake/RPMS3 {
  hdlist: hdlist.Installation CD 3 (x86) (cdrom3).cz
  with_hdlist: ../../Mandrake/base/hdlist3.cz
  key-ids: 70771ff3
  removable: /dev/cdrom2
}

Installation\ CD\ 4\ (x86)\ (cdrom4) removable://mnt/cdrom2/Mandrake/RPMS4 {
  hdlist: hdlist.Installation CD 4 (x86) (cdrom4).cz
  with_hdlist: ../../Mandrake/base/hdlist4.cz
  key-ids: 70771ff3
  removable: /dev/cdrom2
}
(You can see where I changed cdrom to cdrom 2 in urpmi.cfg).

Can anyone offer any guidance as to what do next to try and fix this problem?

Last edited by Foxy; 07-18-2004 at 12:14 PM.
 
Old 07-18-2004, 12:50 PM   #4
doug_s
Member
 
Registered: Apr 2004
Posts: 82

Rep: Reputation: 15
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.
 
Old 07-18-2004, 01:30 PM   #5
reddazz
LQ Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 77
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.
 
Old 07-18-2004, 02:25 PM   #6
XJNick
Member
 
Registered: Dec 2003
Location: Texas
Distribution: Mandriva, SuSE
Posts: 79

Rep: Reputation: 15
Hi,

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.

-Nick
 
Old 07-19-2004, 12:13 PM   #7
Foxy
Member
 
Registered: Jul 2003
Distribution: SuSE 9.1 Professional
Posts: 81

Original Poster
Rep: Reputation: 15
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?


Last edited by Foxy; 07-19-2004 at 12:18 PM.
 
Old 07-20-2004, 09:28 AM   #8
Foxy
Member
 
Registered: Jul 2003
Distribution: SuSE 9.1 Professional
Posts: 81

Original Poster
Rep: Reputation: 15
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!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mandrake:error installing packages masha Linux - Newbie 4 11-09-2004 07:42 AM
Trouble installing packages on Mandrake 10 PC Wizard Linux - Newbie 5 09-02-2004 07:50 PM
MAKE, installing source packages, etc...can someone explain this or at least... squirrels Linux - Newbie 16 06-14-2004 04:00 PM
error installing packages mandrake halestorm Linux - Newbie 4 02-25-2004 03:11 PM
installing packages Mandrake 8.1 RenaissanceMan Linux - General 7 12-31-2001 09:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 05:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration