12 Replies Latest reply: Apr 10, 2013 5:32 PM by baltwo
darrylfromsaskatoon Level 1 Level 1 (0 points)

What I wouldn't give for a full list of Terminal Commands for OS10.6.8

 

I desperately need to figure out how to use Terminal to list the alternate Super-blocks for an external RAID 0 so I can tell it to use one. The syntax / command to get the drive to list its alternate super-blocks is a mystery to me after 2 days of trying / googling / forum posting etc.

  • baltwo Level 9 Level 9 (61,835 points)

    darrylfromsaskatoon wrote:

    What I wouldn't give for a full list of Terminal Commands for OS10.6.8

    https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages /index.html and click on the ALL button. Should be everything, since I don't think anything's changed in Lion or ML.

     

    AFAIK, diskutil is the command for doing RAID stuff.

     

    BTW, I'll take another 27" i7 iMac capable of running Snow Leopard, as payment.  

  • Frank Caggiano Level 7 Level 7 (25,695 points)

    And don't forget apropos and whatis from the comand line to locate commands.

     

    some searching tured up

     

    newfs_hfs -N /dev/disk list out the parameters for the disk. this is for an hfs formatted volume.

  • darrylfromsaskatoon Level 1 Level 1 (0 points)

    baltwo wrote:

     

    darrylfromsaskatoon wrote:

    What I wouldn't give for a full list of Terminal Commands for OS10.6.8

    https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages /index.html and click on the ALL button. Should be everything, since I don't think anything's changed in Lion or ML.

     

    AFAIK, diskutil is the command for doing RAID stuff.

     

    BTW, I'll take another 27" i7 iMac capable of running Snow Leopard, as payment.  

     

    That is a lovely haystack - now to find the needle.  

  • darrylfromsaskatoon Level 1 Level 1 (0 points)

    Frank Caggiano wrote:

     

    And don't forget apropos and whatis from the comand line to locate commands.

     

    some searching tured up

     

    newfs_hfs -N /dev/disk list out the parameters for the disk. this is for an hfs formatted volume.

    newfs_hfs -N /dev/disk returned the following result:

    /dev/disk10 is mounted on /Volumes/ Bunyonold

     

    Bunyonold is the name of teh RAID I am trying to get the alternate superblocks for.

    [ yes, there is a space before the name but that has not caused any other issues in years of using the RAID ]

     

    Also, you know when you order a simple cup of coffee in a french restaurant in french (with a good accent) and the waiter thinks you speak french so they talk a mile a minute in french and you sit there with a blank stare and mumble, "Oui?"

     

    Yeah, I don't really speak 'Command' or 'Terminal' - I am just a noobie. 

     

    Thaks for help thus far....

  • Frank Caggiano Level 7 Level 7 (25,695 points)

    It might help if you told us the make of the RAID box and other other particulars like how it is formatted etc.

     

    As I wrote the newfs_hfs command is for hfs formatted volumes. There are other newfs commands for different formats.

     

    As an example if I run that comand on my internal drive I get

     

    976773168 sectors (512 bytes per sector)

    HFS Plus format parameters:

              volume name: "untitled"

              block-size: 4096

              total blocks: 122096646

              first free catalog node id: 16

              catalog b-tree node size: 8192

              initial catalog file size: 177209344

              extents b-tree node size: 4096

              initial extents file size: 9437184

              attributes b-tree node size: 8192

              initial attributes file size: 203423744

              initial allocation file size: 15265792 (3727 blocks)

              data fork clump size: 65536

              resource fork clump size: 65536

  • darrylfromsaskatoon Level 1 Level 1 (0 points)

    darrylfromsaskatoon wrote:

     

    Frank Caggiano wrote:

     

    And don't forget apropos and whatis from the comand line to locate commands.

     

    OK, I played with both of these commands and see that they are potentially helpful.

    Funny thing, "whatis super-block" and "superblock" return "nothing appropriate" which is kinda weird since when I try to fsck the drive/RAID, I get a message saying "bad super-block: wrong magic number'

  • darrylfromsaskatoon Level 1 Level 1 (0 points)

    Frank Caggiano wrote:

     

    It might help if you told us the make of the RAID box and other other particulars like how it is formatted etc.

     

    http://www.plan9films.com/guest/edit2-profile.txt

     

    This link sums up the set up:

    The external box is an MacGurus 5 bay Burly Box eSAta box with port multiplier card built in. 5 x 2Tb Seagate drives in Striped RAID.  CalDigit eSata Card in a MacPro1,1

     

    ALSO:

    - I have had the drive bays in multiple identical boxes and same problem so I've ruled out the box.

    - other similar boxes work on same card so that works


  • baltwo Level 9 Level 9 (61,835 points)

    darrylfromsaskatoon wrote:

    That is a lovely haystack - now to find the needle.  

    But, it is what you asked for. As for the super-block thing, see http://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/ 10.6/man5/inode.5.html

  • darrylfromsaskatoon Level 1 Level 1 (0 points)

    baltwo wrote:

     

    darrylfromsaskatoon wrote:

    That is a lovely haystack - now to find the needle.  

    But, it is what you asked for. As for the super-block thing, see http://developer.apple.com/library/mac/#documentation/Darwin/Reference/Manpages/ 10.6/man5/inode.5.html

    Thanks baltwo

     

    I see at the link you provided what could prove to be VERY helpful info... if the fsck I started ever ends and I'm able to try any of it.

     

    My understaing is that there is no real safe way to interrupt an fsck process... please correct me if I'm wrong

     

    I am likely leaving soon for the day (and possibly the entire weekend) but will let you know if I can indeed take advantage of the help you have provided.

     

    Thanks again.

  • baltwo Level 9 Level 9 (61,835 points)

    My understaing is that there is no real safe way to interrupt an fsck process... please correct me if I'm wrong

    Never tried, so can't answer. Good luck.

  • darrylfromsaskatoon Level 1 Level 1 (0 points)

    darrylfromsaskatoon wrote:

     

    What I wouldn't give for a full list of Terminal Commands for OS10.6.8

     

    I desperately need to figure out how to use Terminal to list the alternate Super-blocks for an external RAID 0 so I can tell it to use one. The syntax / command to get the drive to list its alternate super-blocks is a mystery to me after 2 days of trying / googling / forum posting etc.

    After MUCH futzing, I ended up sending the entire box (10TB over 5 drives in RAID 0) to a data recovery place. 9 TB of data and no real way to cherry pick what to recover so final costs - a little over $2,500. It now seems that the bay that the 'bad' drive was in is a little flakey. when trying to copy from data recovery drives so.... did that cause the problem, was it the power supply failure or.... hmmmm

  • baltwo Level 9 Level 9 (61,835 points)

    Thanks for the feedback. I don't do RAID stuff, so can't comment on its usage.