Find the answer to your Linux question:
Results 1 to 3 of 3
I made a stupid mkswap mistake. I typed mkswap /dev/hda7 instead of mkswap /dev/hda6 and of course hda7 is where my important data is. Now I - newbie - don't ...
  1. #1
    Just Joined!
    Join Date
    Apr 2006
    Posts
    3

    Unhappy HELP!: my stupid mkswap mistake

    I made a stupid mkswap mistake. I typed

    mkswap /dev/hda7

    instead of mkswap /dev/hda6

    and of course hda7 is where my important data is. Now I - newbie - don't know how to get my data back!

    Grateful for help


    Richard

  2. #2
    Linux Newbie
    Join Date
    Dec 2004
    Location
    Barrie, Ontario
    Posts
    219
    mkswap (or mke2fs, etc) is just like DOS's format command... your data is gone
    Blog - KB5UMQ - Linux User #272983
    3 Rules:
    1) "It doesn't work..." is simply not useful information.
    2) Don't cross post!
    3) If you are asking for help, start by telling us your distro/os and version.

  3. #3
    Linux User
    Join Date
    Feb 2006
    Posts
    484
    try fsck on hda7

    login with root account
    umount the drive and type
    fsck -fVa /dev/hda7

    or try some windows based program like Get Data Back

    and i advise to you think before do anything dangerous thing.

Posting Permissions

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