LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-01-2014, 08:28 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 717

Rep: Reputation: Disabled
Copy a DVD


How would you recommend I copy a DVD? Note that it is a Windows bootable DVD (Don't know if that maters). Also, I wish to delete one file from the DVD before ripping it. Thank you

Edit. I am trying the following:
Code:
#Insert original DVD
mkdir /mnt/dvd
#Confirm I want dvd and not dvdrw.  I probably should use the -t flag and specify file type (which one?)
mount  /dev/dvd /mnt/dvd
dd if=/dev/dvd of=~/windows.iso
umount  /mnt/dvd

mkdir /media/windows
mount -o loop ~/windows.iso /media/windows
# Edit files
umount /media/windows

#Insert blank DVD
mount  /dev/dvd /mnt/dvd
growisofs --dvd-compat -Z /dev/dvd=~/windows.iso
umount  /mnt/dvd

Last edited by NotionCommotion; 04-01-2014 at 09:31 AM.
 
Old 04-01-2014, 09:04 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,713

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
Even though you should be able to mount the iso via loopback, I don't think you will be able to edit it unless the ISO has free space (and the filesystem knows it), AND it isn't a 9660 or udf filesystem.

If it is from a DVD/CD it is likely a 9660/udf read only filesystem... and that would require first copying it to a regular filesystem, then edit, then create a new iso in the target filesystem format... adding the boot block.
 
Old 04-01-2014, 09:09 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 717

Original Poster
Rep: Reputation: Disabled
Thanks jpollard,

I don't understand the "-o loop" part of mount. Should I just not include?

Also, please elaborate on "adding the boot block".

Thank you
 
Old 04-01-2014, 09:15 AM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,150

Rep: Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887Reputation: 887
make a new directory and cp -r the stuff in the read-only /media/windows to a read-write directory... then you will be able to save your edits.
 
Old 04-01-2014, 09:32 AM   #5
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 717

Original Poster
Rep: Reputation: Disabled
Thanks schneidz,

Anything wrong with what I showed in my original post?

Do you know what the "-o loop" part of mount does?
 
Old 04-01-2014, 09:37 AM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,350

Rep: Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908
The -o loop is required. In a nutshell this allows the ISO file to look like a regular block device. i.e. if you actually mounted the original DVD. As stated the mounted ISO file system is read only so you will need to copy the files to another directory to remove the file. However, if you just burn the files to DVD it it will not be bootable. You need to add the boot block back.
 
Old 04-01-2014, 09:45 AM   #7
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 717

Original Poster
Rep: Reputation: Disabled
Thanks Michael,

Ah, I see what you and Schneidz meant about cp the files. Yep, I can't delete it or chmod the file. Crazy that I need to copy the directory, but oh well.

Please let me know how I should add the boot block back. Note that I didn't notice that I couldn't delete the file and ripped it without first copying it, and the DVD works.

Last edited by NotionCommotion; 04-01-2014 at 09:47 AM.
 
Old 04-01-2014, 09:53 AM   #8
michaelk
Moderator
 
Registered: Aug 2002
Posts: 16,350

Rep: Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908Reputation: 1908
To create a bootable ISO:
http://www.syslinux.org/wiki/index.php/ISOLINUX
 
Old 04-01-2014, 10:09 AM   #9
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 717

Original Poster
Rep: Reputation: Disabled
Thanks Michael, I will check it out.

Now other problems

When I earlier mounted a blank DVD, Linux "guessed" the right filetype. This time I am not so lucky. Suggestions? Also, please let me know what is different between /dev/dvd and /dev/dvdrw.
Code:
[root@michaels dev]# mount  /dev/dvd /mnt/dvd
mount: you must specify the filesystem type
[root@michaels dev]# mount  -t iso9660 /dev/dvd /mnt/dvd
mount: block device /dev/sr0 is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/sr0,
       missing codepage or helper program, or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

[root@michaels dev]#
 
Old 04-01-2014, 10:20 AM   #10
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 717

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by NotionCommotion View Post
Now other problems

When I earlier mounted a blank DVD, Linux "guessed" the right filetype. This time I am not so lucky. Suggestions? Also, please let me know what is different between /dev/dvd and /dev/dvdrw.
Please disregard. There is no filesystem on a blank DVD so I obviously can't mount it.
 
Old 04-01-2014, 11:15 AM   #11
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
While i have not edited bootable iso file, for backup, i always make iso file of cd/dvd which comes along purchase of books. I can't remember from which website i got this, but here is a way to create a perfect iso file from cd/dvds.

Code:
# isoinfo -d -i /dev/sr0 | grep 'Logical\|Volume size'
Logical block size is: 2048
Volume size is: 401920

# dd if=/dev/sr0 of=/home/madhu/MyUbuntu.iso bs=2048 count=401920

# md5sum /dev/sr0 /home/madhu/MyUbuntu.iso  
8d72e2db7e72e13813731eab37a14d26  /dev/sr0 
8d72e2db7e72e13813731eab37a14d26  /home/madhu/MyUbuntu.iso
 
Old 04-01-2014, 11:30 AM   #12
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
OK! Got the link.
Archiving CDs to ISO from the Command Line
 
1 members found this post helpful.
Old 04-01-2014, 11:46 AM   #13
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 717

Original Poster
Rep: Reputation: Disabled
Thank you mddesai,

I ended up downloading an iso (50 minutes, but will be complete in 43 seconds!), and just burn a new DVD.

That being said, I will read the post so I know how to do it in the future.
 
Old 04-01-2014, 12:31 PM   #14
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,225

Rep: Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521Reputation: 2521
Quote:
Note that it is a Windows bootable DVD
if this is a Microsoft OS install dvd
it is illegal in the USA and in the EU , and most of the world to bypass the DRM
in the USA it is a violation of the DMCA to do so .
 
Old 04-01-2014, 01:16 PM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852Reputation: 4852
Quote:
Originally Posted by John VV View Post
if this is a Microsoft OS install dvd
it is illegal in the USA and in the EU , and most of the world to bypass the DRM
in the USA it is a violation of the DMCA to do so .
Microsoft Windows DVDs are not copyprotected and Microsoft freely provides documentation and tools to create modified/customized installation media, so I don't see why removing a file from the DVD should be illegal.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
I cp wma files off a win$ box to a DVD ... why can't I copy from DVD 2 a linux partit rakemup Linux - General 9 05-23-2013 06:04 PM
HOWTO: DVD -> VOB -> ISO -> DVD ... or, duplicate DVD5 exact copy demerson3 Linux - Software 18 08-07-2007 01:22 PM
LXer: Copy Protection on German Video DVD Impairs CD/DVD Writers LXer Syndicated Linux News 0 02-10-2006 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration