Linux Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOperating SystemsLinux Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 27th, 2003, 07:51 AM
mc_hendriks mc_hendriks is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Netherlands
Posts: 44 mc_hendriks User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 21 m 31 sec
Reputation Power: 7
Linux image copy on CD(RW)

I'm looking for a script (or two) that is able to make a:

1) bootable CD with the contents of my Linux Redhat 8.X harddisk, wich can be used to restore after a disaster or restore/ install on another machine.

2) regular databackup on CD/RW, which should run every night to backup/append the data on a CD

Thanks in advance

Reply With Quote
  #2  
Old June 27th, 2003, 08:19 AM
christo's Avatar
christo christo is offline
Introspective
Dev Shed Loyal (3000 - 3499 posts)
 
Join Date: Nov 2001
Location: London, UK
Posts: 3,297 christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level)christo User rank is Second Lieutenant (5000 - 10000 Reputation Level) 
Time spent in forums: 3 Days 1 h 9 m 17 sec
Reputation Power: 104
Send a message via ICQ to christo Send a message via Yahoo to christo
I have spent some hours some time ago sorting out my CD-RW device. Here are some short notes on what I uncovered:

This was on a slackware 8.1 box

1) Kernel compiled to include all the following options:

* Block devices
o turn ON Loopback device support
* ATA/IDE/MFM/RLL support
o IDE, ATA and ATAPI Block devices
+ turn OFF IDE/ATAPI CDROM support
+ turn ON SCSI emulation support
* SCSI support
o turn ON SCSI support
o turn ON SCSI CDROM support
o turn ON Enable vendor specific extensions
o turn ON SCSI generic support
* File Systems
o turn ON ISO 9660 CDROM file system support
o turn ON Microsoft Joliet CDROM extensions

2) cdrecord downloaded as part of cdrtools
3) Determine what device the SCSI burner is:

root@brezhnev:~# cdrecord -scanbus
Cdrecord 1.11a24 (i686-pc-linux-gnu) Copyright (C) 1995-2002 J�rg Schilling
Linux sg driver version: 3.1.24
Using libscg version 'schily-0.6'
scsibus0:
0,0,0 0) 'LITE-ON ' 'LTR-48125S ' '1S02' Removable CD-ROM
0,1,0 1) *
0,2,0 2) *
0,3,0 3) *
0,4,0 4) *
0,5,0 5) *
0,6,0 6) *
0,7,0 7) *

4) script written which uses cdrecord to convert from mp3 to cdr format and pipe the new file contents to a write process:

root@brezhnev:~# cat ~/bin/mkcd
#!/bin/bash
for I in *.mp3
do
mpg123 --cdr - "$I" | cdrecord -dev=0,0,0 speed=0 -audio -pad -nofix -
done
cdrecord -fix

5) Oddly, the CD created wouldn't play, but running a second 'fix' process seemed to partially help.

6) burning a data cd is easy. I have done the 6 cd's required for redhat 9, using the following oneliner:

cdrecord -v speed=0 dev=0,0,0 -data imagefile

------


note that all this is run in a terminal over my network, because the cd burner is in a headless box. You might find some tools likd xroast et al are helpful.


hth
christo

Reply With Quote
Reply

Viewing: Dev Shed ForumsOperating SystemsLinux Help > Linux image copy on CD(RW)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway