Operating System - HP-UX
1837240 Members
5462 Online
110115 Solutions
New Discussion

mounting other file system hangs

 
SOLVED
Go to solution
Ron Kunzi
Occasional Contributor

mounting other file system hangs

Hi,

Having a little trouble with a HP C-Class workstation running HP-UX 10.20. While booting it hangs right after it says the root device is ok. I am suspecting the second hfs file system /disk2 is not usable and/or the hard drive is bad. It boots up in single user ok, but when I tried to manually mount /disk2 it hangs again. Each time it hangs I have to power reset the workstation. I have checked the syslog.log file for any errors and found nothing there. The last thing I did was run the fsck command on the device file /dev/rdsk/c0t5d0 and it hangs as well. I have seen the dd command used to verify a bad hard disk but can't remember the syntax. Any help would be appreciated. Thanks to all who respond.
7 REPLIES 7
MANOJ SRIVASTAVA
Honored Contributor

Re: mounting other file system hangs

Hi Ron


You should be able to boot the system in single user mode in any case if the OS is fine on the root disk and is not spread on teh 2nd disk . The syntax to check for the second disk is

dd if=/dev/rdsk/c0t5d0 of=/dev/null and check whether it gives you I/O error or not.


Manoj Srivastava
Pete Randall
Outstanding Contributor

Re: mounting other file system hangs

Ron,

Add a block size to the dd command Manoj gave you so it doesn't take forever:
dd if=/dev/dsk/c0t5d0 of=/dev/null bs=1024k

Pete

Pete
Helen French
Honored Contributor

Re: mounting other file system hangs

1) Boot in single user mode.
2) Run STM to check the disk drive.
3) Run dd command to check it:
# dd if=/dev/dsk/cxtydz of=/dev/null bs=64k
4) Run diskinfo:
# diskinfo /dev/rdsk/cxtydz
Life is a promise, fulfill it!
S.K. Chan
Honored Contributor
Solution

Re: mounting other file system hangs

As far as the syntax goes ..

# dd if=/dev/rdsk/c0t5d0 of=/dev/null bs=1024k

In single user mode does "ioscan" sees it ? Does it respond to "diskinfo" command ?

# ioscan -fnC disk
# diskinfo /dev/rdsk/c0t5d0

You can also run STM to find out if the disk is ok or not ..

# cstm
cstm> map
cstm> sel dev
cstm> info
cstm> infolog
Luc Bussieres_1
Trusted Contributor

Re: mounting other file system hangs

Ron,

I would also suggest you to first run a diskinfo on your disk:
#diskinfo /dev/rdsk/c0t5d0
if the size of the disk is 0 or if there is no info for your disk then the disk is completly bad. If you have some info and the size is correct then you could continue with the dd:
#dd if=/dev/rdsk/c0t5d0 of=/dev/null bs=1024k
to verify if you could read the content of the disk. if it comes back with I/O errors you have a bad disk.

Luc
Sanjay_6
Honored Contributor

Re: mounting other file system hangs

Hi Ron,

Looks like you have a faulty disk in your system. What is your ioscan output. Also try diskinfo for the other disks.

Hope this helps.

Regds
W. Michael King
Frequent Advisor

Re: mounting other file system hangs

Don't forget the little things. Try unplugging the cable and replugging (is replugging a word?) it back in. Can't say how many SCSI problems I've had that this little procedure has "fixed" for me.
"They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin, Historical Review of Pennsylvania, 1759