Duke-UNC Brain Imaging and Analysis Center
BIAC Forums | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password   Forgot your Password?
 All Forums
 Support Forums
 Analysis Software Support
 Problem on unzip FreeSurfer Tutorial Data
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xu
Junior Member

25 Posts

Posted - Mar 21 2008 :  1:52:39 PM  Show Profile  Reply with Quote
Hi,
After I download FreeSurfer tutorial data from following web site, and I got a trouble to unzip the data, anyone knows what my problem is?
ftp://surfer.nmr.mgh.harvard.edu/pub/dist/buckner_data-tutorial_subjs.tar.gz
Thanks,
Amy

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Mar 21 2008 :  1:55:13 PM  Show Profile  Reply with Quote
This is a gzip-compressed "tar" file, so unzip won't work. You can uncompress and extract this data using:

tar -xvzf buckner_data-tutorial_subjs.tar.gz
Go to Top of Page

xu
Junior Member

25 Posts

Posted - Mar 21 2008 :  2:52:40 PM  Show Profile  Reply with Quote
Thanks Syam.
quote:
Originally posted by syam.gadde

This is a gzip-compressed "tar" file, so unzip won't work. You can uncompress and extract this data using:
tar -xvzf buckner_data-tutorial_subjs.tar.gz


I tried following:

[xu@golgi: .../FreeSurfer_Data] $ tar -xvzf buckner_data-tutorial_subjs.tar.gz
tar: Not a recognized flag: z
Usage: tar -{c|r|t|u|x} [-BdFhilmopsvw]
[-Number] [-fFile]
[-bBlocks] [-S [Feet] [Feet @Density] [Blocksb]]
[-LInputList] [-NBlocks] [-C Directory] File ...

[xu@golgi: ... /FreeSurfer_Data]$ tar -xvf buckner_data-tutorial_subjs.tar.gz
tar: 0511-169 A directory checksum error on media; 0 not equal to 70436.

What is wrong above?
Thanks,

Amy
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Mar 21 2008 :  2:55:01 PM  Show Profile  Reply with Quote
Apparently tar on golgi does not support uncompression. Try:

gzip -dc buckner_data-tutorial_subjs.tar.gz | tar -xvf -
Go to Top of Page

xu
Junior Member

25 Posts

Posted - Mar 21 2008 :  4:08:30 PM  Show Profile  Reply with Quote
Thanks Syam, I got.
But end of uncompression file I got message as:

gzip: buckner_data-tutorial_subjs.tar.gz: unexpected end of file
tar: 0511-169 A directory checksum error on media; 1 not equal to 64078.

Should I ignore this message?

Amy
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Mar 21 2008 :  4:15:22 PM  Show Profile  Reply with Quote
It's unclear why you got the error message. However, you can verify that the output is the right size like this:

gzip -l buckner_data-tutorial_subjs.tar.gz

That will tell you what the compressed and uncompressed size of the total data is in bytes. Then you can find out how much space is used in the output directory (I don't know what it is called, so I'm calling it buckner_data-tutorial_subjs) in kilobytes:

du -k -s buckner_data-tutorial_subjs

The first number should be around 1000 times the second (They won't be exact)
Go to Top of Page

xu
Junior Member

25 Posts

Posted - Mar 21 2008 :  4:34:41 PM  Show Profile  Reply with Quote
Thanks Syam,
I tried:
[xu@golgi: ... /FreeSurfer_Data] $ gzip -l buckner_data-tutorial_subjs.tar.gz
compressed uncompr. ratio uncompressed_name
628658632 187534915 -235.2% buckner_data-tutorial_subjs.tar

[xu@golgi: ... /FreeSurfer_Data] $ du -k -s Buckner_data
912324 Buckner_data

Above shows uncompressed files are much smaller than compressed one, right?

Amy
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Mar 24 2008 :  10:56:36 AM  Show Profile  Reply with Quote
I think it means that the standard gzip/tar on golgi can't handle the size of this tar file.

I installed an updated version of tar, maybe this will work better:

/usr/local/packages/tar-1.14/bin/tar -xvzf buckner_data-tutorial_subjs.tar.gz
Go to Top of Page

xu
Junior Member

25 Posts

Posted - Mar 24 2008 :  11:38:08 AM  Show Profile  Reply with Quote
Syam,
Thanks a lot. I got same results and closer error message as before:

gzip: stdin: unexpected end of file
/usr/local/packages/tar-1.14/bin/tar: Unexpected EOF in archive
/usr/local/packages/tar-1.14/bin/tar: Unexpected EOF in archive
/usr/local/packages/tar-1.14/bin/tar: Error is not recoverable: exiting now

Amy
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Mar 24 2008 :  11:56:11 AM  Show Profile  Reply with Quote
It looks like your tar.gz file is not complete? I looked at the freesurfer download ftp site, and the file looks like it should be 7GB?

7141194279 buckner_data-tutorial_subjs.tar.gz

But it looks like your file is only 600MB or so? (628658632)
Go to Top of Page

xu
Junior Member

25 Posts

Posted - Mar 24 2008 :  2:06:51 PM  Show Profile  Reply with Quote
Syam,
Do you know why I got following problem:

[xu@golgi: /] $ ftp surfer.nmr.mgh.harvard.edu
ftp: connect: A remote host did not respond within the timeout period.

Thanks,

Amy
Go to Top of Page

syam.gadde
BIAC Staff

USA
421 Posts

Posted - Mar 24 2008 :  2:10:14 PM  Show Profile  Reply with Quote
You cannot access servers outside of BIAC from golgi, apparently.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
BIAC Forums © 2000-2010 Brain Imaging and Analysis Center Go To Top Of Page
This page was generated in 0.5 seconds. Snitz Forums 2000