I thought this might help: (copied from jwalanta.blogspot.com)
If you have broken ext2/ext3 filesystem, these two commands can be
your lifesaver. Atleast it brought my friend Abish's HDD 'out of coma'
;)
He had his important files in an ext3 filesystem which wasnt being
mounted. It turned out that it had its journal broken. Did everything
from disabling the file system's journal to trying out alternate
superblocks. Even tried to convert it to ext2 format. fsck.ext3 didnt
seem to repair a thing and hacks using tune2fs also didnt turn out
good. We were on verge of finally letting go of data and formatting
the hdd.
Then i found debugfs. The man page reads,
debugfs - ext2/ext3 file system debugger. The debugfs program is
an interactive file system debugger. It can be used to examine and
change the state of an ext2 file system.
Surprisingly debugfs seemed to list the files and folders of the
filesystem. Cool enough, it also has a tool called rdump which
recursively dumps a folder to another mounted disk.
So after invoking
# debugfs /dev/sda1
debugfs: rdump /home/ /mnt/externalhdd
and all the files were dumped to the external hdd safely. Simple, yet awesome!
On 7/12/08, Abhishek Singh <[EMAIL PROTECTED]> wrote:
>
> Dear Bipin,
> Although it's not clear from your statement of the problem
> regarding whether the you mistakenly deleted/erased the linux partitions
> while installing windows, or you are unable to find a boot entry for you
> linux, I'm making these assumptions:
> 1. You had previously installed Fedora 7
> 2. You were using dual boot (Fedora 7 and Windows)
> 3. While re-installing Windows, you lost your boot entry for Fedora 7 in
> your boot loader.
>
> Well, in this case, you can restore your Linux Entry (i.e. GRUB Bootloader)
> by following these steps:
> 1. Boot from the Fedora 7 CD/DVD
> 2. Select "Rescue" from the boot menu (alternatively you can type "linux
> rescue" at the boot prompt.
> 3. A dialog will appear asking you if you would like to mount read-only or
> read-write, continue with read-write (don't select read-only or don't
> cancel).
> 4. It will mount your Fedora 7 Installation directory at /mnt/sysimage and
> it will drop you to the shell. At the shell, type:
> chroot /mnt/sysimage
> 5. Hence you have set your root partition to the Fedora 7 original
> installation. Now check the partitions at the shell using:
> fdisk -l
> 6. There must be entries like /dev/sda1, /dev/sda2 etc. Check in which disk
> is Fedora 7 installed (I assume that it's in /dev/sdax, where "x" is a
> number like 1,2,...). This means that Fedora 7 is installed in the first
> primary harddisk.
> 7. Now run this command at shell:
> grub-install /dev/sda
> Note: Don't forget to change /dev/sda with the actual entry at
> your computer
> 8. Reboot. You'll get your GRUB (boot loader) restored.
>
> Regards,
> Abhishek Singh
>
>
> bipin bhattarai wrote:
> thanks friend
>
>
> On 7/12/08, Ujwal Shrestha <[EMAIL PROTECTED]> wrote:
> > Try to recover through GRUB.
> > GRUB can be found in other fedora disk or any other equivalent linux
> system.
> >
> >
> > On Sat, Jul 12, 2008 at 8:01 AM, bipin bhattarai <[EMAIL PROTECTED]>
> wrote:
> >
> > >
> > > i've used linux in separate drive and formated my windows later i found
> my linux(fedora7) was lost amd the drive is empty.since i have created my
> drive from fdisk current window cant recognise it .........
> > > what can i do for that
> > >
> > >
> >
> >
> >
> > --
> > Regards
> > Ujwal Shrestha
> >
> >
>
>
> >
>
>
>
--
-Abish
--~--~---------~--~----~------------~-------~--~----~
FOSS Nepal mailing list: [email protected]
http://groups.google.com/group/foss-nepal
To unsubscribe, e-mail: [EMAIL PROTECTED]
Community website: http://www.fossnepal.org/
-~----------~----~----~----~------~----~------~--~---