Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi:
I have to copy a large file (4 GB) from a crashed WinXP machine into an external HD connected to a USB port using the Knoppix live CD. Then i have to copy the large file into a working WinXp machine.
The external HD was NTFS. I used Captive NTFS and it found all necessary drivers but still it could not write in the external HD. Using QTParted i set the filesystem in the external HD as FAT32, and then i could write many files, including very large ones. The external HD has a size of little less than 8 GB.
My problem is that when i attempt to copy the 4 GB file into the external HD the process is interrupted when 2 GB have been transferred with an error message similar to "Process died unexpectedly". I read thru messages here and i saw that most likely there is maximum file size problem in the FAT32 partition.
Option 1) is to split the 4 GB file into smaller pieces into the FAT32 partition
split -b 1000m filename /mnt/sda1/filename
where sda1 is the external HD. My first question is
Q. 1) do i need to rejoin the parts in the external HD before i copy the file into the working WinXP machine? Or can i copy the parts individually into the WinXP and rejoin them using MS-DOS? I ask this because if a rejoin the parts in the external HD then i would need to delete the parts as they are being rejoined because both the parts (4 GB) plus the entire rejoined file (4 GB) will not fit into the <8 GB external HD (partition sda1). This leads to my second question,
Q. 2) is there a simple modification to the cat command
cat filenamead >> /mnt/sda1/filenameaa
that will delete the parts as they are being re-assembled so that i will not reach the size of the external HD?
Option 2) is to reformat again the external HD to ext2 and then i will not have the problem of exceeding the size limit of FAT32. This leads to my third question
Q. 3) if i write the large 4 GB file into the ext2 filesystem in the external HD will it be recognized later by WinXP when i finally transfer the file into the working WinXp machine?
I hope i presented my questions clearly enough. English is a second language to me and on top of that, i am a linux newbie. Thanks,
Stirner
Q. 1) do i need to rejoin the parts in the external HD before i copy the file into the working WinXP machine? Or can i copy the parts individually into the WinXP and rejoin them using MS-DOS? I ask this because if a rejoin the parts in the external HD then i would need to delete the parts as they are being rejoined because both the parts (4 GB) plus the entire rejoined file (4 GB) will not fit into the <8 GB external HD (partition sda1). This leads to my second question,
winDOHs' copy command (in conjunction with the
-b (binary) switch should be able to do it just like
cat ...
Quote:
Q. 2) is there a simple modification to the cat command
cat filenamead >> /mnt/sda1/filenameaa
that will delete the parts as they are being re-assembled so that i will not reach the size of the external HD?
Nope.
Quote:
Q. 3) if i write the large 4 GB file into the ext2 filesystem in the external HD will it be recognized later by WinXP when i finally transfer the file into the working WinXp machine?
I hope i presented my questions clearly enough. English is a second language to me and on top of that, i am a linux newbie.
There are some NT/XP drivers for Linux-filesystems,
I think ext2/3 is among them ... they don't come with
the system, though, you'll have to find and install them.
I have decided to copy the split parts and re-assemble them using DOS commands.
However, when i am on Knoppix in the WinXP crashed machine, and i go to Root Shell and type
My mistake Tink.
I typed the command hastily and put a ~ after the name of the file,
and then when i typed the command again carefully and with the correct name,
the system kept telling me the file was not found. When i closed the command line
and started it again, the system found the file and the split command worked fine. Now i have
completed my data rescue mission on the crashed WinXP system with Knoppix. I re-assembled the parts in DOS using
copy /b partaa+partbb...+partee joined.xxx
Thanks for your help.
Knoppix worked really well. I copied all small files using a pen drive. The big container had to be saved on an external 8GB HD connected thru the USB port using the split command because Knoppix has a 2GB limit on FAT32. The troubled machine is a Compaq Presario LA725 and for the Presarios in general the booting has to be done with acpi=off noscsi or otherwise Knoppix 3.6 will not boot. The experimental Linux kernel 2.6.x did not work either but the stable 2.4.x worked perfectly well.
I am no expert but i highly recommend Knoppix live CD as a rescue system.
Now i have to re-install WinXP on the Compaq and then install Knoppix (=Debian) in the HD to have a dual boot system.
Cheers and good day to all.
Stirner
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.