LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   how do I copy the Ubuntu install cdrom via console? (https://www.linuxquestions.org/questions/ubuntu-63/how-do-i-copy-the-ubuntu-install-cdrom-via-console-733792/)

joseph2020 06-18-2009 12:26 AM

how do I copy the Ubuntu install cdrom via console?
 
After 2 days and 6 possibly ruined CDs I am ready to try to copy my Ubuntu install cdrom by using commands from the console.

I have tried Brasero and K3b with the same failure results. I have a brasero.toc and brasero.toc.bin files on my disk, but brasero.toc will not burn to a cd. As always I am completely lost and frustrated as to why this isn't working.

This should be easy...copy cd ISO image to hard disk, burn ISO image from hard disk to a blank CD. How hard can that be?

Quote:

Giving up on the GUI...can anyone tell me in a very simple way how to copy a cd using the CLI.
Please, no additional GUI cd copier suggestions. I want to learn the commands via console. Thanks in advance.

micxz 06-18-2009 12:57 AM

You could try:
Code:

dd if=/dev/cdrom of=image.iso
Then you could mount that iso:
Code:

mkdir /mnt/iso
mount -o loop,ro -t iso9660 ./image.iso /mnt/iso

Then when you want to burn it:
Code:

cdrecord -v speed=12 dev=0,0,0 -data image.iso
you may want to adjust the speed etc. if you need to erase before burning add "blank=fast".

Hope this helps'

micxz 06-18-2009 01:29 AM

Just had a thought K3b I think uses cdrecord. I hope it works.

knudfl 06-18-2009 08:57 AM

*
K3b : Toolbar : Tools > > "Burn CD Image.."
or "Burn DVD ISO Image.."

.....

joseph2020 06-18-2009 05:02 PM

Thank you for your responses

micxz 06-18-2009 05:05 PM

Your welcome' hit that thank button' I need one then I can live up to your rep'

salasi 06-18-2009 07:21 PM

Please excuse me; I can't resist.

Quote:

Originally Posted by joseph2020 (Post 3577895)
How hard can that be?

err, well, so far, it has proved just too hard for you, how hard did it have to be ;)

Quote:

Please, no additional GUI cd copier suggestions. I want to learn the commands via console.
In spite of this being exactly what you didn't ask for, here is a k3b/gui suggestion; if you don't like what k3b is doing for you, you can always look at the command line that it issued and modify it.

Also, in cases like this, when you don't need archival permanence and things might go wrong, the use of RW media (or DVD-RAM) is indicated.

joseph2020 06-19-2009 01:09 AM

micxz, a special thanks for the console commands. That is what I will most likely use in the end. Certainly it would be easier to use a GUI based copier, but so far, not good.

knudfl, thanks for your reply.
Code:

K3b : Toolbar : Tools > > "Burn CD Image.."
or "Burn DVD ISO Image.."

like before, that almost worked:

Quote:

K3bDataTrackReader
-----------------------
reading sectors 0 to 357795 with sector size 2056. Length: 357796 sectors, 735628576 bytes.
using buffer size of 63 blocks.
Read a total of 357796 sectors (735628576 bytes)

Used versions
-----------------------
cdrecord: 1.1.8

cdrecord
-----------------------
/usr/bin/wodim: Operation not permitted. Warning: Cannot raise RLIMIT_MEMLOCK limits.
scsidev: '/dev/scd0'
devname: '/dev/scd0'
scsibus: -2 target: -2 lun: -2
Error trying to open /dev/scd0 exclusively (Device or resource busy)... retrying in 1 second.
Thanks again

micxz 06-19-2009 02:09 AM

your welcome' RLIMIT_MEMLOCK part I think is just a warning ('ulimit -a | grep locked' to see your users limit) it's the error part that's stopping your burn. I don't know how to debug that error. I hope you don't have too many "coasters".

joseph2020 06-20-2009 12:13 AM

micxz
Quote:

You could try: dd if=/dev/cdrom of=image.iso
That almost worked...but the .iso file gets too big. The original cd is 693 MB, the ISO is 725+ (see below). My CD cannot go over 700.

Quote:

joe@joelinux:~$ ls -l u*
-rw-r--r-- 1 joe joe 727306240 2009-06-19 21:33 ubuntu81.iso
BUt, it did copy the CD to ISO on /home, and after adjusting write speed it did try to burn to a CD, so that's 2 big steps forward. Just need to get rid of that extra 30 MB and it will probably work fine. Thanks again.

micxz 06-20-2009 01:37 AM

Hum maybe some hard links didn't get translated in the iso format. I'm guessing. You could try to over burn or remove some files you don't need and make the iso agian. I'm not sure how to approach this.

or use a dvd

joseph2020 06-20-2009 04:22 PM

micxz

Quote:

You could try to over burn or remove some files you don't need and make the iso agian. I'm not sure how to approach this.

or use a dvd
The cd im trying to clone is the Ubuntu install CD and it fits on 693MB. So, there should be no need to remove any files, and even if I knew which ones aren't necessary, I wouldn't know how to delete files from a CD-R. I can't use a DVD as I only have a cdrw, and don't see a dvd in my near future.

I will try a few more times and then resign myself to not having a backup. At the rate this is going, Ubuntu 9.1 will be out before I get this one cloned anyway. Thanks again

someone Awesome 06-20-2009 05:14 PM

this might be a silly suggestion but you could download the iso from ubuntu's website.

vmelkon 06-20-2009 05:21 PM

Quote:

Originally Posted by joseph2020 (Post 3580232)
micxz


That almost worked...but the .iso file gets too big. The original cd is 693 MB, the ISO is 725+ (see below). My CD cannot go over 700.



BUt, it did copy the CD to ISO on /home, and after adjusting write speed it did try to burn to a CD, so that's 2 big steps forward. Just need to get rid of that extra 30 MB and it will probably work fine. Thanks again.

I think that iso files aren`t exact images. I think they contain some extra data, perhaps error correction code. Or maybe I`m thinking of some other image format.
Personally, I use 700MB CD-R. I wish I could use my 650MB CD-RW but that is impossible.

micxz 06-20-2009 10:41 PM

- Someone Awesome has got a point here get a fresh iso.
- I believe there are bigger cdr;s available (800MB) I don't know how reliable they are.
- You can't delete from the cd but you can copy the files/folders remove stuff you don't want and make an iso with mkisofs I wouldn't suggest this unless you know what's what'

Does anyone know why an iso would be bigger than the cd it came from?


All times are GMT -5. The time now is 01:54 AM.