image
image

Go Back   macosx.com > Mac Help Forums > Unix & X11

Reply
 
LinkBack Thread Tools
  #1  
Old February 15th, 2003, 07:44 PM
Registered User
 
Join Date: Jun 2002
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
keyizm is on a distinguished road
How do you run fsck on 2nd hd?

when i reboot my machine and hold down "Apple+S" to get the machine to boot into single user mode, how do i get the fsck from there to run on my 2nd hard drive as well as my 1st hard drive? it seems that fsck only runs on the primary drive and not the 2nd and i can't figure out how to get it to run and check the 2nd drive. any ideas or suggestions would be great!!!
Reply With Quote
  #2  
Old February 16th, 2003, 11:16 PM
Darkshadow's Avatar
wandering shadow
 
Join Date: Jul 2001
Location: DE, USA
Posts: 1,532
Thanks: 0
Thanked 0 Times in 0 Posts
Darkshadow is on a distinguished road
Ok...here ya go:

in the Terminal (or at the console after you've done command-s):

mount - type this to find out what device the drive you want to do fsck is (i.e. /dev/disk0s9, or something like that)

sudo -s newfs -N /dev/rdiskXsX

(Note the r there - it's important!)

This command is to make a new file system, but with the -N option, it just displays the file system at the given device. At the end of the output it will have a line that says super-block backups (for fsck -b #) - you use one of these for fsck.

Then you would type fsck -b block # /dev/diskXsX and fsck should check the other hard drive fine for it.

Note: if you don't feel like trying out newfs, one of the super-block backups is usually on block 32 on any drive - so you could try fsck -b 32 /dev/diskXsX and it will most likely work.

2nd Note: This won't work if the drive is mounted read/write, it needs to be mounted read-only.
__________________
I am but a lonely shadow,
Doomed forever to roam and wander.
But if you allow me to pause before I must go,
I'll spin you tales of mystery and wonder.


Site: Night Productions
Reply With Quote
  #3  
Old February 16th, 2003, 11:47 PM
edX's Avatar
edX edX is offline
mac shaman
 
Join Date: Nov 2001
Location: SF Bay Area
Posts: 7,268
Thanks: 0
Thanked 0 Times in 0 Posts
edX is on a distinguished road
not to take all the fun out of typing and learning unix commands, but you can accomplish the same thing by launching disk utility and verifying and repairing the disks.
__________________
20" 2ghz iMac G5 | 2GB ram | os 10.4 | 15" Ti PB 867 | 1 gb ram | os 10.3.9 | grape imacDV 400mhz | 512 mb ram | os10.2.8/9.2.2 | smc barricade router w/sbc yahoo dsl | HP psc-2355 all-in-one printer | graphire2 | Living happily ever after, every now and then
Reply With Quote
  #4  
Old February 17th, 2003, 12:56 AM
Registered User
 
Join Date: Jun 2002
Posts: 72
Thanks: 0
Thanked 0 Times in 0 Posts
keyizm is on a distinguished road
thanks BOTH OF YOU!! i'm no unix nut so i'll stick with the 2nd method. i just feel silly for not thinking of that one myself
Reply With Quote
  #5  
Old February 17th, 2003, 01:14 AM
Darkshadow's Avatar
wandering shadow
 
Join Date: Jul 2001
Location: DE, USA
Posts: 1,532
Thanks: 0
Thanked 0 Times in 0 Posts
Darkshadow is on a distinguished road
Quit takin the fun outta everything Ed!

Really though, I hadn't thought of that. Sometimes I get too technical
__________________
I am but a lonely shadow,
Doomed forever to roam and wander.
But if you allow me to pause before I must go,
I'll spin you tales of mystery and wonder.


Site: Night Productions
Reply With Quote
Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
fsck says "Invalid Node Structure" gyounis Mac OS X System & Mac Software 2 April 15th, 2003 04:01 PM
fsck: why doesn't it report AND why won't it fix? davidc Mac OS X System & Mac Software 1 January 17th, 2003 09:20 AM
run install on a cd from command line stephen Unix & X11 2 June 4th, 2002 08:54 AM
Carbon applications made with Project Biulder doesn't run on mac os stallo Software Programming & Web Scripting 0 October 15th, 2001 11:01 AM


All times are GMT -5. The time now is 04:10 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.0 RC1
Copyright 2000-2010 DigitalCrowd, Inc.