LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 10-06-2012, 03:53 PM   #1
Lola Kews
Member
 
Registered: May 2004
Posts: 549

Rep: Reputation: 38
I want to delete/erase my entire hard drive.


I run Ubuntu 10.04, it is corrupted hard drive that is a mess! I have backed up all my documents. Have a CD of the latest Ubuntu 12.4 LTS sitting here waiting.

When I try to update the OS to Ubuntu 12.4 I just get one weird message after another, Never get to a point where I can erase and repartition the drive, tried everything, FED UP!

I just want to erase the whole DAM thing and start fresh with a new installation.

I would like to be able to do this through menus, but if you explain step by step I guess I could do it from a terminal, if you do not leave out anything.

Thanks to all.
 
Old 10-06-2012, 04:04 PM   #2
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,058

Rep: Reputation: Disabled
This looks like a failing hardware. Replace your hard disk. You may try some live CD including utilities to check it, though, but I wouldn't take the risk.
 
Old 10-06-2012, 04:43 PM   #3
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Replacing a harddisk without even knowing if it is faulty sounds strange to me. Behavior like this can be caused by different hardware failures, so before replacing anything I recommend to run some tests, in the first place for the RAM and the harddisk.
For the RAM you can use http://www.memtest.org/#downisoMemtest86+ for the harddisk you should use the diagnosis tool of the disks manufacturer.
 
1 members found this post helpful.
Old 10-06-2012, 04:50 PM   #4
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
The install cd may be corrupt or cd drive may be unclean

get system rescue CD or parted magic cd/usb for testing

1. RAM
2. gsmartctl will tell you about any hard disk issues
 
Old 10-07-2012, 12:44 PM   #5
Lola Kews
Member
 
Registered: May 2004
Posts: 549

Original Poster
Rep: Reputation: 38
There is nothing wrong with the hardware. The problem is with Ubuntu 10.04, it is either corrupted or a hacker as messed it up! I have made several disks for the new version of Ubuntu but none will let me install the latest version.

I get the following note: No Root File System is defined. Please correct this from the partitioning menu. That is it totally.

The only way I can envision installing the new Linux 12.04 is to erase the hard drive and install from there.

Now there is even someone downloading something from my computer every few days, while I'm working or not, the modem is constantly working for about a half hour to 45 minutes. This affects the speed of me using the computer.

Last edited by Lola Kews; 10-07-2012 at 12:49 PM.
 
Old 10-07-2012, 01:04 PM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
OK, make it this way:
- Boot from your Ubuntu CD into Live-Mode
- Start a terminal and launch the command[warning]
Code:
dd if=/dev/zero of=/dev/sda bs=16M
This command will overwrite every single byte on your harddisk with zeroes. No data recovery is possible. Handle with care ![/code]Depending on the size of your harddisk this command may run a few hours and will end with the error message that there is not enough space on the disk. At this point any single byte on the harddisk is zeroed out.
Now reboot the system, start the install again and choose the "Use the whole disk"-option (or similar named) when it comes to partitioning.
If it still doesn't work then it is most likely a hardware error (which also may explain slowdowns).
 
1 members found this post helpful.
Old 10-09-2012, 04:47 PM   #7
Lola Kews
Member
 
Registered: May 2004
Posts: 549

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by TobiSGD View Post
OK, make it this way:
- Boot from your Ubuntu CD into Live-Mode
- Start a terminal and launch the command[warning]
Code:
dd if=/dev/zero of=/dev/sda bs=16M
This command will overwrite every single byte on your harddisk with zeroes. No data recovery is possible. Handle with care ![/code]Depending on the size of your harddisk this command may run a few hours and will end with the error message that there is not enough space on the disk. At this point any single byte on the harddisk is zeroed out.
Now reboot the system, start the install again and choose the "Use the whole disk"-option (or similar named) when it comes to partitioning.
If it still doesn't work then it is most likely a hardware error (which also may explain slowdowns).

Tobisgd, thanks.I will give it a go and let you know.
 
Old 10-09-2012, 05:04 PM   #8
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
By the way, when you install a new distro,... a handful of suggestions:

1) Create a separate partition for /home. Give the root partition about 1/3 of the disk. And give the other 2/3 to /home, with a little left over for swap.

2) Make your password at least 8-10 characters. Anything less and a machine password cracking program might guess it in a couple of weeks.

3) Research and learn how to limit ssh logins to your machine. Disable root ssh logins, and move the port to something in the 50000+ range... That'll help thwart crackers a little bit...

4) Make sure you use at least WPA2 encryption on your router, and make sure you disable remote administrator or WiFi administrator logins on the router,... and change the default admin password...

If you have trouble with any of the above,... ask for help with it.
 
Old 10-09-2012, 05:47 PM   #9
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Quote:
Originally Posted by JaseP View Post
1) Create a separate partition for /home. Give the root partition about 1/3 of the disk. And give the other 2/3 to /home, with a little left over for swap.
This doesn't sound reasonable at all. You really think that you need or want a 300GB /-partition on a 1TB harddisk (or even 600GB on a 2TB disk)? You will hardly ever need more than 50GB for / on a desktop system.

Quote:
2) Make your password at least 8-10 characters. Anything less and a machine password cracking program might guess it in a couple of weeks.
In addition to that mix in lower and uppercase characters, numbers and special characters.

Quote:
3) Research and learn how to limit ssh logins to your machine. Disable root ssh logins, and move the port to something in the 50000+ range... That'll help thwart crackers a little bit...
Even better, don't run SSH if you don't have a need for it. Most people that have only one machine at home have the need to run a SSH server on it. If you have the need then disable root login, as already stated, and use key based authentication instead of password based authentication.
 
Old 10-09-2012, 08:51 PM   #10
JaseP
Senior Member
 
Registered: Jun 2002
Location: Eastern PA, USA
Distribution: K/Ubuntu 18.04-14.04, Scientific Linux 6.3-6.4, Android-x86, Pretty much all distros at one point...
Posts: 1,802

Rep: Reputation: 157Reputation: 157
Quote:
Originally Posted by TobiSGD View Post
This doesn't sound reasonable at all. You really think that you need or want a 300GB /-partition on a 1TB harddisk (or even 600GB on a 2TB disk)? You will hardly ever need more than 50GB for / on a desktop system.
eeehhh, ...weeeelllll,...

I don't know of many off the shelf machines with 2TB HDs... Mostly, I see 750GB drives. And with enough apps installed,... Assuming we're talking 250GB,... not that unreasonable if you run a home intra-net web server, have a MythTV installation, maybe a game server for a few 1st person shooters, and a MMO game or two as well,...

Oh,... and multiple kernels installed (w/ full source),... or VMs run with root authority (like a default KVM install)...

Quote:
In addition to that mix in lower and uppercase characters, numbers and special characters.
100% agreed. I once again (I did once before on these boards) would like to refernce the XFCD cartoon:
http://xkcd.com/936/

Quote:
Even better, don't run SSH if you don't have a need for it. Most people that have only one machine at home have the need to run a SSH server on it. If you have the need then disable root login, as already stated, and use key based authentication instead of password based authentication.
Point taken,... and good advice. But many (most?!) distros roll out with ssh enabled, root ssh logins enabled and a standard port 22... Kind of like the Empire putting up billboards that say, "Rebels, fire your proton torpedoes here!," on the Death Star's exhaust port.

Last edited by JaseP; 10-09-2012 at 09:03 PM.
 
1 members found this post helpful.
Old 10-10-2012, 04:28 PM   #11
Lola Kews
Member
 
Registered: May 2004
Posts: 549

Original Poster
Rep: Reputation: 38
This is not a time to bicker guys! I will be deleting everything in a very few minutes.

However I am printing your last few messages and hopefully not my last rights!

I will get back to you because I am unsure of how to do some of the things you suggest.

Thanks to all, see you soon, I hope!
 
Old 10-11-2012, 04:08 PM   #12
Lola Kews
Member
 
Registered: May 2004
Posts: 549

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by Lola Kews View Post
This is not a time to bicker guys! I will be deleting everything in a very few minutes.

However I am printing your last few messages and hopefully not my last rights!

I will get back to you because I am unsure of how to do some of the things you suggest.

Thanks to all, see you soon, I hope!

I'm Back! I went to the "Accessories" and clicked on the "Terminal" window.

I entered the command exactly as you told me to, and received the following message: '/dev/sda/': Permission denied.


Am I supposed to enter my system access number before bringing up the terminal window, If so how? confused!

Last edited by Lola Kews; 10-11-2012 at 04:10 PM.
 
Old 10-11-2012, 04:16 PM   #13
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Sorry, I sometimes forget that there are systems that need sudo to get full privileges.
Try it this way:
Code:
sudo dd if=/dev/zero of=/dev/sda bs=16M
It will ask you for your user password, but it will neither display it nor other characters when you type it in, just type it in blindly and press Enter.
 
Old 10-11-2012, 05:37 PM   #14
Lola Kews
Member
 
Registered: May 2004
Posts: 549

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by TobiSGD View Post
Sorry, I sometimes forget that there are systems that need sudo to get full privileges.
Try it this way:
Code:
sudo dd if=/dev/zero of=/dev/sda bs=16M
It will ask you for your user password, but it will neither display it nor other characters when you type it in, just type it in blindly and press Enter.
LOL, I do that also! I'll get back to you.
 
Old 10-13-2012, 02:12 PM   #15
Lola Kews
Member
 
Registered: May 2004
Posts: 549

Original Poster
Rep: Reputation: 38
Greetings from Ubuntu 12.04.
Everything went rather smoothly do to your expertise (TobiSDG and JaseP) I forgot to tell you guys what I am running.

Lian Li case, PC Power and Cooling 910 watt power supply, MSI 890FXA-GD70 motherboard, AMD Phenom II X6 1090T Processor × 6, 8Gb ram, GeForce GTX460 graphics card, 500 GB Hard Drive. Thats the Major stuff. I built this myself and it runs very smoothly and fast, normaly, LOL!

Well, so far so good, but I will have to play with it for a few days till I have sufficient knowledge to ask more questions. Right now I don't see access to a firewall, how to change the "Port" as JaeP suggested, what the heck does "SSH" mean, etc. They seem to have lowered the user's ability to access things, but I'm not really sure yet.

However, once again thanks for not leaving me "stuck in the boonies so to speak", I'll be back.

Last edited by Lola Kews; 10-13-2012 at 02:17 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
Delete ENTIRE Drive Zssfssz Linux - Hardware 5 10-27-2011 01:54 AM
erase hard drive invader44 Linux - Newbie 15 05-25-2010 09:00 AM
cant erase hard drive Xentrix Linux - General 3 07-14-2004 09:22 AM
Erase Hard Drive from Rescue? mithras Linux - Newbie 6 12-11-2003 11:29 PM
How to erase hard drive . . . zthomasz Linux - General 2 07-30-2003 10:25 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:26 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