Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
live heart surgery
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
Carel
n00b
n00b


Joined: 26 Jun 2010
Posts: 15

PostPosted: Fri Aug 01, 2014 8:13 am    Post subject: live heart surgery Reply with quote

After an educational evening I have :


  • wiped my /usr/bin.
  • unmerged sandbox (whose importance I can only now appreciate).
  • Commited a number of other nefarious acts.


So I ask what is the best way to wipe a machine while using it ? Is there a way to ensure that ones /bin folder is free of cruft and other related rubbish from the prior disaster ?

I suspect it's best to just follow the handbook and proceed as per it's instructions. The handbook does not have a "From Hell to Hello" or "I do know where hell is - Hell is in hello" or even a "Yes, yes, I can see what you've done here" sections, I looked, twice. Might I suggest "Larry on LSD" as a title for such a section ?

Currently my system is probably best formatted from scratch but I'd like to skip the formatting. I have already fired up the live CD and copied it's bin folder across. Emerge was not happy so I'm pulling in a stage3 tar and plan on pasting that over my disfigured /etc and related folders. But if there is something else that may be required do let me know.

P.S. I've heard this is possible and encouraged once you have run
Code:
cd /
rm -r
, which is about the only thing I have not yet tried.
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: Fri Aug 01, 2014 10:35 am    Post subject: Reply with quote

The fdisk command takes almost no time relative to the whole install. Recommend you start the Handbook install at Preparing the Disks.

- 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
Goverp
l33t
l33t


Joined: 07 Mar 2007
Posts: 669

PostPosted: Fri Aug 01, 2014 11:08 am    Post subject: Reply with quote

fdisk? If he recreates the same partitions, surely they'll still be readable. mkfs, which is nearly as quick, surely.
_________________
Greybeard
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: Fri Aug 01, 2014 12:51 pm    Post subject: Reply with quote

Yes, a better suggestion than mine. @Carel, same chapter but start at 4e instead of the beginning.

- 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
cwr
Veteran
Veteran


Joined: 17 Dec 2005
Posts: 1969

PostPosted: Fri Aug 01, 2014 2:13 pm    Post subject: Reply with quote

I wouldn't overwrite /etc if I were you; you never quite know what odds and ends may remain.
On the whole I'd follow Goverp's advice, and run mkfs on the partitions, then follow the handbook
on from the appropriate point.

If you have a separate /home or /boot filesystem, you should be able to keep them without problems.

Will
Back to top
View user's profile Send private message
jonathan183
Guru
Guru


Joined: 13 Dec 2011
Posts: 309

PostPosted: Sat Aug 02, 2014 1:27 pm    Post subject: Reply with quote

cwr wrote:
I wouldn't overwrite /etc if I were you; you never quite know what odds and ends may remain.
On the whole I'd follow Goverp's advice, and run mkfs on the partitions, then follow the handbook
on from the appropriate point.

If you have a separate /home or /boot filesystem, you should be able to keep them without problems.

Will
my approach would be to rename /etc to /etc-old rename /home to /home-old and copy /usr/src/linux/.config to somewhere like /home-old/ then wipe everything else. Assuming you previously had a good install, with a reasonable kernel config, settings in etc and home folder information. That way you have the option to copy stuff you want back across to your fresh install and then kill off the /*-old folders ;)
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: Sat Aug 02, 2014 1:31 pm    Post subject: Reply with quote

Yeah but he didn't have a good install, and he's done strange things. Best to start clean, in my opinion.

- 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
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