FC9 : DVD ROM detection and writing
Hi,
I have Fedora release 9 (Sulphur) in TEXT ONLY mode. I have a Samsung DVD writer connected to it. I want to backup my data to a DVD. I have 2 hurdles: (a) How do I detect my DVD rom drive and mount it. (b) How do I write data to the DVD. I am relatively new. Please suggest pointers or steps. Thx Vai |
Quote:
Newer systems usually have some hotplug functionality. You can just insert a dvd, close the drive, and wait for a popup to ask what you want to do with it. Say open and the file manager will show its contents. Now "mount" will show you the name of the device and where it is mounted. |
Quote:
I scanned the /var/log/messages but I would not figure-out what to look for and how to idenitfy the DVDROM. Code:
Apr 5 14:40:08 server smartd[2084]: smartd version 5.38 [i386-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen What next ?? Thx Vai |
Here's how I would do it.
First run 'lsscsi': Code:
bash-3.1# lsscsi You can also find out more info on the drive using: Code:
cdrecord -prcap dev=/dev/sr0 To write the data, read about it here: http://www.linux.com/feature/113859 Or you can use my script: http://draconishinobi.50webs.com/sla...ul-scripts.tgz It's called 'burnit' just run 'burnit directory /dev/sr0'. Or just run: Code:
growisofs -dvd-compat -speed=1 -use-the-force-luke=bufsize:32m -Z /dev/sr0 -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 source_directory |
Thx for your details ionstructions.
I am sure it will be of great help. When I hit lsscsi I got this error. [root@server ~]# lsscsi -bash: lsscsi: command not found Is lsscsi not included in the std FC9 distro or have I stopped some services ?? Thx for your help. Vai |
It's probably not included, in which case, how many DVD drives do you have ? If only one, then use /dev/cdrom or /dev/dvdwriter those symlinks should be there
|
I have 1 ROM.
But the output id different. Code:
[root@server ~]# ll /dev/ |
The outpur of lsscsi is as follows:
Code:
[root@server ~]# lsscsi |
It doesn't seem to be detected.
|
Figured out the ROM was not powered & its a CD ROM not DVD :(
Now I see this. Code:
[root@server ~]# lsscsi Code:
[root@server ~]# ll /dev/cdrom Now the burning part.... |
I will try this command to test a burn
Code:
growisofs -dvd-compat -speed=1 -use-the-force-luke=bufsize:32m -Z /dev/sr0 -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 source_directory Is it like Code:
source_directory1, source_directory2, source_directory3, source_file Thx Vai |
FC9 does not have growisofs
Code:
[root@server ~]# growisofs -dvd-compat -speed=1 -use-the-force-luke=bufsize:32m -Z /dev/sr0 -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 /var/www/html |
FC9 does not have "mkisofs" either which is required for "growisofs".
Please help, what utility should I use/install for CD/DVD burning in FC9 Thx Vai |
You can also use cdrecord to burn a DVD, I've never done it tho, I prefer growisofs. But you'd probably run this:
Code:
mkisofs -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 source_directory | cdrecord -v gracetime=2 dev=/dev/sr0 speed=1 driveropts=burnfree -tao - But, as you will notice from the above, you cannot backup data files to a data dvd or cd without mkisofs ... you can't make an iso ... therefore what are you gonna burn ? Nothing. Therefore you must first install mkisofs, and I recommend growisofs too. I believe it's part of the dvd+rw-tools package. |
Ok.
dvd+rw-tools package does not include mkisofs See this: Code:
[root@server ~]# rpm -ivh dvd+rw-tools-7.0-11.fc9.i386.rpm But this could not burn a CD. Code:
[root@server ~]# growisofs -dvd-compat -speed=1 -use-the-force-luke=bufsize:32m -Z /dev/sr0 -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 /var/www/html What are my options to burn a CD ? Thanks for your continued help. Much appreciated. BR/Vai |
This seems to be your CD-ROM drive:
http://www.google.com/products/catal...#ps-tech-specs I assumed it was a DVD burner, but ... it cannot read DVDs, it cannot burn at all (not CDs or DVDs) ... is this the only one you have ? If this is not your drive then post the output of: Code:
cdrecord -prcap dev=/dev/sr0 |
Hi,
Finally I managed to burn my First DVD. On FC9 I had to do the following in order: Installed the following rpm for CD/DVD detection and burning (1) lsscsi-0.19-1.i386.rpm (2) genisoimage-1.1.6-11.fc9.i386.rpm (3) dvd+rw-tools-7.0-11.fc9.i386.rpm My DVD writer was detected as follows: Code:
[root@server ~]# lsscsi Next, run this command to burn a DVD: Code:
growisofs -dvd-compat -speed=1 -use-the-force-luke=bufsize:32m -Z /dev/sr0 -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 /var/www/html I hope this small writeup will help other newbies like myself. Thanks to all forum members for their help. Special thanks to "H_TeXMeX_H" for his inputs & support. Best regards, Vai |
I have a quick question.
When I executed the following command, the files & folders from /var/www/html got written on the DVD. I was expecting the folder "html" to be created on the DVD and then the content to have been copied inside the html folder. What did I miss ?? Code:
growisofs -dvd-compat -speed=1 -use-the-force-luke=bufsize:32m -Z /dev/sr0 -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 /var/www/html Vai |
Alright, well either way, you can usually use the symlinks made by udev:
/dev/dvdwriter if there are more than one they will be labeled: /dev/dvdwriter0 /dev/dvdwriter1 same goes for cdwriter, cdrw, dvdrw, cdrom, dvd You may also want to read here for more info: http://www.linux.org/docs/ldp/howto/...-HOWTO/sr.html If you're using an IDE drive it may be detected as /dev/hdd, while for SATA drives it will be /dev/sr0. EDIT: As for your question, that command will write the directory you point it to to the root of the iso, so if you want to keep the html directory, you have to put it in another directory and point it to that. Whatever directory you point it to will not be created, it will became the root or / of the iso, so make sub-directories. |
hmm..
How to copy "Folder" (with Files & folder inside) Rather than copying all files and folders of a folder ?? I hope this is understandable. Vai |
Sorry I don't get it.
Just do: Code:
mkdir dvd |
Let me explain.
When I wrote my first DVD, the source was defined as -> /var/www/html I was expecting "growisofs" to create a folder "html" on my DVD and then copy all files inside that folder. Instead, "growisofs" copied all files from "/var/www/html" into the base of DVD. OR in simpler words, how can I "folders" on DVD and contents inside the folder Thx Vai |
Let me give another example:
I have a folder fld1 which contains 3 files. a.sh b.sh c.sh I would like to copy the entire folder "fld1" to my DVD, such that my DVD should look like this: /mnt/dvd/fld1/a.sh |
I see, ok you can try this instead:
Code:
growisofs -dvd-compat -speed=1 -use-the-force-luke=bufsize:32m -Z /dev/sr0 -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 /html/=/var/www/html http://wiki.archlinux.org/index.php/DVD_writing |
hmm. I will try this...
One last question in this series. Is it possible create a text file with a list of all folders & files which need to be burnt on DVD and then call it from the command prompt. For example: File = MyBackupList.txt Quote:
Thx again for your contants help. BR/Vai |
I think you can just run:
Code:
growisofs -dvd-compat -speed=1 -use-the-force-luke=bufsize:32m -Z /dev/sr0 -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 $(sed 's/\n/ /g' MyBackupList.txt) |
Surprisingly, I am unable to write more than 200MB of data.
The DVD is a 4.7GB capacity. What am I missing? I get this output at the end: Code:
5.03% done, estimate finish Fri May 8 23:02:09 2009 |
I think it wrote all the data you gave it, which was probably 194 MB worth. If you give it more data it will write up to around 4500 MB.
If you want to know the size of what you're gonna be burning run mkisofs this way: Code:
echo $(mkisofs -print-size -graft-points -rational-rock -full-iso9660-filenames -iso-level 2 $(sed 's/\n/ /g' MyBackupList.txt) 2> /dev/null)*2/1024 | bc |
Hi,
I am using the below command for writing data to a DVD and its working great in production environment. Code:
growisofs -dvd-compat -speed=1 -use-the-force-luke=bufsize:32m -Z /dev/sr0 (a) I see a folder called "RR_MOVED". I do not want this to be written on the DVD. How can this folder be avoided from writing on the DVD. (b) How can I set a name/label to the DVD when writing. Thanks again to forum members for continued support. Best regards, Vai |
From the man page:
Code:
-hide-rr-moved Code:
-V volid |
All times are GMT -5. The time now is 09:34 AM. |