|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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
__________________
. Spiration channels: Free scripts, programming tutorials and articles Dotcut alerts: Online Press cuttings / news alerts Clearprop: UK microlight school, wiltshire Uk dating: UK safe dating with Topdates About Christo . . |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > Linux Help > Linux image copy on CD(RW) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|