LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Tags used in this thread
Popular LQ Tags

Reply
 
Thread Tools
Old 09-01-2007, 12:50 AM   #1
cfgauss
LQ Newbie
 
Registered: Aug 2007
Distribution: Gentoo
Posts: 4
Thanked: 0
Cannot mount DVD-R produced by cdrecord


[Log in to get rid of this advertisement]
As part of a backup of my home directory I recorded to a DVD-R with dar
Code:
dar -v -c "/var/backups/dar-backups/home-foo-full" -R "/home/foo/" -w -s 4613734400 -p
-D -y -m 150 -Z "*.bz2" -Z "*.gz" -Z "*.jpg" -Z "*.tbz" -Z "*.tgz" -Z "*.zip" -E "cdrecord -sao
 -eject dev=/dev/hdc %p/%b.%n.%e" -X "*.dar" -X "*~" -X ".*~" -G "/var/backups/dar-backups/home-foo-full-cat"
rm /var/backups/dar-backups/home-foo-full.1.dar
The recording to the DVD-R seemed to go OK--the light on the device was lit and cdrecord gave these messages:
Code:
Starting to write CD/DVD at speed 4 in real SAO mode for single session.
Last chance to quit, starting real write    0 seconds. Operation starts.
Track 01: Total bytes read/written: 315970838/315971584 (154283 sectors).
Now I'd like to restore some files but I can't mount the DVD-R as root.
Code:
gauss:~# mount /mnt/cdrw
mount: block device /dev/hdc is write-protected, mounting read-only
mount: you must specify the filesystem type
/etc/fstab has the line
Code:
/dev/hdc /mnt/cdrw auto noauto,user,rw 0 0
I then tried
Code:
gauss:~# mount -t iso9660 /dev/hdc /mnt/cdrw
mount: block device /dev/hdc is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
Does anyone know how I can access the file home-foo-full.1.dar on the DVD-R?

Thanks.

Last edited by cfgauss; 09-01-2007 at 12:27 PM..
cfgauss is offline  
Tag This Post
Reply With Quote
Old 09-01-2007, 05:51 PM   #2
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254
Thanked: 0
What was the cdrecord line you used to record dar file?
kotnik is offline  
Tag This Post
Reply With Quote
Old 09-01-2007, 05:56 PM   #3
cfgauss
LQ Newbie
 
Registered: Aug 2007
Distribution: Gentoo
Posts: 4
Thanked: 0

Original Poster
Quote:
Originally Posted by kotnik View Post
What was the cdrecord line you used to record dar file?
The dar flag is
Code:
-E "cdrecord -sao -eject dev=/dev/hdc %p/%b.%n.%e"
which, when the dar variables %p, %b, %n, and %e expand, becomes
Code:
cdrecord -sao -eject dev=/dev/hdc /var/backups/dar-backups/home-foo-full.1.dar
cfgauss is offline  
Tag This Post
Reply With Quote
Old 09-01-2007, 05:59 PM   #4
kotnik
Member
 
Registered: Nov 2004
Location: Novi Sad, Serbia
Distribution: Debian, Slackware, Gentoo, openSuSE
Posts: 254
Thanked: 0
Well, you didn't use any filesystem on your DVD, so file was being directly burned.

You can't mount this DVD. There is no dar filesystem. If you want it, then get it:

cp /dev/hdc $HOME/backup-whatever.dar

Under Unix, everything is a file.
kotnik is offline  
Tag This Post
Reply With Quote
Old 09-01-2007, 06:25 PM   #5
cfgauss
LQ Newbie
 
Registered: Aug 2007
Distribution: Gentoo
Posts: 4
Thanked: 0

Original Poster
Quote:
Originally Posted by kotnik View Post
You can't mount this DVD. There is no dar filesystem. If you want it, then get it:

cp /dev/hdc $HOME/backup-whatever.dar
This helped immensely. But dar can't seem to read the file created.
Code:
# file *
home-foo-full.1.dar: dar archive, label "95e33c46 00000000 2a59" end slice
# dar -l home-foo-full
FATAL error, aborting operation
Reached end of file before all data could be read
Is there any way I can get dar to read this file so that I can restore from my backup?

Thanks.
cfgauss is offline  
Tag This Post
Reply With Quote
Old 09-01-2007, 09:33 PM   #6
osor
HCL Maintainer
 
Registered: Jan 2006
Distribution: (H)LFS, Gentoo
Posts: 2,434
Thanked: 24
Perhaps try reading the raw bytes from the DVD? For example, try
Code:
dd if=/dev/hdc of=$HOME/backup-whatever.dar bs=315971584
That number (315971584) came from your original post, detailing how many bytes were written to the disk in the first place.
osor is offline  
Tag This Post
Reply With Quote
Old 09-24-2007, 06:08 PM   #7
cfgauss
LQ Newbie
 
Registered: Aug 2007
Distribution: Gentoo
Posts: 4
Thanked: 0

Original Poster
I wasn't able to get the bytes off the backup DVD-R. I've changed my backup strategy to use mkisofs and have had no problems restoring from a CD-RW or DVD-R on which I've use mkisofs first.

Thanks for all the suggestions.
cfgauss is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
mount as a device: mount dvd-iso file in /dev/dvd sadarax Linux - General 20 08-03-2008 04:17 AM
Writing to DVD-RW using cdrecord jxrod2000 Linux - General 1 12-03-2006 11:45 AM
Can't record to dvd with cdrecord billehunt Linux - Software 6 06-08-2005 05:37 AM
difference between distro produced by group vs. produced by single person lostsoul Linux - General 2 04-08-2004 02:29 PM
Writing to a dvd with cdrecord buttersoft Linux - Software 3 09-05-2003 12:48 PM


All times are GMT -5. The time now is 07:22 PM.

Main Menu
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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration