pvcreate -- device "/dev/hdc" has a partition table: force check bypass?
Hi
I'm trying to setup LVM, but have run into trouble:
unibus:~# blockdev --rereadpt /dev/hdc;dmesg|tail -n 1 /dev/ide/host0/bus1/target0/lun0: unknown partition table unibus:~# pvcreate /dev/hdc pvcreate -- device "/dev/hdc" has a partition table
as you can see, Linux knows that there's no partition, yet pvcreate insists that there is; this was after dd-ing 1GB of /dev/zero over the start of the disk, too :-(
Is there any way to force a bypass of this partition table test?
don
Quoted 8 lines · On Sat, 11 Jan 2003 13:51:59 +1300 Donald Gordon <[email protected]> wrote:
Hi
I'm trying to setup LVM, but have run into trouble:
unibus:~# blockdev --rereadpt /dev/hdc;dmesg|tail -n 1 /dev/ide/host0/bus1/target0/lun0: unknown partition table unibus:~# pvcreate /dev/hdc pvcreate -- device "/dev/hdc" has a partition table
I solved the problem by mounting devfs (it was compiled into my kernel, but not used). The wording about devfs in the LVM HOWTO could do with some clarification :-)
don