Skip navigation

Terminal Command needed- SuperBlocks

727 Views 12 Replies Latest reply: Apr 10, 2013 5:32 PM by baltwo RSS
darrylfromsaskatoon Calculating status...
Currently Being Moderated
Mar 8, 2013 4:59 AM

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 (59,150 points)
    Currently Being Moderated
    Mar 7, 2013 11:44 PM (in response to darrylfromsaskatoon)

    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.  

    27" i7 iMac SL, Lion, OS X Mountain Lion (10.8.2), G4 450 MP w/Leopard, 9.2.2
  • Frank Caggiano Level 7 Level 7 (22,760 points)
    Currently Being Moderated
    Mar 8, 2013 6:31 AM (in response to darrylfromsaskatoon)

    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.

  • Frank Caggiano Level 7 Level 7 (22,760 points)
    Currently Being Moderated
    Mar 8, 2013 8:08 AM (in response to darrylfromsaskatoon)

    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

  • baltwo Level 9 Level 9 (59,150 points)
    Currently Being Moderated
    Mar 8, 2013 11:33 AM (in response to darrylfromsaskatoon)

    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

    27" i7 iMac SL, Lion, OS X Mountain Lion (10.8.2), G4 450 MP w/Leopard, 9.2.2
  • baltwo Level 9 Level 9 (59,150 points)
    Currently Being Moderated
    Mar 8, 2013 1:05 PM (in response to darrylfromsaskatoon)

    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.

    27" i7 iMac SL, Lion, OS X Mountain Lion (10.8.2), G4 450 MP w/Leopard, 9.2.2
  • baltwo Level 9 Level 9 (59,150 points)
    Currently Being Moderated
    Apr 10, 2013 5:32 PM (in response to darrylfromsaskatoon)

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

    27" i7 iMac SL, Lion, OS X Mountain Lion (10.8.3), G4 450 MP w/Leopard, 9.2.2

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.