|
|
|
|
|
|
| Author |
Message |
Chris Kantarjiev *nix forums beginner
Joined: 25 Feb 2005
Posts: 27
|
Posted: Fri Apr 14, 2006 5:54 pm Post subject:
disk/disklabel oddity
|
|
|
I just installed a new disk in a machine, intending to make it the new root. I
used fdisk and disklabel -r -I to set up the partitions, all of which seemed to
work fine.
When I try to newfs, I get
wtfs: write error for sector 16: Read-only file system
Based on googling around, I'm guessing that this cryptic message is trying to
tell me I've screwed up the allocations somewhere, but I can't see the fault.
I'm a little concerned that the disklabel output indicates that the label is
fictitious. That *must* be a clue, but I don't get it... also, newfs outputs the
super-block backups *very* quickly.
Help?
Thanks,
chris
wd1 at atabus0 drive 1: <ST3250823A>
wd1: drive supports 16-sector PIO transfers, LBA48 addressing
wd1: 232 GB, 484521 cyl, 16 head, 63 sec, 512 bytes/sect x 488397168 sectors
wd1: 32-bit data port
wd1: drive supports PIO mode 4, DMA mode 2, Ultra-DMA mode 5 (Ultra/100)
wd1(viaide0:0:1): using PIO mode 4, Ultra-DMA mode 5 (Ultra/100) (using DMA data
transfers)
yertle: {6} fdisk wd1
Disk: /dev/rwd1d
NetBSD disklabel disk geometry:
cylinders: 484521, heads: 16, sectors/track: 63 (1008 sectors/cylinder)
total sectors: 488397168
BIOS disk geometry:
cylinders: 1023, heads: 81, sectors/track: 63 (5103 sectors/cylinder)
total sectors: 488397168
Partition table:
0: NetBSD (sysid 169)
bootmenu: NetBSD
start 63, size 488397105 (238475 MB, Cyls 0-95707/69/1)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
Bootselector enabled, timeout 10 seconds.
yertle: {5} disklabel wd1
# /dev/rwd1d:
type: ESDI
disk: ST3250823A
label: fictitious
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 484521
total sectors: 488397168
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 480008192 63 4.2BSD 16384 65536 19284 # (Cyl. 0*- 476198*)
b: 8388913 480008255 swap # (Cyl. 476198*- 484520)
c: 488397105 63 unused 0 0 # (Cyl. 0*- 484520)
d: 488397168 0 unused 0 0 # (Cyl. 0 - 484520)
yertle: {3} nice newfs -b 64k -f 16k /dev/wd1a
/dev/wd1a: 234379.0MB (480008192 sectors) block size 65536, fragment size 16384
using 36 cylinder groups of 6510.56MB, 104169 blks, 103936 inodes.
super-block backups (for fsck -b #) at:
128, 13333760, 26667392, 40001024, 53334656, 66668288, 80001920,
93335552, 106669184, 120002816, 133336448, 146670080, 160003712, 173337344,
186670976, 200004608, 213338240, 226671872, 240005504, 253339136, 266672768,
280006400, 293340032, 306673664, 320007296, 333340928, 346674560, 360008192,
373341824, 386675456, 400009088, 413342720, 426676352, 440009984, 453343616,
466677248,
wtfs: write error for sector 16: Read-only file system |
|
| Back to top |
|
 |
Chris Kantarjiev *nix forums beginner
Joined: 25 Feb 2005
Posts: 27
|
Posted: Fri Apr 14, 2006 6:58 pm Post subject:
Re: disk/disklabel oddity
|
|
|
One more oddity: I tried using wd1c to build the fs, just for grins, and get:
yertle: {1} newfs -b 64k -f 16k /dev/wd1c
newfs: /dev/wd1c: open for read: Device not configured
WTF?
Something wrong with the label, but what? |
|
| Back to top |
|
 |
Gary Duzan *nix forums beginner
Joined: 11 Jan 2006
Posts: 9
|
Posted: Fri Apr 14, 2006 7:52 pm Post subject:
Re: disk/disklabel oddity
|
|
|
Chris Kantarjiev wrote:
| Quote: | yertle: {3} nice newfs -b 64k -f 16k /dev/wd1a
|
Try /dev/rwd1a.
Gary Duzan
Motorola CHS |
|
| Back to top |
|
 |
Chris Kantarjiev *nix forums beginner
Joined: 25 Feb 2005
Posts: 27
|
Posted: Fri Apr 14, 2006 8:54 pm Post subject:
Re: disk/disklabel oddity
|
|
|
Gary Duzan wrote:
| Quote: | Chris Kantarjiev wrote:
yertle: {3} nice newfs -b 64k -f 16k /dev/wd1a
Try /dev/rwd1a.
Gary Duzan
Motorola CHS
|
Wow. Yes, that worked fine. I didn't realize it would make that big a difference
- what's going on here? |
|
| Back to top |
|
 |
Gary Duzan *nix forums beginner
Joined: 11 Jan 2006
Posts: 9
|
Posted: Mon Apr 17, 2006 2:46 pm Post subject:
Re: disk/disklabel oddity
|
|
|
Chris Kantarjiev wrote:
| Quote: | Gary Duzan wrote:
Chris Kantarjiev wrote:
yertle: {3} nice newfs -b 64k -f 16k /dev/wd1a
Try /dev/rwd1a.
Gary Duzan
Motorola CHS
Wow. Yes, that worked fine. I didn't realize it would make that big a
difference - what's going on here?
|
The "r" device is a raw character device, while the one without the
"r" is a buffered block device. Using the raw device bypasses the
buffer cache and reads/writes directly to disk. This is usually what you
want when manipulating the underlying structure on the disk, as in a newfs.
Gary Duzan
Motorola CHS |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Wed Dec 03, 2008 1:47 am | All times are GMT
|
|
Credit Check | Credit Counseling | Credit Check | Mobile Phones | Proxy
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|