[SOLVED] I want to delete/erase my entire hard drive.
UbuntuThis forum is for the discussion of Ubuntu Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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).
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.
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:
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.
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.
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:
Quote:
Originally Posted by TobiSGD
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.
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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.