PDA

View Full Version : [SOLVED] Why can't I install and use mkisofs, cdrecord instead of genisoimage and wod


mytwobears
July 6th, 2008, 11:22 PM
For the better part of today, I have been trying to install and use cdrtools and the various elements of it, ie,mkisofs, cdrecord etc. However, it has become abundantly clear to me that this is impossible, at least for the average user.

Clearly, Hardy Heron has been coded to disallow the user the choice to use these tools. Every time I install these programs, whether from the Ubuntu repo. or compiled from source, I am instructed to install genisoimage and wodim instead. The cdrtool programs have been installed in the optional directory by default but Ubuntu keeps telling me that they are not installed and I should install genisoimage and wodim.

This is troubling; I came to linux, open source, and Ubuntu because of the freedom and control espoused, but this is clearly a restrictive and oppressive practice, disallowing the user the ability to choose what packages she wants to use in the operating system she has installed on her computer.

I have searched through the forums and the internet and have tried a number of procedures but have not been able to do two simple things: (1) remove genisoimage and wodim without removing half of my entire system and (2) install the current version of cdrtools and have Ubuntu recognize that they are installed and use them as backends for programs and from the terminal.

Please let me know if there is some way I can do this and please provide detailed directions on how. Thank you so much for your time and help.

mytwobears
July 11th, 2008, 09:34 PM
OK, I solved this issue myself. I had to remove all the hard and sym links that linked the genisoimage and wodim files to mkisofs and cdrecord, then I deleted the files that i removed the links from (ie, genisoimage, cdrecord and mkisofs) from the bin folder, then I moved the mkisofs and cdrecord files that had been installed by default in the optional folder to the bin folder. This allowed me to use mkisofs without it calling genisoimage. To use mkisofs and cdrecord as the defaults in Brasero, I had to delete the genisoimage and wodim files from the Brasero plugin folder.

I was able to make an iso file using mkisofs and use Brasero to burn the image to a blank CD without any errors and I can watch the CD in both Ubuntu and Windows.

Hope this helps someone :).

IgnorantGuru
August 8th, 2008, 10:10 PM
I think it is horrible the way they have replaced the genuine cdrecord with the buggy garbage called "wodim". It is creating an unending list of bugs (which are going completely unaddressed). Read about this issue here... http://cdrecord.berlios.de/old/private/linux-dist.html

Politics, and obviously Debian/Ubuntu is taking the fascist road.

I can't find any repository for Kubuntu Hardy cdrtools - any help? And if you could write a little step-by-step guide on how to replace wodim I would appreciate it. Thanks to a wodim bug I can't burn any CDs now.

IgnorantGuru
August 8th, 2008, 11:29 PM
Answering my own question, here is what worked for me. Use at your own risk.

Replacing wodim with cdrtools

The issue:
http://cdrecord.berlios.de/private/linux-dist.html

"If you are not running the original software, get recent original software from the "Download recent" or from the "Download latest" location. Unpack, compile by running "make" and install. Make sure that all programs that send (SCSI) commands to CD/DVD/Blu-Ray drives are installed to be suid root.

If you are running cdrtools frontends like k3b and others and do not like to replace these programs with original versions, you should remove files like /usr/bin/wodim, /usr/bin/genisoimage, /usr/bin/icedax, /usr/bin/readom and replace them by links to the original software."


Download latest cdrtools from http://cdrecord.berlios.de/private/linux-dist.html
Unpack
CD to the directory cdrtools is in.
sudo make
sudo make install
sudo make clean

Files are installed to /opt/schily
(you may want to change their ownership to root:root)

Move the following files (some will be links) from /usr/bin to a junk folder...
cdrecord
genisoimage
mkisofs
readom
wodim

Create links:
/usr/bin/cdrecord --> /opt/schily/bin/cdrecord
/usr/bin/genisoimage --> /opt/schily/bin/mkisofs
/usr/bin/mkisofs --> /opt/schily/bin/mkisofs
/usr/bin/readom --> /opt/schily/bin/readcd (correct?)
/usr/bin/wodim --> /opt/schily/bin/cdrecord
/usr/bin/readcd --> /opt/schily/bin/readcd
/usr/bin/mkhybrid --> /opt/schily/bin/mkhybrid
/usr/bin/cdda2wav --> /opt/schily/bin/cdda2wav


Related Links:
http://ge.ubuntuforums.com/showthread.php?p=5216386#post5216386
https://bugs.launchpad.net/ubuntu/+source/k3b/+bug/149076
https://bugs.launchpad.net/ubuntu/+source/cdrkit/+bug/226650

IgnorantGuru
August 9th, 2008, 01:45 AM
Someone asked me for a more detailed step-by-step so I will post it here. Please note that this is a brute force method for replacing wodim - your package manager will not be aware of the change and subsequent updates may break the software (though repeating these steps should restore it). However, since the Ubuntu folks refuse to release a package for cdrtools, this is one way to work around that.

# Open a terminal window (Konsole in Kubuntu) and enter
# the following commands

# install compiler tools
sudo apt-get install build-essential

# Make sure you're in the home folder
cd ~

# Make a working folder and change to it
mkdir cdrtools
cd cdrtools

# Download latest cdrtools from http://cdrecord.berlios.de/private/linux-dist.html
wget ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-beta.tar.gz

# Unpack
tar xzf cdrtools-beta.tar.gz

# CD to the directory cdrtools is in.
cd cdrtools-2.01.01

# Compile and install
sudo make
sudo make install
sudo make clean

# Files are installed to /opt/schily
# (you may want to change their ownership to root:root)
sudo chown root:root /opt/schily/bin/*

# Move the following files (some will be links) from /usr/bin to a junk folder...
sudo mkdir /opt/schily/replacedfiles
sudo mv /usr/bin/cdrecord /opt/schily/replacedfiles
sudo mv /usr/bin/genisoimage /opt/schily/replacedfiles
sudo mv /usr/bin/mkisofs /opt/schily/replacedfiles
sudo mv /usr/bin/readom /opt/schily/replacedfiles
sudo mv /usr/bin/wodim /opt/schily/replacedfiles

# Create links:
sudo ln -s /opt/schily/bin/cdrecord /usr/bin/cdrecord
sudo ln -s /opt/schily/bin/mkisofs /usr/bin/genisoimage
sudo ln -s /opt/schily/bin/mkisofs /usr/bin/mkisofs
sudo ln -s /opt/schily/bin/readcd /usr/bin/readom
sudo ln -s /opt/schily/bin/cdrecord /usr/bin/wodim
sudo ln -s /opt/schily/bin/readcd /usr/bin/readcd
sudo ln -s /opt/schily/bin/mkhybrid /usr/bin/mkhybrid
sudo ln -s /opt/schily/bin/cdda2wav /usr/bin/cdda2wav

# Remove working folder
cd ~
sudo rm -r cdrtools

etfloyd
September 3rd, 2008, 06:14 PM
Thank you! I followed your step-by-step and the froze the cdrkit-based packages. All the bugs and problems promptly went away.

This has been an interesting debugging journey. The cdrkit tools (wodim, et al) on Hardy have bugs that don't show up until later and, in my case, if I hadn't had an XP system to test on, would have resulted in a huge waste of time, energy, money, and good will. And, the bugs have been known for quite some time and have not been addressed in Hardy. I don't trust cdrkit any more. I understand that there are strong personalities involved and licensing subtleties that matter to distribution support. However, for my personal use, I just really couldn't care less about any of that.

Bottom line, I need for the tools to work reliably; cdrkit doesn't, cdrtools does. If there are licensing issues, well, that's what the "free nonfree" good/bad/ugly repositories are all about, right? I'm marginally Linux-competent, enough to get cdrtools working, with your guidance. What about the poor Windows user trying out Ubuntu for the first time?

There's absolutely no excuse for not packaging cdrtools and making them available in an alternative repository. The average user should have a choice.

coldcoffee
September 28th, 2008, 06:26 AM
Thank you ignorantguru. I followed your little tutorial and it went off with no hitches. And I did a little googling and readom and readcd are in fact the same.

I have used ubuntu for about a year now and love it. So far this is the only complaint I have, this issue here. But at least it is less than the issues I have with other operating systems. I wish they would find it in their heart to give us the choice without having to do these work arounds.

Thank you very much. I for one am very greatful.

IgnorantGuru
September 30th, 2008, 09:03 AM
Glad it worked for you coldcoffee. I agree that the positives of Ubuntu far outweigh the negatives, but we have to complain about something. :) It's also important to remind the devs to leave users in control of their systems, as much as the devs are tempted to centralize control. I don't mind their changing the default cd burner for the dist, etc., but when they begin burning books there's a problem.

Pidgin
October 4th, 2008, 05:52 AM
Someone asked me for a more detailed step-by-step so I will post it here. Please note that this is a brute force method for replacing wodim - your package manager will not be aware of the change and subsequent updates may break the software (though repeating these steps should restore it). However, since the Ubuntu folks refuse to release a package for cdrtools, this is one way to work around that.

# Open a terminal window (Konsole in Kubuntu) and enter
# the following commands

# Make sure you're in the home folder
cd ~

# Make a working folder and change to it
mkdir cdrtools
cd cdrtools

# Download latest cdrtools from http://cdrecord.berlios.de/private/linux-dist.html
wget ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-beta.tar.gz

# Unpack
tar xzf cdrtools-beta.tar.gz

# CD to the directory cdrtools is in.
cd cdrtools-2.01.01

# Compile and install
sudo make
sudo make install
sudo make clean

# Files are installed to /opt/schily
# (you may want to change their ownership to root:root)
sudo chown root:root /opt/schily/bin/*

# Move the following files (some will be links) from /usr/bin to a junk folder...
sudo mkdir /opt/schily/replacedfiles
sudo mv /usr/bin/cdrecord /opt/schily/replacedfiles
sudo mv /usr/bin/genisoimage /opt/schily/replacedfiles
sudo mv /usr/bin/mkisofs /opt/schily/replacedfiles
sudo mv /usr/bin/readom /opt/schily/replacedfiles
sudo mv /usr/bin/wodim /opt/schily/replacedfiles

# Create links:
sudo ln -s /opt/schily/bin/cdrecord /usr/bin/cdrecord
sudo ln -s /opt/schily/bin/cdrecord /usr/bin/cdrecord
sudo ln -s /opt/schily/bin/mkisofs /usr/bin/genisoimage
sudo ln -s /opt/schily/bin/mkisofs /usr/bin/mkisofs
# Is the following correct (is readcd a version of readom??)
sudo ln -s /opt/schily/bin/readcd /usr/bin/readom
sudo ln -s /opt/schily/bin/cdrecord /usr/bin/wodim
sudo ln -s /opt/schily/bin/readcd /usr/bin/readcd
sudo ln -s /opt/schily/bin/mkhybrid /usr/bin/mkhybrid
sudo ln -s /opt/schily/bin/cdda2wav /usr/bin/cdda2wav

# Remove working folder
cd ~
sudo rm -r cdrtools

Errors are generated in the process of compiling. Do I need some extra packages to compile the source?
That's perhaps a silly question. But I am just a newbie.
Thanks!

Pidgin
October 4th, 2008, 06:02 AM
I think there is another way to install cdrtools. There is a team called the Ubuntu Burning Team. Check the page below:

https://launchpad.net/~ubuntu-burning/+archive

They have provided apt sources of cdrtools. I added that to my sources and attempted to install the package mkisofs. The result was that the package genisoimage replaced mkisofs. Then I tried to uninstall the package genisoimage. It was surprising that the system told me that the package ubuntu-desktop would also be uninstalled, thus preventing me to get rid of the package genisoimage. In that situation, the packages provided by the Ubuntu Burning Team seems unusable.

Does anyone have a solution?

Thanks!

IgnorantGuru
October 4th, 2008, 08:20 AM
Errors are generated in the process of compiling. Do I need some extra packages to compile the source?
That's perhaps a silly question. But I am just a newbie.
Thanks!

I would try adding build-essential...
sudo apt-get install build-essential

I can't think what else it would be. If that doesn't do it then you will need to examine the errors to see what you're missing, or post the error here.

Pidgin
October 4th, 2008, 08:30 AM
I would try adding build-essential...
sudo apt-get install build-essential

I can't think what else it would be. If that doesn't do it then you will need to examine the errors to see what you're missing, or post the error here.

Thank you. I will have a try.

Pidgin
October 4th, 2008, 09:50 PM
It works! After installing the package build-essential, I successfully compiled cdrtools and replaced cdrkit. Instead of creating links, I copied those files to /usr/bin/.

I think the files that should be replaced are:


btcflash
cdrecord
devdump
genisoimage
isodump
isoinfo
isovfy
mkisofs
readom
wodim


Move those files out to another place. And then copy files from /opt/schily/bin/ to /usr/bin.

Finally just make these links:


genisoimage -> mkisofs
wodim -> cdrecord
readom -> readcd

danielrb
October 9th, 2008, 12:28 PM
I'm trying to install cdrtools but it seems that ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-beta.tar.gz is not available, can you helpme?

IgnorantGuru
October 10th, 2008, 12:50 AM
I'm trying to install cdrtools but it seems that ftp://ftp.berlios.de/pub/cdrecord/alpha/cdrtools-beta.tar.gz is not available, can you helpme?

I just tried it and it's available. If you can't reach that site then maybe you can find it elsewhere.
Current version is cdrtools-2.01.01a45.tar.gz (2MB)

editrix
November 18th, 2008, 03:29 PM
As I understand it, ubuntu-desktop is just a metapackage, and can be safely removed without breaking anything. If you search remove ubuntu-desktop at uboontu.com (last link in my sig) you'll see lots of (unnecessary) worries about it.

And, if you're brave enough to believe me ;-) then could you please post and tell us if the install went okay, anf if you can now burn CDs?

Dawa
November 24th, 2008, 01:05 PM
delete