You are not logged in.

#1 2009-09-06 23:51:17

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Just killed partition table

Hi, I was trying out larch and I chose sda2 instead of sdb1, I still have access to all my files and patitions for now.
I know I shouldn't restart, is there anything I can do to fix the partitioning without losing data?

*goes to start a backup*

Offline

#2 2009-09-07 00:10:37

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Just killed partition table

If you're sure it's just the partition table, either reconstruct the original table from a backup (preferably) or from memory (known to be unreliable), or else use gpart to guess the original table.

Offline

#3 2009-09-07 21:33:17

some-guy94
Member
Registered: 2009-08-15
Posts: 360

Re: Just killed partition table

tomk wrote:

If you're sure it's just the partition table, either reconstruct the original table from a backup (preferably) or from memory (known to be unreliable), or else use gpart to guess the original table.

THANK YOU.

Here what I did:
* Save /proc/partitions
* Load the archlinux live cd
* Started parted
* Blocks are approximately equal to kiB so I did 'unit kiB'
* From there its just 'rescue FIRSTFREEKiB FIRSTFREEKiB+PARTITIONSIZE'
* The only problem is with extended partitions  (not ext2/3/4), those need to manually be made

BTW, I have one ext4 partition which is reported by parted as ext3. Is there anyway to change it, or is it even a problem ?

Offline

Board footer

Powered by FluxBB