Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Disk Partition damaged - how can I rescue damaged partition


    I had Ubuntu 12.10 running on a single disk partition for two years. I decided to add two new partitions for other Linux distros (Kubuntu 14.04 )

    Decided to install Kubuntu 14.04 on a separate partition as a dual boot.

    Partitioned disk , using Parted, with /dev/sda1 200GB
    /dev/sda3 200GB
    /dev/sda5 560GB


    intended one partition as spare,

    --

    After Kubuntu14.04 installed, the original Ubuntu12.10 has disappeared. Kubuntu14 is booting , but with some strange effects ( the GUI is seeing some partitions but these are not in /etc/fstab )

    My original Ubuntu12.10 looked to have disappeared completely.

    What Gparted shows is that Kubuntu 14 has shoved the installation into a brand new partition /dev/sda6 ( which I did not define and certainly not the one I chose ). And worse, the Ubuntu12.10 installation has had its partition clobbered ( it was an ext4 partition - now undefined ).

    I suspect that GRUB and or MBR on /dev/sda1 has been hammered.

    I suspect that I can re-install GRUB and MBR or /dev/sda1 but has anyone done exactly that before?

    Any suggestion on rescuing the original 12.10 installation in /dev/sda1 would be helpful.

    Thanks

  2. #2
    Linux Guru
    Join Date
    Dec 2013
    Posts
    2,747
    i'm not sure i understand.

    it could be you can get all your partitions, data and installations back.

    it could also be that you really destroyed some vital part of the file system - in that case you should restore data with testdisk/photorec.

  3. #3

    Magic Number problem:

    Quote Originally Posted by nihili View Post
    i'm not sure i understand.

    it could be you can get all your partitions, data and installations back.

    it could also be that you really destroyed some vital part of the file system - in that case you should restore data with .

    I ran fsck and got the following:
    Alignment off by 3584 bytes and bad magic number:



    euclid:~$ sudo mke2fs -n /dev/sda1
    mke2fs 1.42.9 (4-Feb-2014)
    /dev/sda1 alignment is offset by 3584 bytes.
    This may result in very poor performance, (re)-partitioning suggested.
    Filesystem label=
    OS type: Linux
    Block size=4096 (log=2)
    Fragment size=4096 (log=2)
    Stride=0 blocks, Stripe width=0 blocks
    12804096 inodes, 51201163 blocks
    2560058 blocks (5.00%) reserved for the super user
    First data block=0
    Maximum filesystem blocks=0
    1563 block groups
    32768 blocks per group, 32768 fragments per group
    8192 inodes per group
    Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
    4096000, 7962624, 11239424, 20480000, 23887872


    Any advice on how I could rescue this partition welcome

    Thanks

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Dec 2013
    Posts
    2,747
    -->
    Quote Originally Posted by nihili View Post
    in that case you should restore data with testdisk/photorec.
    and after that nuke the disk with dd and start from scratch.

Posting Permissions

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