I’m trying to make a backup using the raw disk copy method. It doesn’t seem
to work, and I’m wondering if someone might be able to help (or, at least
explain why).
I simply try to cat the contents of the first raw disk (6GB) to a file on a
SMB filesystem. For example:
cat /dev/hd0 > /SMBfilesystem/backupfile
I’m thinking that the 2GB size limit for a file might be the cause, because
that’s the resulting size of the …/backupfile. I tried a couple of
tests…
I appended to the …/backupfile with: print “growing the file” >>
/SMBfilesystem/backupfile. Surprisingly enough, the file grew!?
Earlier, when accessing /dev/hd0, I checked “sin fi” and found that the
“position” read nnnnM/ 2147M. Therefore, I tried “dd” to seek near the
so-called end-of-file: dd if=/dev/hd0 of=/SMBfilesystem/backupfile
ibs=1000k obs=1000k skip=2000. The resulting file was less than 100 MB.
Test results: I can write (append) to a file past 2GB, but I can’t read a
raw disk past 2GB. Hmmmmm.
Could it be Fsys, or Fsys.eide? I’m using LBA mode, which I want.
Thanx in advance,
John Colburn
P.S. Here’s something interesting that I discovered.
In the example above (cat /dev/hd0 > /SMBfilesystem/backupfile), the data
was transferred at a certain speed. If, while this process was running, I
ran a similar process (cat /dev/hd0 > /SMBfilesystem/backupfile.2), the
/SMBfilesystem/backupfile was growing about 10 times faster! When I used
the dd command (above) instead of cat, the speed gain was in the order of 30
times!