LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-04-2009, 03:46 AM   #1
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Rep: Reputation: 15
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
 
Old 05-04-2009, 03:58 AM   #2
linterrogate
LQ Newbie
 
Registered: Mar 2008
Distribution: debian
Posts: 8

Rep: Reputation: 0
Quote:
Originally Posted by vaibhavs View Post
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
One straightforward way is to look through /var/log/message where the loading kernel detects its hardware

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.
 
Old 05-04-2009, 04:24 AM   #3
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by linterrogate View Post
One straightforward way is to look through /var/log/message where the loading kernel detects its hardware

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.

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
Apr  5 14:40:08 server smartd[2084]: Home page is http://smartmontools.sourceforge.net/#012
Apr  5 14:40:08 server smartd[2084]: Opened configuration file /etc/smartd.conf
Apr  5 14:40:08 server smartd[2084]: Configuration file /etc/smartd.conf parsed.
Apr  5 14:40:08 server smartd[2084]: Device: /dev/sda, opened
Apr  5 14:40:08 server smartd[2084]: Device: /dev/sda, found in smartd database.
Apr  5 14:40:08 server smartd[2084]: Device: /dev/sda, is SMART capable. Adding to "monitor" list.
Apr  5 14:40:08 server smartd[2084]: Monitoring 1 ATA and 0 SCSI devices
Apr  5 14:40:09 server smartd[2086]: smartd has fork()ed into background mode. New PID=2086.
Apr  5 14:41:43 server init: tty1 main process ended, respawning
Is this the DVD ROM ??

What next ??

Thx
Vai
 
Old 05-04-2009, 11:49 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
Here's how I would do it.
First run 'lsscsi':
Code:
bash-3.1# lsscsi
[3:0:0:0]    disk    ATA      ST3160815AS      4.AA  /dev/sda
[5:0:0:0]    cd/dvd  TSSTcorp CDDVDW SH-S203D  SB00  /dev/sr0
So in this case the drive is /dev/sr0. Usually there's a symlink from /dev/cdrom, so you can use that too, but not if you have more than one DVD drive.

You can also find out more info on the drive using:
Code:
cdrecord -prcap dev=/dev/sr0
Now, to burn your data you do NOT need to mount the disk, in fact you can't, it's impossible.

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
Where source_directory is the directory you want to burn, and with the appropriate speed setting (here it's 1x)
 
Old 05-04-2009, 11:55 AM   #5
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15
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
 
Old 05-04-2009, 12:00 PM   #6
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
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
 
Old 05-04-2009, 02:40 PM   #7
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15
I have 1 ROM.

But the output id different.

Code:
[root@server ~]# ll /dev/
Display all 173 possibilities? (y or n)
agpgart             lp0                 ram10               shm/                tty24               tty47               ttyS3
audio               lp1                 ram11               snapshot            tty25               tty48               .udev/
bsg/                lp2                 ram12               snd/                tty26               tty49               urandom
console             lp3                 ram13               stderr              tty27               tty5                usbmon0
core                MAKEDEV             ram14               stdin               tty28               tty50               vcs
cpu_dma_latency     mapper/             ram15               stdout              tty29               tty51               vcs1
disk/               mem                 ram2                systty              tty3                tty52               vcs2
dm-0                mixer               ram3                tty                 tty30               tty53               vcs3
dm-1                net/                ram4                tty0                tty31               tty54               vcs4
dri/                network_latency     ram5                tty1                tty32               tty55               vcs5
dsp                 network_throughput  ram6                tty10               tty33               tty56               vcs6
fd/                 null                ram7                tty11               tty34               tty57               vcsa
full                nvram               ram8                tty12               tty35               tty58               vcsa1
hpet                oldmem              ram9                tty13               tty36               tty59               vcsa2
input/              parport0            ramdisk             tty14               tty37               tty6                vcsa3
kmsg                parport1            random              tty15               tty38               tty60               vcsa4
log                 parport2            root                tty16               tty39               tty61               vcsa5
loop0               parport3            rtc                 tty17               tty4                tty62               vcsa6
loop1               port                rtc0                tty18               tty40               tty63               VolGroup00/
loop2               ppp                 sda                 tty19               tty41               tty7                watchdog
loop3               ptmx                sda1                tty2                tty42               tty8                X0R
loop4               pts/                sda2                tty20               tty43               tty9                XOR
loop5               ram                 sequencer           tty21               tty44               ttyS0               zero
loop6               ram0                sequencer2          tty22               tty45               ttyS1
loop7               ram1                sg0                 tty23               tty46               ttyS2
[root@server ~]# ll /dev/
 
Old 05-04-2009, 02:41 PM   #8
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15
The outpur of lsscsi is as follows:

Code:
[root@server ~]# lsscsi
[2:0:0:0]    disk    ATA      WDC WD1600AABS-0 01.0  -
[root@server ~]#
I will just check if the ROM is well connected and showing up in CMOS.
 
Old 05-04-2009, 03:46 PM   #9
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
It doesn't seem to be detected.
 
Old 05-05-2009, 09:19 AM   #10
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15
Figured out the ROM was not powered & its a CD ROM not DVD

Now I see this.

Code:
[root@server ~]# lsscsi
[0:0:1:0]    cd/dvd  SAMSUNG  CD-ROM SH-152A   C501  -
[2:0:0:0]    disk    ATA      WDC WD1600AABS-0 01.0  -
and I see this:

Code:
[root@server ~]# ll /dev/cdrom
lrwxrwxrwx 1 root root 3 2009-05-05 17:06 /dev/cdrom -> sr0
So now I have recognised the ROM.
Now the burning part....
 
Old 05-05-2009, 09:24 AM   #11
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15
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
But 1 question, how do I define multiple files & folders in the command ?
Is it like
Code:
source_directory1, source_directory2, source_directory3, source_file
Or is there any other way ?



Thx
Vai
 
Old 05-05-2009, 01:12 PM   #12
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15
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
-bash: growisofs: command not found
[root@server ~]# which growisofs
/usr/bin/which: no growisofs in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin)
[root@server ~]#
 
Old 05-05-2009, 01:15 PM   #13
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15
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
 
Old 05-05-2009, 01:54 PM   #14
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285Reputation: 1285
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 -
To burn more than one directory just list the rest of them after that first one.

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.
 
Old 05-05-2009, 02:09 PM   #15
vaibhavs
Member
 
Registered: Jun 2008
Posts: 113

Original Poster
Rep: Reputation: 15
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
error: Failed dependencies:
        mkisofs >= 2.0 is needed by dvd+rw-tools-7.0-11.fc9.i386
So I had to first install genisoimage-1.1.6-11.fc9.i386.rpm & then 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
:-( /dev/sr0: media is not recognized as recordable DVD: 0

What are my options to burn a CD ?

Thanks for your continued help.
Much appreciated.

BR/Vai
 
  


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
Upgraded FC5 to FC9 by using CD-Rom disks now X won't start rdgreenlaw Fedora - Installation 3 09-01-2008 11:43 AM
Lockup of CD Rom/DVD Rom Device by shell process jiju.jacob Linux - Newbie 2 07-19-2008 03:54 AM
problem writing FC9 image DVD zero_cool666 Linux - Software 1 05-20-2008 09:44 AM
DVD-ROM/CD-ROM unable to recognize debain boot CD gottfried Linux - Newbie 2 01-20-2004 01:39 PM
how to add cd-rom, dvd-rom, floppy, hard disk icons on gnome desktop? spyghost Linux - Software 6 09-21-2003 06:44 PM


All times are GMT -5. The time now is 05:02 PM.

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