Results 1 to 10 of 10

Thread: Splitting large files?

  1. #1
    Junior Member
    Join Date
    Aug 2004
    Location
    North Carolina
    Posts
    3

    Splitting large files?

    I am hoping someone can help me. I have an 80 GB hdd that seems to be fried. I Had a factory install of XP (Compaq) The only thing it came with was a "Recovery CD" which just rewrites the drive to the way it was when we got the computer. I have decided that I am no longer going to be treated like a thief by M$ (not recieving a disk with a $2600.00 USD comp, but I also have about 8 irreplaceable (DV) files which are around 800 MB to 1.5 GB. Is there a program on knoppix to split these files to 700 MB chunks so I can burn them to disk. I really don't have the money for a new drive.
    Thank you.

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    You can use the commands split and cat for this.
    split -b 725000000 filename (makes <700 MB chunks called xaa, xab and so on).
    After burning and backuping you can parse it together with:
    cat xab >> xaa (which puts xab after xaa, takes a while to run)
    cat xac >> xaa (if the file was bigger than 1,4GB, do this after xab)
    mv xaa orig_filename (to get back the original filename)
    rm xab xac (delete the now unnecessary files after checking that the orig. file is ok)

    Better test this before you delete anything if the files are really that important to you.
    Note: You need to burn the xaa, xab,.. files before doing another file, alternatively rename them because the next run with split would make new files and overwrite previous ones.

  3. #3
    Member registered user
    Join Date
    Jun 2004
    Location
    Canada
    Posts
    67
    As an addendum to what Markus said, to see the docs for the split command type the command
    Code:
    man split
    and I think you would find that it would be a bit easier for you if you use a command of the form:
    Code:
    split -b 680m filename filename
    which will split the file"filename" into pieces of at most 680 megabytes (to fit on a CD) but will also name the pieces filenameaa, filenameab, filenameac etc. This way you will know where the pieces came from without having to rename the files.

    [edit] You must of course make sure that there is enough room on your drive to hold the additional split files. e.g. splitting a 1.3GB file requires at least 1.3GB free space.

    Best Wishes
    Pete

    [/code]

  4. #4
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    You live some, you learn some. Thanks Pete.

  5. #5
    Junior Member
    Join Date
    Aug 2004
    Location
    North Carolina
    Posts
    3

    I forgot I am a noob.

    I am not any good with command line. I have been using M$. since the eighties. I can not even figure out how to get out of the root directory using the command line.
    Thank you for such a prompt response.

  6. #6
    Senior Member
    Join Date
    Nov 2003
    Posts
    1,323
    Wish I knew of a GUI for this but I don't
    From the 80's you must know DOS, so here's some command equivalents:
    http://www.control-escape.com/linux/lx-translate.html

    Not sure what you mean by "how to get out of the root directory".
    cd / ,gets you to the root directory (same as c:\ )
    cd ,gets you to your home directory
    su ,makes you root (administrator), exit with ctrl-d
    cd ,as root (admin) gets you to the roots home directory

  7. #7
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    1,516
    cd .. moves you up one level in the file tree
    cd /home/knoppix moves you to the /home/knoppix folder
    cd /any/path/you/have/ moves you there (if you ave permisions that is).
    ls lists the files.
    ls -l gives a long list of the files in that directory.
    ls -al gives a long list of the files in that directory + shows hidden files
    keep asking, best way to learn.
    for you it might feel odd that the most powerful tools in linux/unix are on the comandline, sad but true.

  8. #8
    Junior Member
    Join Date
    Aug 2004
    Location
    North Carolina
    Posts
    3

    Thank you

    I was making the slash in the wrong direction, and I was using the root shell
    I was trying direct dos commands and was not going where I wanted.
    thank you again I just use konquer and go to where I want then open the shell and I am done.
    thanks.....

    I still can't get ntfs captive to work... any nt I also just found out my disk does not match the md5 so i am going to try again.

  9. #9
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900

    Re: Thank you

    Quote Originally Posted by ph28205
    I was making the slash in the wrong direction,
    Well that's easy. Just remember that Windows is backwards.
    (pun fully intended).

    I still can't get ntfs captive to work... any nt I also just found out my disk does not match the md5 so i am going to try again.
    Now I have never used captive but I do know that the NTFS kernel driver is not very good. Maybe this helps:
    http://www.jankratochvil.net/project/captive/

  10. #10
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900

    Re: Thank you

    Quote Originally Posted by ph28205
    I was making the slash in the wrong direction,
    Well that's easy. Just remember that Windows is backwards.
    (pun fully intended). It think you'll find that the cli under *nix is far more capable and easy to use than DOS.

    I still can't get ntfs captive to work... any nt I also just found out my disk does not match the md5 so i am going to try again.
    Please be sure NOT to use IE to download any .iso images. Use getright or other download manager that supports resuming.
    Now I have never used captive but I do know that the NTFS kernel driver is not very good. Maybe this helps:
    http://www.jankratochvil.net/project/captive/

Similar Threads

  1. Stalling when transferring large files to usb 2.0 drive
    By kjjaeger in forum Hardware & Booting
    Replies: 1
    Last Post: 09-01-2005, 07:37 PM
  2. Large HD Install
    By goudiemark in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 12-23-2004, 12:57 AM
  3. Large extremely important NTFS files...
    By gurdian in forum MS Windows & New to Linux
    Replies: 15
    Last Post: 11-26-2004, 06:39 AM
  4. Splitting large files into external FAT32 HD
    By Tito in forum MS Windows & New to Linux
    Replies: 11
    Last Post: 11-12-2004, 09:50 PM
  5. How do I get large cursors?
    By rozen in forum General Support
    Replies: 1
    Last Post: 07-06-2004, 05:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


IBM SYSTEM x3650 M4 Xeon E5-2609 2.40GHZ 16GB DDR3-1066MHZ 2x 550W PSU TESTED picture

IBM SYSTEM x3650 M4 Xeon E5-2609 2.40GHZ 16GB DDR3-1066MHZ 2x 550W PSU TESTED

$109.95



IBM S822LC 8335-GCA Power 8 2U Server 2xPower8 TESTED - Missing one PCIE riser picture

IBM S822LC 8335-GCA Power 8 2U Server 2xPower8 TESTED - Missing one PCIE riser

$495.00



IBM AC1 7870 BladeCenter Blade Server 2*Xeon X5570 2.93GHz 12GB SEE NOTES picture

IBM AC1 7870 BladeCenter Blade Server 2*Xeon X5570 2.93GHz 12GB SEE NOTES

$11.13



IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD picture

IBM Power S822 12-Bay Server System Power8 Core 3.42Ghz DVD-Rom Drive 64GB No HD

$399.99



IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES picture

IBM 7944AC1 System x3550 M3 Server 1*Intel Xeon X5650 2.67GHz 4GB SEE NOTES

$26.97



IBM System x3500 m3 Server picture

IBM System x3500 m3 Server

$100.00



IBM SYSTEM x3200 M2 Server - HDD wiped, No OS picture

IBM SYSTEM x3200 M2 Server - HDD wiped, No OS

$75.00



IBM Power 740 8205-E6C Express 8-SFF Power7 3.55GHz CPU 64GB RAM *No HDD* Server picture

IBM Power 740 8205-E6C Express 8-SFF Power7 3.55GHz CPU 64GB RAM *No HDD* Server

$191.99



1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray picture

1U IBM x3550 M5 4 Bay SFF SAS3 Server 2x E5-2683 V3 28 Core 128GB DDR4 2x Tray

$318.00



IBM System X3650 Server M2 2 x Xeon X5570 2.93 Ghz w/128 GB/DVDRW picture

IBM System X3650 Server M2 2 x Xeon X5570 2.93 Ghz w/128 GB/DVDRW

$169.99