How to wipe disk clean totally
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I saw this has been answered before but related to windows.
I have the following on a 2009 macbook air and would like to wipe the disk and start over:
Minimal bash-like line editing is supported.
For the first word, TAB lists possible command completions.
Anywhere else TAB lists possible device or file completions.
Grub>
I typed in exit and nothing occurred. Any direction please. I do not know what else is on this particular disk and to avoid complication I just want to wipe ALL and start over newly. Please advise. Thanks. Best, Richard
grub2
bumped to the homepage by Community♦ 4 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I saw this has been answered before but related to windows.
I have the following on a 2009 macbook air and would like to wipe the disk and start over:
Minimal bash-like line editing is supported.
For the first word, TAB lists possible command completions.
Anywhere else TAB lists possible device or file completions.
Grub>
I typed in exit and nothing occurred. Any direction please. I do not know what else is on this particular disk and to avoid complication I just want to wipe ALL and start over newly. Please advise. Thanks. Best, Richard
grub2
bumped to the homepage by Community♦ 4 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I saw this has been answered before but related to windows.
I have the following on a 2009 macbook air and would like to wipe the disk and start over:
Minimal bash-like line editing is supported.
For the first word, TAB lists possible command completions.
Anywhere else TAB lists possible device or file completions.
Grub>
I typed in exit and nothing occurred. Any direction please. I do not know what else is on this particular disk and to avoid complication I just want to wipe ALL and start over newly. Please advise. Thanks. Best, Richard
grub2
I saw this has been answered before but related to windows.
I have the following on a 2009 macbook air and would like to wipe the disk and start over:
Minimal bash-like line editing is supported.
For the first word, TAB lists possible command completions.
Anywhere else TAB lists possible device or file completions.
Grub>
I typed in exit and nothing occurred. Any direction please. I do not know what else is on this particular disk and to avoid complication I just want to wipe ALL and start over newly. Please advise. Thanks. Best, Richard
grub2
grub2
asked Jan 26 '16 at 23:24
Richard LewisRichard Lewis
612
612
bumped to the homepage by Community♦ 4 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 4 hours ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
I would install a fresh copy of Ubuntu, and that will wipe the disk in the process. That should be a sufficient "wipe" unless you are trying to hide files from a forensic investigator. Good luck!
add a comment |
Wiping the disk is not necessary. Just boot using a LiveCD/LiveUSB and (re-)install Ubuntu. During installation, you can reformat the whole disk. That should be sufficient.
If you want to wipe the disk before reinstalling, you can write zeros across the complete disk using the LiveCD/LiveUSB, a terminal, and the dd
command.
Edit
To wipe a hdd, you need to boot a Live-Image of a Linux system, eg. Ubuntu. After booting into the system, you need to open a terminal. Root privileges are required to write on hardware level to a disk, therefore you need to become root. A root shell can easily be opened by
sudo -i
Before you use the dd
command, it is absolutely necessary to determine the correct location of your hdd. This can be done for example by gparted
. This enables you to match the expected vs. found partitions and hdd size. Make sure, that you are using the correct location, otherwise you will destroy the data set!!! In the following I assume, that the hdd is located at /dev/sda
.
To wipe the disk, you can use the command
dd if=/dev/zero of=/dev/sda
That will write zeros on the entire disk, making it very unlikely that someone can recover the original data. Instead of /dev/zero
you can use /dev/urandom
to use (pseudo-)random data instead of zeros, but that will slow down the writing process dramatically! You will find often, that overwriting only one time is not sufficient to prevent recovering. I think and read that this is an urban legend (eg. here).
Hope that this description is detailed enough to wipe your disk. Last, let me put the warning here once more: Make sure, you are using the right disk location for the dd
command, otherwise your data will be unrecoverable destroyed!!!*
Thanks Frank. You mean just type 000000 following the grub command I now have? (with the install USB in). And what is "dd" exactly? I type that after? Sorry just trying to understand the sequence here. I just have the message I wrote ending in "grub" as a dos type prompt on my screen so want to understand what I type next exactly. Thanks.
– Richard Lewis
Jan 28 '16 at 9:00
Dear Richard, no... You have to boot the LiveCD. I will add some information to my answer to illustrate the process.
– Frank Förster
Feb 1 '16 at 23:07
Ok, thanks Frank for your full and detailed answer. I will be giving this a go at the weekend. I let you know.
– Richard Lewis
Feb 2 '16 at 23:15
Does not answer the question - the question the op is essentially asking is 'how to wipe disk from grub'
– theYnot
May 20 '18 at 9:10
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f726042%2fhow-to-wipe-disk-clean-totally%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I would install a fresh copy of Ubuntu, and that will wipe the disk in the process. That should be a sufficient "wipe" unless you are trying to hide files from a forensic investigator. Good luck!
add a comment |
I would install a fresh copy of Ubuntu, and that will wipe the disk in the process. That should be a sufficient "wipe" unless you are trying to hide files from a forensic investigator. Good luck!
add a comment |
I would install a fresh copy of Ubuntu, and that will wipe the disk in the process. That should be a sufficient "wipe" unless you are trying to hide files from a forensic investigator. Good luck!
I would install a fresh copy of Ubuntu, and that will wipe the disk in the process. That should be a sufficient "wipe" unless you are trying to hide files from a forensic investigator. Good luck!
answered Jan 27 '16 at 0:23
Justin PavatteJustin Pavatte
1134
1134
add a comment |
add a comment |
Wiping the disk is not necessary. Just boot using a LiveCD/LiveUSB and (re-)install Ubuntu. During installation, you can reformat the whole disk. That should be sufficient.
If you want to wipe the disk before reinstalling, you can write zeros across the complete disk using the LiveCD/LiveUSB, a terminal, and the dd
command.
Edit
To wipe a hdd, you need to boot a Live-Image of a Linux system, eg. Ubuntu. After booting into the system, you need to open a terminal. Root privileges are required to write on hardware level to a disk, therefore you need to become root. A root shell can easily be opened by
sudo -i
Before you use the dd
command, it is absolutely necessary to determine the correct location of your hdd. This can be done for example by gparted
. This enables you to match the expected vs. found partitions and hdd size. Make sure, that you are using the correct location, otherwise you will destroy the data set!!! In the following I assume, that the hdd is located at /dev/sda
.
To wipe the disk, you can use the command
dd if=/dev/zero of=/dev/sda
That will write zeros on the entire disk, making it very unlikely that someone can recover the original data. Instead of /dev/zero
you can use /dev/urandom
to use (pseudo-)random data instead of zeros, but that will slow down the writing process dramatically! You will find often, that overwriting only one time is not sufficient to prevent recovering. I think and read that this is an urban legend (eg. here).
Hope that this description is detailed enough to wipe your disk. Last, let me put the warning here once more: Make sure, you are using the right disk location for the dd
command, otherwise your data will be unrecoverable destroyed!!!*
Thanks Frank. You mean just type 000000 following the grub command I now have? (with the install USB in). And what is "dd" exactly? I type that after? Sorry just trying to understand the sequence here. I just have the message I wrote ending in "grub" as a dos type prompt on my screen so want to understand what I type next exactly. Thanks.
– Richard Lewis
Jan 28 '16 at 9:00
Dear Richard, no... You have to boot the LiveCD. I will add some information to my answer to illustrate the process.
– Frank Förster
Feb 1 '16 at 23:07
Ok, thanks Frank for your full and detailed answer. I will be giving this a go at the weekend. I let you know.
– Richard Lewis
Feb 2 '16 at 23:15
Does not answer the question - the question the op is essentially asking is 'how to wipe disk from grub'
– theYnot
May 20 '18 at 9:10
add a comment |
Wiping the disk is not necessary. Just boot using a LiveCD/LiveUSB and (re-)install Ubuntu. During installation, you can reformat the whole disk. That should be sufficient.
If you want to wipe the disk before reinstalling, you can write zeros across the complete disk using the LiveCD/LiveUSB, a terminal, and the dd
command.
Edit
To wipe a hdd, you need to boot a Live-Image of a Linux system, eg. Ubuntu. After booting into the system, you need to open a terminal. Root privileges are required to write on hardware level to a disk, therefore you need to become root. A root shell can easily be opened by
sudo -i
Before you use the dd
command, it is absolutely necessary to determine the correct location of your hdd. This can be done for example by gparted
. This enables you to match the expected vs. found partitions and hdd size. Make sure, that you are using the correct location, otherwise you will destroy the data set!!! In the following I assume, that the hdd is located at /dev/sda
.
To wipe the disk, you can use the command
dd if=/dev/zero of=/dev/sda
That will write zeros on the entire disk, making it very unlikely that someone can recover the original data. Instead of /dev/zero
you can use /dev/urandom
to use (pseudo-)random data instead of zeros, but that will slow down the writing process dramatically! You will find often, that overwriting only one time is not sufficient to prevent recovering. I think and read that this is an urban legend (eg. here).
Hope that this description is detailed enough to wipe your disk. Last, let me put the warning here once more: Make sure, you are using the right disk location for the dd
command, otherwise your data will be unrecoverable destroyed!!!*
Thanks Frank. You mean just type 000000 following the grub command I now have? (with the install USB in). And what is "dd" exactly? I type that after? Sorry just trying to understand the sequence here. I just have the message I wrote ending in "grub" as a dos type prompt on my screen so want to understand what I type next exactly. Thanks.
– Richard Lewis
Jan 28 '16 at 9:00
Dear Richard, no... You have to boot the LiveCD. I will add some information to my answer to illustrate the process.
– Frank Förster
Feb 1 '16 at 23:07
Ok, thanks Frank for your full and detailed answer. I will be giving this a go at the weekend. I let you know.
– Richard Lewis
Feb 2 '16 at 23:15
Does not answer the question - the question the op is essentially asking is 'how to wipe disk from grub'
– theYnot
May 20 '18 at 9:10
add a comment |
Wiping the disk is not necessary. Just boot using a LiveCD/LiveUSB and (re-)install Ubuntu. During installation, you can reformat the whole disk. That should be sufficient.
If you want to wipe the disk before reinstalling, you can write zeros across the complete disk using the LiveCD/LiveUSB, a terminal, and the dd
command.
Edit
To wipe a hdd, you need to boot a Live-Image of a Linux system, eg. Ubuntu. After booting into the system, you need to open a terminal. Root privileges are required to write on hardware level to a disk, therefore you need to become root. A root shell can easily be opened by
sudo -i
Before you use the dd
command, it is absolutely necessary to determine the correct location of your hdd. This can be done for example by gparted
. This enables you to match the expected vs. found partitions and hdd size. Make sure, that you are using the correct location, otherwise you will destroy the data set!!! In the following I assume, that the hdd is located at /dev/sda
.
To wipe the disk, you can use the command
dd if=/dev/zero of=/dev/sda
That will write zeros on the entire disk, making it very unlikely that someone can recover the original data. Instead of /dev/zero
you can use /dev/urandom
to use (pseudo-)random data instead of zeros, but that will slow down the writing process dramatically! You will find often, that overwriting only one time is not sufficient to prevent recovering. I think and read that this is an urban legend (eg. here).
Hope that this description is detailed enough to wipe your disk. Last, let me put the warning here once more: Make sure, you are using the right disk location for the dd
command, otherwise your data will be unrecoverable destroyed!!!*
Wiping the disk is not necessary. Just boot using a LiveCD/LiveUSB and (re-)install Ubuntu. During installation, you can reformat the whole disk. That should be sufficient.
If you want to wipe the disk before reinstalling, you can write zeros across the complete disk using the LiveCD/LiveUSB, a terminal, and the dd
command.
Edit
To wipe a hdd, you need to boot a Live-Image of a Linux system, eg. Ubuntu. After booting into the system, you need to open a terminal. Root privileges are required to write on hardware level to a disk, therefore you need to become root. A root shell can easily be opened by
sudo -i
Before you use the dd
command, it is absolutely necessary to determine the correct location of your hdd. This can be done for example by gparted
. This enables you to match the expected vs. found partitions and hdd size. Make sure, that you are using the correct location, otherwise you will destroy the data set!!! In the following I assume, that the hdd is located at /dev/sda
.
To wipe the disk, you can use the command
dd if=/dev/zero of=/dev/sda
That will write zeros on the entire disk, making it very unlikely that someone can recover the original data. Instead of /dev/zero
you can use /dev/urandom
to use (pseudo-)random data instead of zeros, but that will slow down the writing process dramatically! You will find often, that overwriting only one time is not sufficient to prevent recovering. I think and read that this is an urban legend (eg. here).
Hope that this description is detailed enough to wipe your disk. Last, let me put the warning here once more: Make sure, you are using the right disk location for the dd
command, otherwise your data will be unrecoverable destroyed!!!*
edited Feb 1 '16 at 23:33
answered Jan 27 '16 at 3:25
Frank FörsterFrank Förster
1594
1594
Thanks Frank. You mean just type 000000 following the grub command I now have? (with the install USB in). And what is "dd" exactly? I type that after? Sorry just trying to understand the sequence here. I just have the message I wrote ending in "grub" as a dos type prompt on my screen so want to understand what I type next exactly. Thanks.
– Richard Lewis
Jan 28 '16 at 9:00
Dear Richard, no... You have to boot the LiveCD. I will add some information to my answer to illustrate the process.
– Frank Förster
Feb 1 '16 at 23:07
Ok, thanks Frank for your full and detailed answer. I will be giving this a go at the weekend. I let you know.
– Richard Lewis
Feb 2 '16 at 23:15
Does not answer the question - the question the op is essentially asking is 'how to wipe disk from grub'
– theYnot
May 20 '18 at 9:10
add a comment |
Thanks Frank. You mean just type 000000 following the grub command I now have? (with the install USB in). And what is "dd" exactly? I type that after? Sorry just trying to understand the sequence here. I just have the message I wrote ending in "grub" as a dos type prompt on my screen so want to understand what I type next exactly. Thanks.
– Richard Lewis
Jan 28 '16 at 9:00
Dear Richard, no... You have to boot the LiveCD. I will add some information to my answer to illustrate the process.
– Frank Förster
Feb 1 '16 at 23:07
Ok, thanks Frank for your full and detailed answer. I will be giving this a go at the weekend. I let you know.
– Richard Lewis
Feb 2 '16 at 23:15
Does not answer the question - the question the op is essentially asking is 'how to wipe disk from grub'
– theYnot
May 20 '18 at 9:10
Thanks Frank. You mean just type 000000 following the grub command I now have? (with the install USB in). And what is "dd" exactly? I type that after? Sorry just trying to understand the sequence here. I just have the message I wrote ending in "grub" as a dos type prompt on my screen so want to understand what I type next exactly. Thanks.
– Richard Lewis
Jan 28 '16 at 9:00
Thanks Frank. You mean just type 000000 following the grub command I now have? (with the install USB in). And what is "dd" exactly? I type that after? Sorry just trying to understand the sequence here. I just have the message I wrote ending in "grub" as a dos type prompt on my screen so want to understand what I type next exactly. Thanks.
– Richard Lewis
Jan 28 '16 at 9:00
Dear Richard, no... You have to boot the LiveCD. I will add some information to my answer to illustrate the process.
– Frank Förster
Feb 1 '16 at 23:07
Dear Richard, no... You have to boot the LiveCD. I will add some information to my answer to illustrate the process.
– Frank Förster
Feb 1 '16 at 23:07
Ok, thanks Frank for your full and detailed answer. I will be giving this a go at the weekend. I let you know.
– Richard Lewis
Feb 2 '16 at 23:15
Ok, thanks Frank for your full and detailed answer. I will be giving this a go at the weekend. I let you know.
– Richard Lewis
Feb 2 '16 at 23:15
Does not answer the question - the question the op is essentially asking is 'how to wipe disk from grub'
– theYnot
May 20 '18 at 9:10
Does not answer the question - the question the op is essentially asking is 'how to wipe disk from grub'
– theYnot
May 20 '18 at 9:10
add a comment |
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f726042%2fhow-to-wipe-disk-clean-totally%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown