Need big help backuping files to CD

Booting, installing, newbie
Post Reply
Message
Author
Guest

Need big help backuping files to CD

#1 Post 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?

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#2 Post 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.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#3 Post 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

spywaremagnet

#4 Post by spywaremagnet »

Thanks so much!

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#5 Post 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

User avatar
Flash
Official Dog Handler
Posts: 13071
Joined: Wed 04 May 2005, 16:04
Location: Arizona USA

#6 Post by Flash »

Thanks Mark. :)

Guest

#7 Post 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

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#8 Post 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

User avatar
Ted Dog
Posts: 3965
Joined: Wed 14 Sep 2005, 02:35
Location: Heart of Texas

Hints and help

#9 Post 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.

Guest

#10 Post 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

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#11 Post 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:

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#12 Post by MU »

or try
dev=ATAPI:1,0,0

Guest

#13 Post 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

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#14 Post 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 -

Guest

#15 Post 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

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#16 Post 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

Guest

#17 Post by Guest »

YES! I got it to work! The device was really 0,0,0! Not 1,0,0!

8)

I'm so happy...

Guest

#18 Post by Guest »

Thanks for all your help, Mark. Happy New Year!

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#19 Post by MU »


Post Reply