Solved

File System Problem

Posted on 1998-09-01
6
279 Views
Last Modified: 2010-08-05
I am running SCo Open server release 5.
One of my filesystems has become beyond full and will no longer mount.
when fsck is run, I get the following error on phase 1
DANGER: Filesystem being checked is larger than the device in which it is stored(/dev/usr40). The filesystem is 59472K while the device is 58476K. Backup filesystem and recreate as soon as possible.

My questions are:
1) How do I back it up if I cannot mount it?
2) How has this error occured?

Please could somebody answer this as soon as possible as it is imperitive to my current project deadlines.

Is there just an easy fix?

Thanks in advance
0
Comment
Question by:andyjm
  • 2
  • 2
  • 2
6 Comments
 
LVL 4

Expert Comment

by:jlms
ID: 2006846
I am not SCO expert, but here are some thoughts:

In Solaris you can backup filesystems that are not mounted. Maybe it could be the case in SCO. Read carefully the man page of your bachup command (no tar or cpio, but somethiung specifically designed to take care of filesystems).

 
0
 

Author Comment

by:andyjm
ID: 2006847
jlms
Have you any idea why this could have happened?
I'll try your suggestion
0
 
LVL 4

Expert Comment

by:jlms
ID: 2006848
No idea! If your machine crashed it could be that the i-node table of your filesystem was corrupted, but since I don't have any SCO experience in reality is very difficult to say ...
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Accepted Solution

by:
liuaihui earned 150 total points
ID: 2006849
This error occured because your filesystem has damaged when system crashed.
you can use "fsck -ofull /dev/usr40" command to fix this problem,if it not work,you can use "fsdb" utility to correct filesystem error,but using fsdb must be at good at knowledge of filesystem disk layout,or you may be damage your filesystem.
I think you can follow this steps:
1>into single user mode;
2>#fsdb /dev/usr40
see s_fzise=58476, or s_fsize=59472 ?
if s_fsize=58476, then quit;
if s_fsize=59472,then
512B.p0e (this is fsdb command)
to see disk address 001004 if equal 59472;
001004   (this is fsdb command)
=58476     (this is fsdb command)
q        (this is fsdb command)
3>#fsck -ofull /dev/usr40

Note: before you do this, you must reference man page for "fsdb" utility.

    Good luck to you!
0
 

Expert Comment

by:liuaihui
ID: 2006850
Before using fsdb, you can use "Ghosts" utility to make a copy of your disk.
0
 

Author Comment

by:andyjm
ID: 2006851
liuaihui.

I managed to fix the problem by using dd to copy the raw data to another partition. Then running fsck /dev/usr60.
This then made the 300MB usr60 partition into a 59MB partition.
Rebuilt the usr40 partition with an extra 100MB, and copied the files using tar accross to usr40.

All works fine now.

Thanks for your answer. It was probably the only way I could have fixed it if I had not had enough space elsewhere.

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now