Click to See Complete Forum and Search --> : Cd burning files extensions


alski
02-10-2004, 08:17 PM
This may be a little off the wall, but, when burning files to a CD in Linux, must the file extensions be ISO??? the reason I asked, is that every sample of a burning command I have seen, seems to end with ISO.

Icarus
02-10-2004, 08:52 PM
I don't think it's a rule, but I know some software needs the .iso to burn one (eRoaster I know is one)

But I think you should be able to burn one from the command line as long as it is a valid ISO...never tried though

cdrecord -v -pad speed=4 dev=0,0,0 imagefile

alski
02-10-2004, 09:05 PM
Hi Mahdi,
Thanks for the reply. What I did was create a simple doc file form Open office and save it as cdburner.tst, then it addes swx on it. So I then used a command similar to the one you have posted, it seemed to have written the file to the CD, however, when trying to mount the cdrom1 and view the contents, Nothing occurs. I ahve researched and have seen that possibly ISO 9660 might have to be in the mount command:
Example:
mount -t iso9660 /dev/cdrom1/cdrom1 or
mount -t iso9660 /dev/cdrom1/mnt/cdrom1.

When I look at my etc/fstab file, there is reference to ISO9660 next to the cdrom1 entry.
Funny, did not realize that this was so difficult. I am sure is my LINUX knowledge at this point, when is about 5months old.
Thank you

bwkaz
02-10-2004, 09:16 PM
.iso files are just bit-for-bit images of CD filesystems. So all that cdrecord needs to do is get the drive to write those bits to the actual disk. .iso images are the easiest to burn, and I think that's why all the howto's use it.

Either that, or cdrecord just plain won't burn anything else. With your example, if you used cdrecord only (not a burning program), cdrecord would not have put a filesystem on the CD.

hardcore
02-10-2004, 09:21 PM
it looks like you're trying to mount things wrongly.

try this format (note spaces)

mount /dev/cdroms/cdrom0 /mnt/cdrom

for substituions try:

/dev/cdroms/cdrom1

or if all else fails:

/dev/ide/host0/bus1/target0/lun0/cd /dev/ide/host0/bus1/target1/lun0/cd

These all depend on how you have your hardware setup.

alski
02-10-2004, 09:32 PM
Hi Hardcore,
With your example for mount, I already have a DVD player which is cdrom, sthe Cd burner is CDROM1. Do I still use /dev/cdroms/cdrom1 ?? Or
dev/cdrom1/cdrom1
Thanks

hardcore
02-10-2004, 09:38 PM
it should be /dev/cdroms/cdrom1
to be sure,

ls -l /dev/cdroms

and make sure that cdrom1 is listed.

alski
02-11-2004, 10:56 AM
Cool, now I am cooking. Ok I placed the cd in the drive.
I then did:
mount /dev/cdrom1 /mnt/cdrom1
The drive got mounted,
I then did a LS and the files I burned were displayed. Amazing----

OK one last item, since the CD Media I have are CR-R's,
and may have several files to burn, how does the CD get closed out?? Ok, I bet, you create a directory, place all files in this directory to be burned, then put the entire directory on the CD. Am I close??

Thanks..

alski
02-11-2004, 11:59 AM
Not sure why, but it seems when I am doing the LS command, I am getting a display from my /home directory. I though it was coming from the CD, seems not. It doe snot look like afterall, that the dive is getting mounted. WHne doing the mount /dev/cdrom1 /mnt/cdrom1, it says I am missing the File system.What exactly does this mean??

alski
02-11-2004, 12:50 PM
Hardcore,
ok, itried another blank CD.The mount apparntly was dome auto when Iput in the CD. I believe I wrote a test doc file to he CD, however, cannot seem to find out using the LS command why I cannot display the CD contents. Also, trying to use :
mount /mnt/cdrom1--I receive:

mount: wrong fs type, bad option, bad superblock on /dev/cdrom1,
or too many mounted file systems.
At this point, I cannot really find out if anything was writtten to the CD. I have tried various manual Mount commands, but nothing seems to work.
Thanks

mdwatts
02-11-2004, 02:10 PM
Originally posted by alski

mount: wrong fs type, bad option, bad superblock on /dev/cdrom1,
or too many mounted file systems.


Do you have scsi emulation enabled on that device?

Please post your /etc/fstab and the results from

ls -al /dev/cdrom

ls -al /dev/cdrom1

mdwatts
02-11-2004, 02:18 PM
Now don't forget about the JL forum search feature as most of those errors messages have been asked and answered many times already.

Search results for 'wrong type bad option bad superblock' (http://justlinux.com/forum/search.php?s=&action=showresults&searchid=881081&sortby=lastpost&sortorder=descending).

It helps to save us from having to repeat ourselves.

alski
02-11-2004, 02:52 PM
Ok here is the Fstab:

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
Hope you can decifer the above.

Also:

[root@localhost root]# ls -al /dev/cdrom1
lrwxrwxrwx 1 root root 8 Feb 10 11:26 /dev/cdrom1 -> /dev/hdd

mdwatts
02-11-2004, 02:59 PM
Did you find anything at all to help in those search results I posted?

That error could be due to a few reasons and it would be best if you had a look through those search results to see if any actually pertain to your problem. Check those first and then post back if you haven't figured it out.

alski
02-11-2004, 04:02 PM
Hi,
Yes I have researched JL and Google. I cannot seem to put this all together.
Does my FSTAB seem ok?

mdwatts
02-11-2004, 04:17 PM
Originally posted by alski

Does my FSTAB seem ok?

That would depend on what /dev/cdrom and /dev/cdrom1 are symlinked from and if you are using scsi emulation on either or both cdrom's.

From mine (SuSE)

/dev/cdrecorder /media/cdrecorder auto ro,noauto,user,exec 0 0
/dev/cdrom /media/cdrom auto ro,noauto,user,exec 0 0
/dev/dvd /media/dvd auto ro,noauto,user,exec 0 0

# ls -al /dev/cdrecorder
lrwxrwxrwx 1 root root 3 Jan 3 09:21 /dev/cdrecorder -> sr0

# ls -al /dev/cdrom
lrwxrwxrwx 1 root root 3 Jan 3 09:21 /dev/cdrom -> hdc

# ls -al /dev/dvd
lrwxrwxrwx 1 root root 3 Jan 3 09:21 /dev/dvd -> hdc

Only my cdrw (hdd or sr0) has scsi emulation enabled.

alski
02-11-2004, 04:46 PM
ok so does this show that I have scsi emulation?

[root@localhost alski]# ls -al /dev/cdrom1
lrwxrwxrwx 1 root root 8 Feb 10 11:26 /dev/cdrom1 -> /dev/hdd
If not , can you be a little more specific as to how I find this out?
Thanks

mdwatts
02-11-2004, 04:57 PM
Locking this thread as I can't be bothered to post the same replies in two threads.