Solved

File System Problem

Posted on 1998-09-01
6
272 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
How to improve IO of Solaris machine 15 71
Help stop mail server from sending spam. 27 117
NTP Server in VMware 5 115
Python Assistance 7 36
Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
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 get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.:

759 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

25 Experts available now in Live!

Get 1:1 Help Now