Find the answer to your Linux question:
Results 1 to 4 of 4
Hi everybody, I have a partition of size 18 GB on my FC4 system. I accidentally overwrite this partition with dd command by a file of size 2 MB . ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie
    Join Date
    Jul 2004
    Posts
    143

    file system problem


    Hi everybody,

    I have a partition of size 18 GB on my FC4 system.

    I accidentally overwrite this partition with dd command by a file of size 2 MB.

    Now I am unable to mount the partition.

    How can I recover my superblock from alternative super block.

    Or please suggest any open source data recovery tools for ext3 file system.

    Please help me.

    Thanks Inadvance,
    Mummaneni.

  2. #2
    Linux User twoHats's Avatar
    Join Date
    Jan 2005
    Location
    NH, USA
    Posts
    280

    Wow!

    Hi Mummaneni...

    I looked up dd <never came across that one b4> and it says "Convert and copy a file" with tons of cryptic switches etc...

    How converting and/or copying a 2MB file could wreck an 18MB partition is a mystery ... Unless(!)... ah but lets not guess.

    First - in looking at fdisk man page i see:
    ============================

    BE EXTREMELY CAREFUL if you use the dd command, since a small typo can make all of the data on your disk useless.
    ============================
    This sounds ominous ...

    I would try:
    Code:
    fdisk -l
    See if you can spot your partition ...

    Let us know ...
    - Clouds don't crash - Bertrand Meyer

    registered Linux user 393557

    finally - hw to brag about - but next year it will look pitifully quaint:
    Athlon64 X2 3800 - 1G PC3200 - 250G SATA - ati radeon x300
    circa 2006

  3. #3
    Linux Newbie
    Join Date
    Jul 2004
    Posts
    143
    Hi,

    The partition is being listed when i fdisk -l.
    fdisk -l
    /dev/hdc6 3266 9733 51954178+ 83 Linux

    But the problem is i am unable to mount the partition.

    # mount /dev/hdc6
    mount: wrong fs type, bad option, bad superblock on /dev/hdc6,
    missing codepage or other error
    In some cases useful info is found in syslog - try
    dmesg | tail or so


    I think super block might be corrupted.

    Thanks & Regards,
    Mummaneni.

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    use 'fsck' command to check and fix filesystem.




    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •