Page 1 of 1

Need big help backuping files to CD

Posted: Sat 31 Dec 2005, 16:50
by Guest
Okay, here's the deal. I have a regular Puppy Linux 1.0.6 CD, and I'm trying to back up my files with it. My Windows XP installation has a trojan horse, and a worm, on it and so I can't use that.

Now I have 256 megs of RAM, and a 256 megabyte compact flash card in a USB cf drive, and 1 cd-rw reader/burner. Also, I have a 1.6 gigahertz Pentium 4 processor. And two hard drives each with NTFS partions. Crying or Very sad

Here's the problem. I can use Graveman to burn a small amount of info onto the cd, but the ramdisk is too small to hold a disk image the size of a regular cd. I don't have enough cd's to archive all the info I want to burn, if I can only burn 30meg cds.

Is there any way to burn directly to the CD, without the disk image being needed?

Posted: Sat 31 Dec 2005, 17:48
by Flash
I'm not certain but you might be able to use the "dd" command. More info on using the "dd" command will be found in a thread in the Users forum.

If dd won't work for you, you might consider creating a (1 GB) swap partition on one of the drives, using Partition Magic.

Posted: Sat 31 Dec 2005, 18:06
by MU
read
/usr/share/doc/cdrtools/cdrecord.htm
in a Webbrowser.

If the overall speed of the system is sufficient and the structure of the filesystem is not too complex, cdrecord will run without creating an image of the ISO 9660 filesystem. Simply run the pipeline:


mkisofs -R /master/tree | cdrecord -v fs=6m speed=2 dev=2,0 -

This creates a Diskimage from files and folders in /master/tree , and sends it through a pipe ("|") directly to cdrecord.

Mark

Posted: Sat 31 Dec 2005, 18:14
by spywaremagnet
Thanks so much!

Posted: Sat 31 Dec 2005, 18:21
by MU
To check, if the folder will fit on a CD, run

du -m /folder

In some cases du might not work exact, so add some MB tolerance (you just can find it out by trying).

Like this you can burn "parts" of your harddrive to CDs.
Mark

Posted: Sat 31 Dec 2005, 18:21
by Flash
Thanks Mark. :)

Posted: Sat 31 Dec 2005, 19:19
by Guest
Um, this is the result I got. Apparently I'm doing something wrong.

-----

# mkisofs -R /mnt/hda2/Documents and Settings/Maximillian/My Documents/My Music/iTunes/ | cdrecord -v fs=6m speed=4 dev=1,0,0 -
mkisofs: No such file or directory. Invalid node - /mnt/hda2/Documents
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J

Posted: Sat 31 Dec 2005, 19:52
by MU
In a console, Spaces in Filenames do not work.
But you can do:
mkisofs -R "/mnt/hda2/Documents and Settings/Maximillian/My Documents/My Music/iTunes/" | cdrecord -v fs=6m speed=4 dev=1,0,0 -

That was error 1.
The second error:
You must tell it, what Device to use.

Do that:
Start graveman, and in "Settings" be shure your CD-burner is selected.
Exit graveman.
Now have a look at gravemans configurationfile.
Use the comand:
leafpad /root/.graveman/graveman.conf

It should have something like this:

Code: Select all

[lecteur]
dev= 0,0,0
name=WDC WD20 00BB-55GUC0 Disk
So my Burner is "0,0,0".
So my final comand would be:
mkisofs -R "/mnt/hda2/Documents and Settings/Maximillian/My Documents/My Music/iTunes/" | cdrecord -v fs=6m speed=4 dev=0,0,0 -

If you burn directly, speed=4 might be too fast, if it does not work (buffer underrun) try speed=1

Does that work for you?

If you have questions, just ask.
I knew guys that were 13, that helped building http://pro-linux.de , which is germanys most famous Linux-Website :)
So you have 2 more years time to become an "expert" ;)

Burning several folders at once:
No idea at moment, ... start - help - cdrtools - mkisofs

Seems to work like this:
mkisofs -R "/folder1" "/folder2" | ...

Mark

Hints and help

Posted: Sat 31 Dec 2005, 20:07
by Ted Dog
Guest,
Wonderful spelling and use of language for an eleven year old. Try using this it will help. Type part of command like just mki now press the [Tab] key. You should have gotten mkisofs I use it to get the correct paths when using windows. For your example if you have started to type Docu then [Tab] key in the command above, it would finish the name for you with the correct way of passing directory names with spaces, i.e. /mnt/hda2/Documents\ and\ Settings.... I can never recall the ways to correct those issues, but [Tab] key does.

Posted: Sat 31 Dec 2005, 20:43
by Guest
I know that my CD-burner is at 1,0,0 because I used cdrdao a long time ago and figured it out. But thanks anyway. I tried it again, changing the settings and here is what I got:

-----

# mkisofs -R "/mnt/hda2/Documents and Settings/Maximillian/My Documents/My Music/iTunes/" | cdrecord -v fs=6m speed=2 dev=1,0,0 -
Using GEORG000 for /mnt/hda2/Documents and Settings/Maximillian/My Documents/My Music/iTunes/iTunes Music/George Jones & Tammy Wynette (George Jones & Alan Jackson)
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J

Posted: Sat 31 Dec 2005, 21:01
by MU
Hm..

If you run "lsmod", does it list a scsi-driver?

If not, try
modprobe scsi_mod or insmod scsi_mod
or
modprobe usb-storage or insmod usb-storage

Try the usb also if it is no USB-burner, as I think those drivers are somewhat related.
Here are some other modules I have loaded:

Code: Select all

sr_mod                 14488   0  (unused)
ide-cd                 29504   0 
cdrom                  27744   0  [sr_mod ide-cd]

This is just a "wild" guess, as I do not really know a solution :oops:

Posted: Sat 31 Dec 2005, 21:07
by MU
or try
dev=ATAPI:1,0,0

Posted: Sat 31 Dec 2005, 21:29
by Guest
Here are the lsmod results:
-----

# lsmod
Module Size Used by Not tainted
sg 31100 0 (unused)
parport_pc 15108 0
parport 23880 0 [parport_pc]
sr_mod 14488 0 (unused)
ide-cd 29504 0
cdrom 27744 0 [sr_mod ide-cd]
unionfs 157488 1
nls_cp437 4316 1 (autoclean)
usb-storage 62336 1
nls_iso8859-1 2812 2 (autoclean)
ntfs 82764 1
sd_mod 11404 2
usb-uhci 21936 0 (autoclean) (unused)
usbcore 59596 1 (autoclean) [usb-storage usb-uhci]

i810_audio 23292 0 (autoclean) (unused)
ac97_codec 12020 0 (autoclean) [i810_audio]
soundcore 3588 2 (autoclean) [i810_audio]
8139too 13480 1 (autoclean)
mii 2320 0 (autoclean) [8139too]
crc32 2896 0 (autoclean) [8139too]
scsi_mod 93972 4 [sg sr_mod usb-storage sd_mod]

-----

SCSI drivers appear intact. And here is what happens if you enter in the burning command.

-----

# mkisofs -R "/mnt/hda2/Documents and Settings/Maximillian/My Documents/My Music/iTunes/" | cdrecord -v fs=6m speed=2 dev=1,0,0 -
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Using GEORG000 for /mnt/hda2/Documents and Settings/Maximillian/My Documents/My Music/iTunes/iTunes Music/George Jones & Tammy Wynette (George Jones & Alan Jackson)
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J

Posted: Sat 31 Dec 2005, 21:32
by MU
And with
dev=ATAPI:1,0,0
?

mkisofs -R "/mnt/hda2/Documents and Settings/Maximillian/My Documents/My Music/iTunes/" | cdrecord -v fs=6m speed=2 dev=ATAPI:1,0,0 -

Posted: Sat 31 Dec 2005, 21:34
by Guest
# mkisofs -R "/mnt/hda2/Documents and Settings/Maximillian/My Documents/My Music/iTunes/" | cdrecord -v fs=6m speed=2 dev=ATAPI:1,0,0 -
Using GEORG000 for /mnt/hda2/Documents and Settings/Maximillian/My Documents/My Music/iTunes/iTunes Music/George Jones & Tammy Wynette (George Jones & Alan Jackson)
cdrecord: No write mode specified.
cdrecord: Asuming -tao mode.
cdrecord: Future versions of cdrecord may have different drive dependent defaults.
cdrecord: Continuing in 5 seconds...
Cdrecord-Clone 2.01 (i686-pc-linux-gnu) Copyright (C) 1995-2004 J

Posted: Sat 31 Dec 2005, 21:36
by MU
I will go to the harbour in 1 hour, as in 2 hours we have 0.00 am.

Maybe this can help:
cd /usr/sbin
grep cdrecord *

This will show how Puppys scripts use cdrecord. Maybe this output gives some tips.
If not, maybe someone else has a solution, I wish good luck :)
Mark

Posted: Sat 31 Dec 2005, 22:29
by Guest
YES! I got it to work! The device was really 0,0,0! Not 1,0,0!

8)

I'm so happy...

Posted: Sat 31 Dec 2005, 22:30
by Guest
Thanks for all your help, Mark. Happy New Year!

Posted: Sat 31 Dec 2005, 22:36
by MU