LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-28-2005, 10:27 AM   #31
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31

I'd like to know how to burn a cd/dvd from the command line but I'm not aware of all the parameters, so I'll just have to stick with xcdroast for now. You simply use cdrecord from the command line, right?

A dialog box pops up every time I start the app which mentions the cdrecord.prodvd expired key. I'm looking into how to renew it now. Thanks.
 
Old 11-28-2005, 10:49 AM   #32
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Try this: growisofs -dvd-compat -Z /dev/scd0=filename.iso
 
Old 11-28-2005, 12:51 PM   #33
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
The manpage for growisofs is very short.
I only wanted to write one iso file to a cd, which I've already done, otherwise I'd give it a try. Now I'm trying to write a bunch of video files to a dvd.

However, I suppose I could just download all the debian-testing iso's and write them to a dvd.
 
Old 11-28-2005, 01:18 PM   #34
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
Kind of depends what kind of video you wish to burn. Here's some more reading
http://lvempeg.sourceforge.net/DVD-Authoring
http://dvd.chevelless230.com/
http://www.tappin.me.uk/Linux/dvd.html

Also from the dvd+rw-tools page:
Q. Is there a GUI front-end available for dvd+rw-tools?
A. K3b, version 0.10 and later, and nautilus-cd-burner, version 0.5.1 and later, are both hiding growisofs behind their pretty buttons and menus:-) Keep in mind that those are not directly related to dvd+rw-tools development effort and GUI users should turn elsewhere for end-user support. Oh! dvd+rw-tools 5.10.x is a minimum requirement for GUI frontends...
 
Old 11-28-2005, 02:40 PM   #35
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Thanks, I'll have to look at the links you've referred me to.

It sounds like there's a way to tell xcdroast to use something other than prodvd but I'll have to look more into it to know for sure.

edit: Those look like very informative pages but I can safely skip all of them. The reason for this is because I don't have the need to play the dvd on a standalone player (I just want to get them off my hd and be able to watch them at a later time). I've tried transcoding video files before and my system (Celeron 733) is faaaar too slow. I just want to put the regular avi files on a dvd (no fancy menus, bla bla bla). However, at the top of one of the pages it mentions a 'dvdrecord', which looks a lot like what I'm searching for... maybe.

Last edited by verbose; 11-28-2005 at 02:49 PM.
 
Old 11-29-2005, 03:33 AM   #36
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
If you just want to burn them as a data dvd: growisofs -Z /dev/dvd -R -J /dir/with/movies/*
If you need to blank a dvd-rw first: dvdrecord -dev /dev/dvd -driver mmc_mdvd -v blank=fast

Or you can make scripts:
$ cat /usr/local/bin/blankdvdrw
#!/bin/sh
dvdrecord -dev /dev/dvd -driver mmc_mdvd -v blank=fast

$ cat /usr/local/bin/burndatadvd
#!/bin/sh
growisofs -Z /dev/dvd -R -J "$@"

$ ls -l /usr/local/bin/{blankdvdrw,burndatadvd}
-rwxr-x--- 1 root cdrom 55 Aug 14 22:19 /usr/local/bin/blankdvdrw
-rwxr-x--- 1 root cdrom 43 Nov 29 11:09 /usr/local/bin/burndatadvd

Then blank with: blankdvdrw
And burn with: burndatadvd /dir/with/movies/*
 
Old 11-29-2005, 04:54 AM   #37
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
'growisofs -Z /dev/dvd -R -J /dir/with/movies/*' is chugging along.

I'm also looking in the Linux Cookbook under 'Recording Data DVDs'.
They have this: 'growisofs -Z dev=1,2,0 -dvd-compat -udf -R -J -v /foo/bar'


edit: Hmm, unable to mount the dvd I just burned.

$ sudo mount -t udf /dev/dvd /mnt/dvd
mount: wrong fs type, bad option, bad superblock on /dev/dvd,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

Last edited by verbose; 11-29-2005 at 05:09 AM.
 
Old 11-29-2005, 05:27 AM   #38
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
-udf you can use, otherwise you mount with -t iso9660, note that for >2GB -udf is recommended
-dvd-compat you didn't want for just a data dvd
dev=1,2,0 is just from the scsibus, you can use /dev/dvd
/foo/bar would just burn the file bar in the dir /foo/
-v is for verbose output to konsole
 
Old 11-29-2005, 06:34 PM   #39
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Any insight into why my dvd isn't mounting? I'm only able to mount movie dvd's (video_ts, audio_ts) so far.
 
Old 11-30-2005, 02:11 AM   #40
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
It won't mount with -t iso9660 either? Hmm, works for me with the same commands.
The dir which you point growisofs to should also have small enough files so they fit the burned dvd.
 
Old 11-30-2005, 08:42 AM   #41
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
Yeah, it doesn't work with -t iso9660 either. I think there's ~4.3GB of files on the dvd and it's a 4.7GB dvd.
 
Old 11-30-2005, 12:59 PM   #42
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
All I can think of is that the filesystem gets confused if you write more than 2gb with iso9660. Try blanking the disc and burning with udf. Meaning, I hope you're testing with rw's.
 
Old 11-30-2005, 01:08 PM   #43
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
I'll have to try that later. I am testing with RW's.
 
Old 12-02-2005, 03:00 AM   #44
verbose
Member
 
Registered: Aug 2004
Distribution: deb lenny 2.6.21-amd64
Posts: 320

Original Poster
Rep: Reputation: 31
It turns out I am now able to mount the dvd. I don't know what was going on before.

I was just wondering if there is a way to test the validity of a dvd. I ask because my old, 7-year old HP cd-rw drive always bungled up the cd's so that when I tried them again, months later, it was as if I never wrote to them. I know the LG 4163B is an excellent drive and far superior to my old one, but I'm just curious if such a thing exists.

I used your 'blankdvdrw' script to erase the data on the dvd. I only had to modify two things: commands are denoted by '=' instead of '-' and I had to specify the scsi target rather than the device /dev/dvd (dvdrtools -v = 0.2.1-1).

Code:
#!/bin/sh
dvdrecord dev=0,0,0 driver=mmc_mdvd -v blank=fast

Thanks for your help, once again.
 
Old 12-02-2005, 06:25 AM   #45
makuyl
Senior Member
 
Registered: Dec 2004
Location: Helsinki
Distribution: Debian Sid
Posts: 1,107

Rep: Reputation: 54
I don't know of a program to test a drive but you can burn an iso file and check the result:
"dd if=/dev/cdrom of=/dev/null bs=2k" shouldn't return any unreadable blocks
"dd if=/dev/cdrom | md5sum" should match the value of the original md5sum of the iso file which you get with:
"md5sum filename.iso"
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
CDROM mounting problem => /dev/cdrom is not a valid block device Vizy Linux - Hardware 8 11-04-2010 04:46 PM
I cannot access EITHER CD drive! And there's no /dev/hdc or /dev/hdd or /dev/cdrom! Dmalic Linux - Hardware 13 11-18-2005 07:11 PM
accidentally removed /dev/cdrom verbose Linux - General 18 10-26-2005 03:44 PM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM
removed CDROM drive, now CD-RW not accessible tina Linux - Software 5 02-17-2001 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:33 AM.

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