Solved

Kernel/Disk hackers only

Posted on 2000-04-17
2
283 Views
Last Modified: 2011-04-14
I have a 40G drive that I have been running under 2.2.14 and later for quite a while. Yesterday, I accidentially auto-mounted the drive under kernel 2.2.13.  Since it can't handle that large of a drive layout, it did lots of nasty things to my drive. (They scrolled by too fast to see) Now I've got lots of unknown filetypes, and directories that want to be files. For example:

?---------   0 root     root            0 Dec 31  1969 in

Under 2.2.13, fdisk thinks:

Disk /dev/hdc: 32 heads, 63 sectors, 6935 cylinders
Units = cylinders of 2016 * 512 bytes
   Device Boot    Start       End    Blocks   Id  System
/dev/hdc1             1     39703  40020592+  83  Linux native
Command (m for help): v
Total allocated sectors 80041186 greater than the maximum 13980960

My question is: When I go back to a sane kernel, is there a way to recover my information?

*Experts only, please*
0
Comment
Question by:dmag
2 Comments
 
LVL 4

Accepted Solution

by:
kiffney earned 300 total points
ID: 2726929
Booting to the older kernel probably didn't do anything to your drive.  Just boot back to the newer kernel.  Booting doesn't change the master boot record or the partition table.  (Running 'lilo' does, but you didn't do that, right?)  It's possible that some of the files in  /var/log/ may be messed up.  But you should not do anything else under that kernel because you do run the risk of corruption if you write a bunch of files before you switch.  And when you do switch back, make sure to edit /etc/lilo.conf so that you can't boot to the old kernel any more.  

If you do have any problems, you can sometimes recover with 'debugfs'.  However, it's complicated and probably unnecessary, and if you fool with it when you don't need to, you could cause REAL problems.  So just boot back to 2.2.14 in 'single' mode, runs fsck, and if there are problems, post back here.
0
 
LVL 1

Author Comment

by:dmag
ID: 2745719
Hey, you were right. I thought it did nasty things to my drive..
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

Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

707 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

15 Experts available now in Live!

Get 1:1 Help Now