LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 09-16-2008, 10:02 PM   #1
linux_bazaar
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Rep: Reputation: 0
Unhappy Is it possible to change the filetype descriptor?


My UPS power went "bleep", my system shut down. Boot back up and start getting errors. Well, finally figure out my /var is jacked.
Why? power dip.
How? beats the heck out of me.
How to fix? not sure yet

so we booted to Knoppix

this is what my /var looked like....
?--------- 29 root root 4096 Jan 31 2008 var


now it looks like this

?rwsrwsrwx 29 root root 4096 Jan 31 2008 var


so, chmod works
when I run file against /var, I get...

root@Knoppix:/mnt/sda2# file -s var
var: ERROR: invalid mode 06777


otherwise, file works against text files and other valid directories

lost+found has nothing
e2fsck says all good
so does badblocks

I'm thinking if we can flip the bit back to say it's a directory, it may pull up the rest of it. otherwise, it just may be a painful reinstall.
 
Old 09-18-2008, 02:59 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Sorry for the question, but Knoppix mounts the hard disk(s) read only. Did you remount read-write?
 
Old 09-18-2008, 08:52 PM   #3
linux_bazaar
LQ Newbie
 
Registered: Sep 2008
Posts: 2

Original Poster
Rep: Reputation: 0
Problem solved. back at the LUG last night, we ran e2fsck WITH THE -f option. NOW it finds an inode error (8-bit vs 16-bit) with it recognizing the file type descriptor of '?' as invalid. then we get stuff showing up in lost+found. took us a few more hours but we managed to get it up and running without reinstall. using the system now to post.
 
Old 09-19-2008, 01:56 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Thanks for coming back with the solution .
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Filetype .ps.gz ? zoffmann Debian 5 10-07-2005 04:11 PM
Change File Descriptor ilnli Linux - General 1 05-15-2005 05:43 PM
filetype AGilley007 Slackware 3 07-29-2004 12:13 PM
sid filetype helios the sun Linux - Newbie 7 06-28-2004 05:49 PM
why won't it read this filetype? robster Linux - General 6 02-17-2004 07:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:48 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration