Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

I can't reuse disk formerly crypted

3 views
Skip to first unread message

Anders Jensen

unread,
Mar 16, 2005, 6:23:11 PM3/16/05
to
I have formerly crypted my SATA disk with GEOM but now I want to start
all over and use it as a normal non-crypted disk. First you might want
to see my "data":

Copyright (c) 1992-2004 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.3-RELEASE-p5 #0: Mon Feb 28 12:06:52 CET 2005
Timecounter "i8254" frequency 1193182 Hz quality 0
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (2394.01-MHz 686-class CPU)
Origin = "GenuineIntel" Id = 0xf27 Stepping = 7
....
ata0: channel #0 on atapci0
ata1: channel #1 on atapci0
atapci1: <Intel ICH5 SATA150 controller> port 0xdc00-0xdc0f
ata2: channel #0 on atapci1
ata3: channel #1 on atapci1
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pci0: <multimedia, audio> at device 31.5 (no driver attached)
acpi_button0: <Sleep Button> on acpi0
atkbdc0: <Keyboard controller (i8042)> port 0x64,0x60 irq 1 on acpi0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
....
acd0: DVDROM <SAMSUNG DVD-ROM SD-616Q/F403> at ata1-master UDMA33
em0: Link is up 100 Mbps Full Duplex
ad4: 152627MB <ST3160023AS/3.18> [310101/16/63] at ata2-master SATA150
ad6: 152627MB <ST3160023AS/3.05> [310101/16/63] at ata3-master SATA150
da0 at umass-sim0 bus 0 target 0 lun 0
da0: <Maxtor OneTouch II 023g> Fixed Direct Access SCSI-4 device
da0: 1.000MB/s transfers
da0: 239372MB (490234752 512 byte sectors: 255H 63S/T 30515C)
Mounting root from ufs:/dev/ad4s1a
....

su-3.00# ls -l /dev/ad6*
crw-r----- 1 root operator 4, 13 Feb 28 19:54 /dev/ad6
crw-r----- 1 root operator 4, 15 Feb 28 19:54 /dev/ad6s1

If I try to modify the existing partition with FDISK (with this command):
fdisk /dev/ad6

It gives me this error:

su-3.00# fdisk /dev/ad6
******* Working on device /dev/ad6 *******
parameters extracted from in-core disklabel are:
cylinders=310101 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=310101 heads=16 sectors/track=63 (1008 blks/cyl)

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 312576642 (152625 Meg), flag 80 (active)
beg: cyl 0/ head 1/ sector 1;
end: cyl 0/ head 254/ sector 63
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
<UNUSED>

If I try the slice 1 I get this error:

su-3.00# fdisk /dev/ad6s1
******* Working on device /dev/ad6s1 *******
parameters extracted from in-core disklabel are:
cylinders=310100 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=310100 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
<UNUSED>
The data for partition 2 is:
<UNUSED>
The data for partition 3 is:
<UNUSED>
The data for partition 4 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
start 0, size 50000 (24 Meg), flag 80 (active)
beg: cyl 0/ head 0/ sector 1;
end: cyl 1023/ head 254/ sector 63

If I try to use /stand/sysinstall, I can easily create a partition but
when I try to write it it gives me this error "ERROR: Unable to write
data to disk ad6!".

How do I totally erase all old information, so I can create a plain
FreeBSD partition?

Lowell Gilbert

unread,
Mar 17, 2005, 11:15:45 AM3/17/05
to
comp.unix.bsd.freebsd is not widely propagated, so you won't
necessarily get much help here (in comp.unix.bsd.freebsd).
See http://www.freebsd.org/support.html for better ideas...
[followups redirected accordingly]

Anders Jensen <aj561...@hotmail.com> writes:

> If I try to use /stand/sysinstall, I can easily create a partition but
> when I try to write it it gives me this error "ERROR: Unable to write
> data to disk ad6!".
>
> How do I totally erase all old information, so I can create a plain
> FreeBSD partition?

The brute force method would be "dd if=/dev/null of=/dev/ad6"...

0 new messages