old-www/HOWTO/Partition-Rescue/x39.html

261 lines
6.2 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML
><HEAD
><TITLE
>Beginning</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Partition-Rescue"
HREF="index.html"><LINK
REL="PREVIOUS"
TITLE="Revision History"
HREF="x12.html"><LINK
REL="NEXT"
TITLE="Technical info"
HREF="x88.html"></HEAD
><BODY
CLASS="section"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Partition-Rescue</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x12.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="x88.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="AEN39"
></A
>2. Beginning</H1
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="AEN41"
></A
>2.1. What's in</H2
><P
>This HOWTO addresses only the "lost partition table" problem. This can be when: </P
><P
></P
><UL
><LI
><P
>you have no more access to your computer, with the "no operating system" message; </P
></LI
><LI
><P
>you have installed a new system (i.e., MS Windows) and you see no more Linux, and MS Windows takes up all the capacity of the disk; </P
></LI
><LI
><P
>you have just partitioned the wrong drive with fdisk (for example, in the process of changing your hard drive). </P
></LI
></UL
><P
>Here, you will learn that, if you know the right thing and do it, Linux comes usually safe from such things. MS Windows can, but it's luckier. </P
><P
>We will first see what you can do <EM
>before</EM
> the problem to ease future recovery, and what you must do <EM
>after</EM
> to recover. There is little to do to prevent from erasing a disk; usually this is done by automatic MS Windows or Linux-install ill-behaved programs or users' mistakes - nothing can be done to prevent this, except care, but you are already careful, aren't you? </P
><P
>It can also be done by the use of MS-DOS/Windows fdisk. Avoid it as most as you can, but you probably can't. </P
><P
>I have done this many times, on my computer and on other guys' computers, and restored Linux most of the time and MS Windows sometimes. I wish you luck! </P
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="AEN57"
></A
>2.2. What to do right now?</H2
><P
>If you don't have any problem yet, if you read this by curiosity or are just seeking information, and you are on a running Linux system, do immediately the following : </P
><P
></P
><UL
><LI
><P
>open a root terminal or xterm; </P
></LI
><LI
><P
>key in <FONT
COLOR="RED"
>/sbin/fdisk -l</FONT
> (that last character being l for Lima). Then do <FONT
COLOR="RED"
>fdisk -u -l</FONT
>; </P
></LI
></UL
><P
>You will be gratified to see a list of all current partitions, on all disks present on your computer. The second one gives the listing in units of sectors, in place of cylinders, and this is sometimes necessary. </P
><P
></P
><UL
><LI
><P
>Write this back on paper (or do "<FONT
COLOR="RED"
>/sbin/fdisk -l | lpr</FONT
>" and "<FONT
COLOR="RED"
>/sbin/fdisk -u -l | lpr</FONT
>" to print it) and save it in a safe place for future use. If you are not the system administrator, you should not be concerned by the problem, and can stop reading this. </P
></LI
></UL
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="AEN73"
></A
>2.3. Legal stuff</H2
><P
>This HOWTO is Copyright (c) 2000-2008 by Jean-Daniel Dodin. As of November 2003, the licence is LGPL. </P
><P
>I am not responsible of any damage on any computer as a result of anyone reading this HOWTO. If you do any damage, <EM
>it is YOUR fault, NOT MINE</EM
>! Be careful when partitioning disks, and don't make any mistakes, because it can be fatal! Backup all your important data and check that everything you do is correct! What is described here worked on my computer, but it may or may not work on your computer. Although it should work for everyone, I can't guarantee anything. This is the last warning you get: BACKUP IMPORTANT DATA! Or, to put it concisely: Use at your own risk! </P
></DIV
><DIV
CLASS="section"
><H2
CLASS="section"
><A
NAME="AEN78"
></A
>2.4. What do I need to know right now?</H2
><P
>You <EM
>need</EM
> to know that, in case of any major problem with your hard disk, you <EM
>need</EM
> to stop using it in <EM
>write</EM
> mode, at least until the time for you to understand what's happening. Information there is very volatile... </P
><P
>If ever, one morning, awaking, your computer says "can't load, no system installed", you <EM
>must not begin reinstalling all the stuff</EM
>. </P
><P
>If you have MS Windows installed, I can't promise you can recover your data, but it's likely you will recover all your Linux stuff, provided it's not located too low (near the beginning of the disk) in the disk structure. This is because some MS Windows viruses erase the very first disk cylinder, whatever is on. However I didn't ever experiment with such viruses, and can't say for sure. Try recovering, anyway. </P
><P
>You must also know that I give you all this information only for this - information purposes. Neither I nor any other people but you can be held responsible for any problem your data can have using this info. There are too many different systems on the world for anybody being able to promise anything. I can only wish you luck and hope that you, like me, will be happy recovering data. </P
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x12.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="x88.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>Revision History</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Technical info</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>