[opensuse] delete partitiontable
How can I delete or completely erase a partition-table. The feature "delete partitiontable" is removed in the opensuse partitioning tool. Thanks, Hans -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Jun 29, 2009 at 6:46 PM, Hans de Faber<hans.defaber@gmail.com> wrote:
How can I delete or completely erase a partition-table.
The feature "delete partitiontable" is removed in the opensuse partitioning tool.
Thanks, Hans -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
The typical PC partition table is in the very first sector of the drive, so: dd if=/dev/zero of=/dev/sdx count=1 should do it, but you may need to reboot to get the kernel to reread it. I'm sure there's another way, but I don't know it. I won't explain sdx because if you don't know what to put there, you should not be using this command. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http://www.norcrossgroup.com/forms/whitepapers/Forensic%20Processing%20of%20... The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Monday June 29 2009, Greg Freemyer wrote:
On Mon, Jun 29, 2009 at 6:46 PM, Hans de Faber wrote:
How can I delete or completely erase a partition-table.
The feature "delete partitiontable" is removed in the opensuse partitioning tool.
Thanks, Hans
The typical PC partition table is in the very first sector of the drive, so:
dd if=/dev/zero of=/dev/sdx count=1
should do it, but you may need to reboot to get the kernel to reread it. ...
The kernel manages all I/O (even when you access a disk via its /dev entry, not just via files), so any buffered disk blocks it has will remain consistent when you write. However, if you have any mounted file system volumes on that drive, you should unmount them first, lest unpredictable and undesirable consequences ensue.
Greg
Randall Schulz -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
Randall R Schulz schreef:
On Monday June 29 2009, Greg Freemyer wrote: Thanks,this was the solution. Most of the time I do this kind of actions with linux based on CD.(knoppix) Have a nice day, Hans
On Mon, Jun 29, 2009 at 6:46 PM, Hans de Faber wrote:
How can I delete or completely erase a partition-table.
The feature "delete partitiontable" is removed in the opensuse partitioning tool.
Thanks, Hans The typical PC partition table is in the very first sector of the drive, so:
dd if=/dev/zero of=/dev/sdx count=1
should do it, but you may need to reboot to get the kernel to reread it. ...
The kernel manages all I/O (even when you access a disk via its /dev entry, not just via files), so any buffered disk blocks it has will remain consistent when you write.
However, if you have any mounted file system volumes on that drive, you should unmount them first, lest unpredictable and undesirable consequences ensue.
Greg
Randall Schulz
-- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Mon, Jun 29, 2009 at 7:48 PM, Randall R Schulz<rschulz@sonic.net> wrote:
On Monday June 29 2009, Greg Freemyer wrote:
On Mon, Jun 29, 2009 at 6:46 PM, Hans de Faber wrote:
How can I delete or completely erase a partition-table.
The feature "delete partitiontable" is removed in the opensuse partitioning tool.
Thanks, Hans
The typical PC partition table is in the very first sector of the drive, so:
dd if=/dev/zero of=/dev/sdx count=1
should do it, but you may need to reboot to get the kernel to reread it. ...
The kernel manages all I/O (even when you access a disk via its /dev entry, not just via files), so any buffered disk blocks it has will remain consistent when you write.
True, but irrelevant. The kernel maintains a list of partition tables in ram. (/proc/partitions) Doing behind the scenes updates to /dev/sdx has no impact on those ram based tables. Try it. cat /proc/partitions dd ... cat /proc/partitions You have to tell the kernel to update its tables from disk after you update the disk. I just don't remember how to do that offhand, so I said a reboot will definitely do it. Greg -- Greg Freemyer Head of EDD Tape Extraction and Processing team Litigation Triage Solutions Specialist http://www.linkedin.com/in/gregfreemyer Preservation and Forensic processing of Exchange Repositories White Paper - http://www.norcrossgroup.com/forms/whitepapers/Forensic%20Processing%20of%20... The Norcross Group The Intersection of Evidence & Technology http://www.norcrossgroup.com -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
On Tue, 30 Jun 2009, Greg Freemyer wrote:-
On Monday June 29 2009, Greg Freemyer wrote:
The typical PC partition table is in the very first sector of the drive, so:
dd if=/dev/zero of=/dev/sdx count=1
should do it, but you may need to reboot to get the kernel to reread it. ...
You can also use fdisk /dev/sdx Then use option 'o' to create the empty partition table, and write it out using 'w'. This way, as long as there are no mounted partitions on /dev/sdx, the kernel will reread the partition table as fdisk exits.
You have to tell the kernel to update its tables from disk after you update the disk. I just don't remember how to do that offhand, so I said a reboot will definitely do it.
Either of these will do it: hdparm -z /dev/sdx blockdev --rereadpt /dev/sdx provided that there are no partitions mounted on /dev/sdx. If there are, you need to umount them before trying to reread the partition table or you'll get a "BLKRRPART: Device or resource busy" error. Regards, David Bolt -- Team Acorn: http://www.distributed.net/ OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | RISC OS 3.6 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02 -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
In <87f94c370906291605t2d184e8du9ff3d2771211fc01@mail.gmail.com>, Greg Freemyer wrote:
On Mon, Jun 29, 2009 at 6:46 PM, Hans de Faber<hans.defaber@gmail.com> wrote:
How can I delete or completely erase a partition-table.
I believe gparted can write an *empty* partition table of many types, but I don't believe it has support for writing an invalid partition table.
The typical PC partition table is in the very first sector of the drive, so:
dd if=/dev/zero of=/dev/sdx count=1
That will also destroy your MBR. :(
should do it, but you may need to reboot to get the kernel to reread it. I'm sure there's another way, but I don't know it.
blockdev --rereadpt /dev/sdx -- Boyd Stephen Smith Jr. ,= ,-_-. =. bss@iguanasuicide.net ((_/)o o(\_)) ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-' http://iguanasuicide.net/ \_/
Hello, On Tue, 30 Jun 2009, Boyd Stephen Smith Jr. wrote:
In <87f94c370906291605t2d184e8du9ff3d2771211fc01@mail.gmail.com>, Greg Freemyer wrote:
dd if=/dev/zero of=/dev/sdx count=1
That will also destroy your MBR. :(
Of what use is a MBR without partitions? Anyway: dd if=/dev/zero of=/dev/sdx bs=1 count=64 seek=446 On files (images) you need to add 'conv=notrunc'. -dnh -- I'm sorry. The number you have reached is imaginary. Please rotate your phone 90 degrees and try again. -- MIT's phone switch -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org
participants (6)
-
Boyd Stephen Smith Jr.
-
David Bolt
-
David Haller
-
Greg Freemyer
-
Hans de Faber
-
Randall R Schulz