On Wed, Jan 31, 2007 at 09:42:07PM -0500, [EMAIL PROTECTED] wrote:
I just moved a 200GB hard drive from a 3.7 box to a 4.0 box, and since
my data was all backed up, I decided to run disklabel, create a fresh
partition that spanned the whole disk, and then run newfs on that
partition. I expect to not have all 200GB, between the whole issue of
poorly labeled disk sizes and the 5% reserved by default. What I don't
expect, however, is to see ** 22% ** of my disk already in use:
-bash-3.1$ df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/wd0a 7.3G 78.9M 6.9G 1% /
/dev/wd0d 22.0G 512M 20.4G 2% /usr
/dev/wd0e 7.2G 6.7M 6.8G 0% /var
/dev/wd1a 183G 38.0G 136G 22% /mnt
Can anyone explain this? Have I done something wrong here? More
importantly, is there a simple way to remedy this and get my 38GB back?
Alex Kirk
Obviously something is screwy. Try posting the output of 'fdisk wd1',
'disklabel wd1' and at *least* the portion of your dmesg corresponding
to the disk. No way to tell what's messed up just from df output.
Fair enough:
-bash-3.1$ sudo disklabel wd1
# /dev/rwd1c:
type: ESDI
disk: ESDI/IDE disk
label: MAXTOR STM320082
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 16383
total sectors: 390721968
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
16 partitions:
# size offset fstype [fsize bsize cpg]
a: 390721968 0 4.2BSD 2048 16384 328 # Cyl 0 -387620
c: 390721968 0 unused 0 0 # Cyl 0 -387620
-bash-3.1$ sudo fdisk wd1
Disk: wd1 geometry: 24321/255/63 [390716865 Sectors]
Offset: 0 Signature: 0x0
Starting Ending LBA Info:
#: id C H S - C H S [ start: size ]
------------------------------------------------------------------------
0: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
1: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused
...and a full dmesg (note that the disk errors here are on /dev/wd0,
which I believe are due to a crappy old cable -- I *just* installed
this system, though, so I can't say with 100% certainty):
OpenBSD 4.0 (GENERIC) #1107: Sat Sep 16 19:15:58 MDT 2006
[EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: AMD Athlon(tm) 64 Processor 3000+ ("AuthenticAMD" 686-class,
512KB L2 cache) 2 GHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,MMX,FXSR,SSE,SSE2,SSE3
cpu0: Cool`n'Quiet K8 2000 Mhz: speeds: 2000 1800 1000 Mhz
real mem = 200830976 (196124K)
avail mem = 175493120 (171380K)
using 2477 buffers containing 10145792 bytes (9908K) of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(e4) BIOS, date 12/20/05, BIOS32 rev. 0 @
0xfb7d0, SMBIOS rev. 2.3 @ 0xf0000 (32 entries)
apm0 at bios0: Power Management spec V1.2
apm0: AC on, battery charge unknown
apm0: flags 70102 dobusy 1 doidle 1
pcibios0 at bios0: rev 2.1 @ 0xf0000/0xdf74
pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfded0/160 (8 entries)
pcibios0: PCI Exclusive IRQs: 5 10 11
pcibios0: PCI Interrupt Router at 000:17:0 ("VIA VT82C596A ISA" rev 0x00)
pcibios0: PCI bus #1 is the last bus
bios0: ROM list: 0xc0000/0x8200 0xcc000/0x8000!
cpu0 at mainbus0
pci0 at mainbus0 bus 0: configuration mode 1 (no bios)
pchb0 at pci0 dev 0 function 0 "VIA K8M800 Host" rev 0x00
pchb1 at pci0 dev 0 function 1 "VIA K8M800 Host" rev 0x00
pchb2 at pci0 dev 0 function 2 "VIA K8M800 Host" rev 0x00
pchb3 at pci0 dev 0 function 3 "VIA K8M800 Host" rev 0x00
pchb4 at pci0 dev 0 function 4 "VIA K8M800 Host" rev 0x00
pchb5 at pci0 dev 0 function 7 "VIA K8M800 Host" rev 0x00
ppb0 at pci0 dev 1 function 0 "VIA K8HTB AGP" rev 0x00
pci1 at ppb0 bus 1
vga1 at pci1 dev 0 function 0 "VIA S3 Unichrome PRO IGP" rev 0x01:
aperture at 0xe8000000, size 0x10000000
wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
pciide0 at pci0 dev 15 function 0 "VIA VT6420 SATA" rev 0x80: DMA
pciide0: using irq 11 for native-PCI interrupt
pciide1 at pci0 dev 15 function 1 "VIA VT82C571 IDE" rev 0x06: ATA133,
channel 0 configured to compatibility, channel 1 configured to
compatibility
wd0 at pciide1 channel 0 drive 0: <WDC WD400EB-00CPF0>
wd0: 16-sector PIO, LBA, 38166MB, 78165360 sectors
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 5
wd1 at pciide1 channel 1 drive 0: <MAXTOR STM3200820A>
wd1: 16-sector PIO, LBA48, 190782MB, 390721968 sectors
wd1(pciide1:1:0): using PIO mode 4, Ultra-DMA mode 5
uhci0 at pci0 dev 16 function 0 "VIA VT83C572 USB" rev 0x81: irq 10
usb0 at uhci0: USB revision 1.0
uhub0 at usb0
uhub0: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1 at pci0 dev 16 function 1 "VIA VT83C572 USB" rev 0x81: irq 10
usb1 at uhci1: USB revision 1.0
uhub1 at usb1
uhub1: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2 at pci0 dev 16 function 2 "VIA VT83C572 USB" rev 0x81: irq 11
usb2 at uhci2: USB revision 1.0
uhub2 at usb2
uhub2: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
uhci3 at pci0 dev 16 function 3 "VIA VT83C572 USB" rev 0x81: irq 11
usb3 at uhci3: USB revision 1.0
uhub3 at usb3
uhub3: VIA UHCI root hub, rev 1.00/1.00, addr 1
uhub3: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 16 function 4 "VIA VT6202 USB" rev 0x86: irq 5
usb4 at ehci0: USB revision 2.0
uhub4 at usb4
uhub4: VIA EHCI root hub, rev 2.00/1.00, addr 1
uhub4: 8 ports with 8 removable, self powered
viapm0 at pci0 dev 17 function 0 "VIA VT8237 ISA" rev 0x00
iic0 at viapm0
admtemp0 at iic0 addr 0x4c: gl523sm
auvia0 at pci0 dev 17 function 5 "VIA VT8233 AC97" rev 0x60: irq 5
ac97: codec id 0x414c4760 (Avance Logic ALC655 rev 0)
audio0 at auvia0
vr0 at pci0 dev 18 function 0 "VIA RhineII-2" rev 0x78: irq 10, address
00:16:ec:47:80:70
ukphy0 at vr0 phy 1: Generic IEEE 802.3u media interface, rev. 10: OUI
0x004063, model 0x0032
pchb6 at pci0 dev 24 function 0 "AMD AMD64 HyperTransport" rev 0x00
pchb7 at pci0 dev 24 function 1 "AMD AMD64 Address Map" rev 0x00
pchb8 at pci0 dev 24 function 2 "AMD AMD64 DRAM Cfg" rev 0x00
pchb9 at pci0 dev 24 function 3 "AMD AMD64 Misc Cfg" rev 0x00
isa0 at mainbus0
isadma0 at isa0
pckbc0 at isa0 port 0x60/5
pckbd0 at pckbc0 (kbd slot)
pckbc0: using irq 1 for kbd slot
wskbd0 at pckbd0: console keyboard, using wsdisplay0
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
spkr0 at pcppi0
lpt0 at isa0 port 0x378/4 irq 7
it0 at isa0 port 0x290/8: IT87
npx0 at isa0 port 0xf0/16: using exception 16
pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
biomask ff65 netmask ff65 ttymask ffe7
pctr: user-level cycle counter enabled
wd0c: aborted command, interface CRC error reading fsbn 0 (wd0 bn 0;
cn 0 tn 0 sn 0), retrying
wd0: transfer error, downgrading to Ultra-DMA mode 4
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 4
wd0c: aborted command, interface CRC error reading fsbn 0 (wd0 bn 0;
cn 0 tn 0 sn 0), retrying
wd0: transfer error, downgrading to Ultra-DMA mode 3
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 3
wd0c: aborted command, interface CRC error reading fsbn 0 (wd0 bn 0;
cn 0 tn 0 sn 0), retrying
wd0: soft error (corrected)
dkcsum: wd0 matches BIOS drive 0x80
dkcsum: wd1 matches BIOS drive 0x81
root on wd0a
rootdev=0x0 rrootdev=0x300 rawdev=0x302
wd0: transfer error, downgrading to Ultra-DMA mode 2
wd0(pciide1:0:0): using PIO mode 4, Ultra-DMA mode 2
wd0a: aborted command, interface CRC error reading fsbn 16 of 16-31
(wd0 bn 79; cn 0 tn 1 sn 16), retrying
wd0: soft error (corrected)