Howto remove partitions ?

Status
Not open for further replies.

sympton

Dabbler
Joined
Aug 1, 2011
Messages
23
Hi

Just upgraded from 7 to 8 .. I got 2 2tb hdd,s and another had freenas7 on it, so it has few partitions on it. I would like to remove these partitions and make whole disk available for storage. However:

Code:
freenas# fdisk ada0
******* Working on device /dev/ada0 *******
parameters extracted from in-core disklabel are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=3876021 heads=16 sectors/track=63 (1008 blks/cyl)

fdisk: invalid fdisk partition table found
Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 3907029105 (1907729 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 180/ head 15/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>
freenas#


and

Code:
freenas# fsck_ufs ada0
** /dev/ada0
Cannot find file system superblock
ioctl (GCINFO): Inappropriate ioctl for device
fsck_ufs: /dev/ada0: can't read disk label
freenas#


Howdo i remove these partitions ?

At the very beginning i searched partitions by mounting them through web interface in freenas8, and afterwards that couldnt be done anymore, did disk corrupt ?

And in web interface when creatin volume, i see two times 1.8tb partition ada0 and ada1 ... shouldnt that be impossible with 2tb drive ?)

Thnx, Tomi
 

sympton

Dabbler
Joined
Aug 1, 2011
Messages
23
Suddenly, while i did NOTHING, i managed to mount ada0 drive. But still havent been able to destroy partitions..
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
You might need to wipe it. GPT partitions store info at the beginning and end so you need to do a complete wipe to be safe. In your case you could do 'dd if=/dev/zero of=/dev/ad0 bs=512'

This isn't the same for everyone, the device name can be different, so pay attention or you could wipe the wrong disk if you're not careful. Someone else made a suggestion about a way to do just the beginning and end of the disk, but I don't have that link right now. I can update later if I find it.
 
Status
Not open for further replies.
Top