Read and respond to this message at:
https://sourceforge.net/forum/message.php?msg_id=2896030
By: stormy_waters
Hello there,
I am current trying to image a NTFS partition ( Windows XP ), and it's being
wrote to a samba share ( Win2k ), via smbfs on a 2.6.9 kernel. My Command is
as follows: ntfsclone --save-imgae --output - /dev/sdb2 | ../split.pl. Split.pl
I will post later, But i'm doubting he's the culprit. It's a 120gb sata drive
that's got a 40gb partition, that's only about 5gb full. All split does is
break the file into chunks (512mb), for joining later. What's happens is this
ntfs clone will run get threw all of it's stuff get down to "Syncing ..." and
locks up. The image itself is being wrote to a smbfs mounted drive (which i
doubt is the culprit also) . So if anyone has any suggestions please feel free.
--Split.pl--
#!/usr/bin/perl -w
use strict;
my $file_counter = 1; # since simple way to start 'em
my $filesize = "512"; #in mega bytes
# 1000000 bytes in 1 mega byte
my $image_prefix = "image.";
my $byte_counter = 0;
binmode STDIN;
my $buffer;
my $buffer_read_size = 1000;
my $return_value;
if (defined($ARGV[0])) { $image_prefix = $ARGV[0]; }
open(FILEHANDLE,">$image_prefix".$file_counter);
binmode(FILEHANDLE);
while(defined($return_value = sysread(STDIN,$buffer,$buffer_read_size,0)))
{
if ($return_value != 0) #meaning there's some data in the buffer
{
$byte_counter += $return_value;
if($byte_counter >= $filesize*1000000)
{
syswrite(FILEHANDLE, $buffer, $return_value);
close(FILEHANDLE);
$file_counter += 1;
open(FILEHANDLE,">$image_prefix".$file_counter);
binmode(FILEHANDLE);
$byte_counter = 0;
}else{
syswrite(FILEHANDLE, $buffer, $return_value);
}
}
}
close(FILEHANDLE);
______________________________________________________________________
You are receiving this email because you elected to monitor this forum.
To stop monitoring this forum, login to SourceForge.net and visit:
https://sourceforge.net/forum/unmonitor.php?forum_id=44085
|