Solved

Kernel/Disk hackers only

Posted on 2000-04-17
2
285 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
AD LDAP LDS 3 66
How to Remove files with a Date in the Filename with Linux Scripting 3 44
Run same command on multiple files in Linux 3 32
ftp to port 21 4 43
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

772 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