Mombu the GNU Linux Forum sponsored links

Go Back   Mombu the GNU Linux Forum > GNU_Linux > moving CD's to disk
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 11th April 04:57
eric
External User
 
Posts: 1
Default moving CD's to disk



I used "dd if=/mnt/cdrom of=cd1.iso" to copy my install each
of my PowerPack CD's to disk as cd1.iso cd2.iso etc
then i made a directory for each one cd1 cd2 cd3 etc
then mounted them "-t is09669" "-o loop,ro" cd1.iso on
cd1 cd2.iso on cd2 etc so far so good.
In Mandrake control Center i added "Custom" media and told it
the location was cd1 and to "create media for whole distribution"
from there which it happily did. so now i have all 7 CD's in my
media list But - for some reason, i cant install anything from them, it
always fails
Medium 1 is:
file://extra/PowerPack_7CD_Media/cd1/media/main
.../..//media/media_info/synthesis.hdlist1.cz
Medium 2 is:
file://extra/PowerPack_7CD_Media/cd1/media/main2
.../..//media/media_info/synthesis.hdlist2.cz
etc
But notice its all pointing to directory cd1,
I tried changing #2 to cd2 but that fails and wont update the media
Where did i go wrong?

Thanks
Eric
  Reply With Quote


  sponsored links


2 11th April 15:01
External User
 
Posts: 1
Default moving CD's to disk



No, not so good. You apparently told it first to mount /dev/cdrom or
something like that to
/mnt/cdrom. At that point you have a valid set of files in
/mnt/cdrom.When you told it to dd, it simply copied those files to the
single file cd1.iso, and did NOT make and iso. If you want to make an
iso of
them, use mkisofs. Or do
dd of=/dev/cd
NOT /mnt/cd
If what you want to do is to copy the files to your disk, just copy
them from /mnt/cdrom

mount /dev/cdrom /mnt/cdrom
rsync -av /mnt/cdrom/ /2007/cd1
etc.
Now you can use those as directories.
/2007/cd1/media/main/release
is the location of the files
/2007/cd1/media/media_info/hdlist-cd1.cz
is the hdlist file, etc.
(Check that those are actually the names used in your distro.
  Reply With Quote
3 11th April 22:22
eric
External User
 
Posts: 1
Default moving CD's to disk


when i mount each iso i created (they seem to be iso images) and then do an
ls * i see this:
# ls *
cd1.iso cd3.iso cd5.iso cd7.iso umountcds.sh*
cd2.iso cd4.iso cd6.iso mountcds.sh*

cd1:
autorun.inf export isolinux/ MD5SUM README.txt
COPYING index.htm lang/ media/ release-notes.txt
default.xbe install/ LICENSE.txt misc/ VERSION
doc/ INSTALL.txt linuxboot.cfg pkg-2006.0.idx

cd2:
Boot/ media/

cd3:
Dkms/ Firmware/ Intel/ media/ Modules/ Plugins/

cd4:
media/

cd5:
media/

cd6:
media/

cd7:
media/
#
------------
mountcds.sh contains this (I used it to mount the above:
for (( i=1; i<8; i++ ))
do
mount -t iso9660 ./cd$i.iso /extra/PowerPack_7CD_Media/cd$i -o loop,ro
done

Is that wrong? It sems to look right.
Thanks
Eric
  Reply With Quote
4 11th April 22:23
faeychild
External User
 
Posts: 1
Default moving CD's to disk


I think 'dummys' point is- if you 'dd" a mounted dev ( /mnt/cdrom) you get
a file system which is not an '*.iso", it's a file system interpreted by
the kernel / driver.

If you "dd" an unmounted dev (/dev/hdxx) you get raw data, block by block,
which is an "*.iso"

If this is then mounted with loop, it's interpreted as a file stystem again.

This is my dim understanding, I will be corrected I expect.


--
regards faeychild
(Registered GNU/Linux user #374302)
  Reply With Quote
5 12th April 00:58
eric
External User
 
Posts: 1
Default moving CD's to disk


ok, its a typo on my part, i went back and tried some things, i apparently
never did the if=/mnt/cdrom (although that was what was in my head when i
wrote the post) or i would have gotten 0 byte files so i had to have used
dd if=/dev/cdrom My Bad - brain wasnt fully engaged then i guess.
so, the end result is, these are and always were valid iso files and its not
the problem.
Now, why cant i install software from them? especially when using cd1.iso
mounted on directory cd1 I can use that to create the distribution media(ie
it reads and fully understands cd1 but it hasnt a clue how to get to cd2 or
if i modify the entry to point to cd2 it fails still
Trying to add cd1 media alone:
Unable to add medium, errors reported:
...copying failed
Copying what? What is it looking for?
Thanks
Eric
  Reply With Quote
6 12th April 00:58
eric
External User
 
Posts: 1
Default moving CD's to disk - fixed!


in the path to the hdlist.cz you need to point to the location on cd1
so the entry for cd2 looks like this:
file://extra/PowerPack_7CD_Media/cd1/media/main2
../../../cd1/media/media_info/synthesis.hdlist2.cz
Eric
  Reply With Quote
7 12th April 00:58
big yellow hats
External User
 
Posts: 1
Default moving CD's to disk - fixed!


Quoth Eric :

Are you planning on doing full network installs to other machines from
this system? If so maybe you need to keep heading down this road but
if not...

Why not do what I do?
1)Open up the media dir on each CD and copy all the RPMs to
~/install_CD_RPMs (call it what you will)
2) ]$ cd ~/install_CD_RPMs 3) ]$ genhdlist
4) ]$ md5sum hdlist.cz synthesis.hdlist.cz > MD5SUM
5) Now it's ready for mcc and gets added as a local source without
balking.
6) Delete the old CDROM sources.
--
The Man in the Yellow Hat
Linux with a monkey, since 1996.
  Reply With Quote
8 12th April 00:58
james j. dines
External User
 
Posts: 1
Default moving CD's to disk - fixed!


<snip>

At install time the installer offers the option to copy everything to
the hard drive and install from there, leaving it in tact at the end of
the install.

Is there some reason why the simple, GUI installer based method isn't
the best way to do this?
--
****** Warning - Highly US-Centric .sig approaching! ******
The only way to differentiate "The War on Terrorism"
from "The War on Drugs" is to measure the amount of piss
on the Founding Fathers graves. - James J. Dines
  Reply With Quote
9 12th April 18:17
eric
External User
 
Posts: 1
Default moving CD's to disk - fixed!


Excellent idea! I'm working on implementing this now - thanks
It will save a small bit of space over the other way i was doing it too.
Eric
  Reply With Quote
10 12th April 18:17
eric
External User
 
Posts: 1
Default moving CD's to disk - fixed!


" Unable to add medium, copying failed" Whats this mean? copy what to where?
Thanks
Eric
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666