NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
question about paritions/disklabel
Hi,
I'm following the manual about adding a new drive. I was able to add the drive
but I seem to be missing 'a' and 'b'.. Thought it would be good to see if
somebody has an explanation instead of finding out down the road I did
something wrong.
this machine:
# uname -a
NetBSD 6.0_STABLE NetBSD 6.0_STABLE (KAINDA) #1: Wed Feb 13 22:53:31 PST 2013
da3m0n8t3r@:/usr/obj/sys/arch/amd64/compile/KAINDA amd64
disklabel shows
5 partitions:
# size offset fstype [fsize bsize cpg/sgs]
c: 1953523120 2048 unused 0 0 # (Cyl. 2*- 1938020
)
d: 1953525168 0 unused 0 0 # (Cyl. 0 - 1938020
)
e: 1953523120 2048 4.2BSD 0 0 0 # (Cyl. 2*- 1938020
For some reason it says 5 partitions, but only lists 3.
fdisk shows
Partition table:
0: NetBSD (sysid 169)
start 2048, size 1953523120 (953869 MB, Cyls 0-121601/80/63)
PBR is not bootable: All bytes are identical (0x00)
1: <UNUSED>
2: <UNUSED>
3: <UNUSED>
So using newfs:
# newfs /dev/rwd1a
newfs: /dev/rwd1a: open for read: Device not configured
but if i do newfs /dev/rwd1e it's OK
# newfs /dev/rwd1e
/dev/rwd1e: 953868.7MB (1953523120 sectors) block size 32768, fragment size 4096
using 1287 cylinder groups of 741.19MB, 23718 blks, 47104 inodes.
# mount
/dev/wd0a on / type ffs (log, local)
kernfs on /kern type kernfs (local)
ptyfs on /dev/pts type ptyfs (local)
procfs on /proc type procfs (local)
/dev/wd1e on /b type ffs (local)
# df -lh
Filesystem Size Used Avail %Cap Mounted on
/dev/wd0a 909G 8.2G 856G 0% /
kernfs 1.0K 1.0K 0B 100% /kern
ptyfs 1.0K 1.0K 0B 100% /dev/pts
procfs 4.0K 4.0K 0B 100% /proc
/dev/wd1e 924G 8.0G 870G 0% /b
To test, I wrote 8 GB file and it 'sticks'
# ./initwrite 1
# ls -l /b/1
-rw------- 1 root wheel 8589934592 Feb 16 15:41 /b/1
So it looks OK .. just wondering about a&b. It's a little different than the
documentation.
Thank you,
--
Waitman Gobble
San Jose California USA
Home |
Main Index |
Thread Index |
Old Index