LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-11-2007, 08:58 PM   #1
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Rep: Reputation: 37
format and reinstall the system


Hey there
I would like from someone to tell me how can I reinstall BackTrack .I am having a problem with my system and i want to reinstall it from LiveCD. What exactly i want is a completely format of the whole system first and reinstallation later.
Any ideas?
 
Old 02-12-2007, 12:13 AM   #2
war1025
Member
 
Registered: Jul 2006
Distribution: Debian: Squeeze AMD64
Posts: 318

Rep: Reputation: 32
so you want to format the hardrive and then install? you should be able to do that just off of the live cd when it asks you how you want to partition. Just say you want this much of the drive to be the main thing and that much to be swap and it should get rid of everything without complaint.
 
Old 02-12-2007, 01:50 AM   #3
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
What I recommend in preparing a HDD for a fresh install is to wipe the drive (write 0's across it), which is probably what you are after. Formatting does not wipe a drive but just sets up the filesystem directories (more or less) to help find things on the drive later. You can probably use dd from the Live CD to do this, but I do not use dd, I use another product to do this (my boot manager for multi-boot system). Here is a link to an article on using dd, it will tell you how to do that.

http://www.linuxquestions.org/questi...d.php?t=362506
 
Old 02-12-2007, 11:25 AM   #4
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Original Poster
Rep: Reputation: 37
Hey again!!!
Thanks very much both of you for your replies.
I found http://www.linuxquestions.org/questi...d.php?t=362506
really helpful but i am quite newbie and i dont really know if i can manage to do to this on my own
So what i have to do is to boot from LiveCD and then
Quote:
dd if=/dev/sda2 of=/dev/sdb2 bs=4096 conv=notrunc,noerror
I currently have one partition and i am wondering if this will work

Thanks for your time
 
Old 02-12-2007, 11:33 AM   #5
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
Backtrack is a Slax. The Slax installer by default will format the partition.

Thus by telling Backtrack installer that you want it install at the same partition as the existing Backtrack then all your problems should disappear automatically.
 
Old 02-12-2007, 12:00 PM   #6
manolakis
Member
 
Registered: Nov 2006
Distribution: xubuntu
Posts: 464

Original Poster
Rep: Reputation: 37
Dear saikee
I have thought the same and also have tried it but unfortunately i have the same problem with my eth0.
When i first installed BackTrack everything was fine and one day all of a sudden my eth0 was down
with 2 errors. Only lo was up.
So i decided to reinstall my BackTrack. I boot from the LiveCD and i installed it but when i rebooted the machine i noticed that my previous user account was still in home directory (locked)
I removed it recursively just to ensure that i dont have anything from the past.
Any ideas what could cause the problem?
 
Old 02-12-2007, 03:10 PM   #7
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
In the article, this is what he/she wrote:
Wipe a hard drive of all data (you would want to boot from a cd to do this) http://www.efense.com/helix
is a good boot cd The helix boot environment contains the DoD version of dd called dcfldd. It works the same way, but is has a progress bar.

dcfldd if=/dev/zero of=/dev/sda conv=notrunc

They mention getting a different CD called Helix, as far as I can tell the only difference is that the Helix CD has a progress bar to let you see what's happening as it will not happen in a flash depending on what kind of hardware you have and the size of the partition. If /dev/sda2 is the /home partition you want to wipe than the dd command should look like this:

dd if=/dev/zero of=/dev/sda2 conv=notrunc

You will probably have to wait till the prompt comes back before doing anything else, as I mentioned, I have not used dd but according to the article, this is how to write 0's across the second partition presumably /home on a SATA HDD. To do the entire drive, remove the (2) next to sda.

Last edited by Junior Hacker; 02-12-2007 at 03:11 PM.
 
Old 02-12-2007, 03:24 PM   #8
Junior Hacker
Senior Member
 
Registered: Jan 2005
Location: North America
Distribution: Debian testing Mandriva Ubuntu
Posts: 2,687

Rep: Reputation: 61
You can also keep existing partitions and just tell the installer to re-format the partition, all original data will still be there but should not affect the new installation if the partition was re-formatted, if you did not specify during installation the second time, it is likely the installer saw that it was formatted and did not re-format. But it is better to give the partition a quick wipe, then it will have to be re-formatted during installation or before with gparted or equivalent.

Last edited by Junior Hacker; 02-12-2007 at 03:34 PM.
 
Old 02-12-2007, 05:09 PM   #9
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
If you use DHCP via the ethernet port then Slax has a terminal command
Code:
dhcpcd eth0
good enough to kick start it when it is down.

Just did it myself with Backtrack.

Last edited by saikee; 02-12-2007 at 05:26 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Lost system, can't reinstall pickarooney Linux - Software 9 02-09-2007 08:58 AM
Need to reinstall windows on a dual boot system walterbyrd Debian 1 03-28-2006 05:29 PM
Dual boot system - reinstall w2k? itsjustme Linux - General 1 10-13-2003 09:15 PM
Totally remove M$ from system without reinstall arun79 Linux - Software 2 08-29-2003 05:25 AM
Fix the Bootloader or Reinstall the System? Sadie Newlinux Mandriva 6 08-26-2003 10:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration