Link to home
Create AccountLog in
Avatar of kaka123
kaka123

asked on

I am unable to run fsck on /

Hi ,

  I am getting this error on solaris 10 when i try to boot from SAN LUN ...
The / file system (/dev/rdsk/XXXXXXX) is being checked.

WARNING - Unable to repair the / filesystem. Run fsck
manually (fsck -F ufs /dev/rdsk/XXXXXX).

Mar  6 15:55:30 svc.startd[7]: svc:/system/filesystem/usr:default: Method "/lib/svc/method/fs-usr" failed with exit status 95.
[ system/filesystem/usr:default failed fatally (see 'svcs -x' for details) ]
Requesting System Maintenance Mode
(See /lib/svc/share/README for more information.)
Console login service(s) cannot run

Root password for system maintenance (control-d to bypass):
single-user privilege assigned to /dev/console.
Entering System Maintenance Mode

Mar  6 15:56:11 su: 'su root' succeeded for root on /dev/console
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
when i try to run the fsck i get this message that
Can't stat /dev/rdsk/XXXXX
ASKER CERTIFIED SOLUTION
Avatar of yuzh
yuzh

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
To be able to fsck / filesystem, boot your system to single user mode. If you fail to run fsck in single user mode, then it could be that you don't have the right perms on the SAN volume.
If Solaris cannot repair the file system automatically, I asks for help

Simply login in with the root password and run
   fsck /
or
    fsck /dev/rdsk/XXXXXX
exactly as displayed.

If you still cannot stat the device: What do you see, running
    format < /dev/null

When done, exit the shell and boot will proceed. You may want to
reboot (init 6) right after this to make sure everything will be OK
for the next reboot.