?
Solved

File System Problem

Posted on 1998-09-01
6
Medium Priority
?
313 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
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Accepted Solution

by:
liuaihui earned 600 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
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 find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses

770 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