Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to recover my partitions
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
cowboy0629
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2016
Posts: 87
Location: Kawartha Lakes, Ontario

PostPosted: Thu Feb 02, 2017 9:39 pm    Post subject: [SOLVED] How to recover my partitions Reply with quote

Hi all

I was working on copying my gentoo installation from a HDD to a SDD...

I am booted into the gentoo live cd (minimal)

I mkfs.ext4 on sda1 and I should of mkfs ext4 on sdb2

is there anyway to recover sda1 and sda4 or am I starting from scratch?

Mike Dennison


Last edited by cowboy0629 on Tue Feb 14, 2017 3:44 am; edited 1 time in total
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10261
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Feb 02, 2017 9:45 pm    Post subject: Reply with quote

sda4 should be intact after an mkfs on sda1. Is it not?

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
cowboy0629
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2016
Posts: 87
Location: Kawartha Lakes, Ontario

PostPosted: Thu Feb 02, 2017 10:10 pm    Post subject: Reply with quote

Sorry I guess I could of been clearer on what I was saying but I am in panic mode right now... I

mkfs.ext4 on sda2 as well as sda4 sda2 before I realized I was using the wrong partitions

SDA2 is my /boot partition so I could probably get that back by reinstalling the kernel .. but my /root partition was on sda4 I just finished building this machine so I don't have a backup of my .config or anyhting yet but the system does say Superblock backups stored on blocks.. with a bunch of numbers... Im real new to linux and its taken me approx 1 month to setup this laptop with gentoo.. to start over is not going to be fun or easy
Back to top
View user's profile Send private message
ChrisJumper
Advocate
Advocate


Joined: 12 Mar 2005
Posts: 2225
Location: Germany

PostPosted: Fri Feb 03, 2017 12:11 am    Post subject: Reply with quote

Hi Cowboy!

If you have enough Disk Space you could make an image from that partition. And use Kali Linux Youtube -Video to recover your files. You have a chance that your User Files are there.

But to be honest. If your Laptop did not compile slow over days, its not worth. The most information of a fresh gentoo installation, was and is that you learning some stuff. The next time you set up it again it will go faster, maybe two or three days.

Pick yourself an USB-Stick as Backoup with your SSH-Keys, Config-Files or and your favorite Live-Linux as backup.

Good Luck!
Back to top
View user's profile Send private message
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Fri Feb 03, 2017 12:30 pm    Post subject: Reply with quote

I've tried recovering filesystems (and files) on recent Linux versions, and it's
been a waste of time. With earlier filesystems (think 1990) it was just about
possible, but these days it's really easier to rebuild. (Which means you _must_
have valid backups.)

Will
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Fri Feb 03, 2017 3:31 pm    Post subject: Reply with quote

cowboy0629,

All your data is still there but the data the filesystem needs (metadata) to find it is gone.
There is no easy way to reconstruct the the metadata.

You can unpick things by hand, very slowly and you may recover a file or two.
For a fresh install, its not worth the effort.

If you have some valuable user data, testdisk, photorec and tools like that may find something.

Recovery in place is not possible.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
cowboy0629
Tux's lil' helper
Tux's lil' helper


Joined: 11 May 2016
Posts: 87
Location: Kawartha Lakes, Ontario

PostPosted: Tue Feb 14, 2017 3:43 am    Post subject: Reply with quote

Thank-you everyone... I tried test drive etc.. but my linux partition seemed to be gone.. but on the bright side (not) if I wanted I could of recovered the NTSF windows system that was originally on the drive from 2 years ago.... Anyhow.. I decided to take all your advice even though i spent 3 weeks on that install and ruined it all in 1 ms (I learned my lesson make sure to double read the are you sure you want to format the /dev/sda1) I bit the bullet and rebuilt the install and backed up all my main config files like .config and make.conf etc...I just finished the install yesterday and now doing my tweeking although I am having a few issues I didnt have before in my dmesg.. I am slowly getting them concord...


Thank-You all for your quick responses and ideas but this is all the fun of linux live and learn..
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum