Solved

File System Problem

Posted on 1998-09-01
6
309 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

717 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