Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Sep 1996 06:37:23 +0300 (AST)
From:      shadows@whitefang.com
To:        questions@freebsd.org
Subject:   Disk problems.
Message-ID:  <Pine.NEB.3.95.960926063211.226A-100000@broken.whitefang.com>

next in thread | raw e-mail | index | archive | help


I still havent mastered the art of correctly partitions disks to support
FreeBSD filesystems etc.

Here's my current problem. I have my FreeBSD system install on /dev/wd1s2
(IDE) and its fine and dandy. Now I want to create a partition on
/dev/wd2s1 to support an additional filesystems for backuping some logs
etc. 

I went by the book, I believe in the faq it says do it the easy way and
use the /stand/sysinstall I did that After creating a partition I tried
disklabel. Forgive the spam but..

# /dev/wd2:
type: unknown
disk: 
label: 
flags:
bytes/sector: 512
sectors/track: 63
tracks/cylinder: 16
sectors/cylinder: 1008
cylinders: 3158
sectors/unit: 3183264
rpm: 0
interleave: 0
trackskew: 0
cylinderskew: 0
headswitch: 0           # milliseconds
track-to-track seek: 0  # milliseconds
drivedata: 0 

3 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c:  3183264        0    unused        0     0         # (Cyl.    0 -
3157)
Warning, revolutions/minute 0
boot block size 0
super block size 0

Forgive my ignorance but this doesnt look right now does it ;)

I just made one partition here's what it looks like from the fdisk
partitioner

Disk name:      wd2                                    FDISK Partition
Editor
DISK Geometry:  3158 cyls/16 heads/63 sectors

     Offset       Size        End     Name    PType     Desc  Subtype
Flags

           0         63         62        -        6   unused        0
          63    3183201    3183263    wd2s1        3  freebsd      165  C>    

Seems decent.

Oh and check this disklabel doesnt like my working HDD
broken: {34} disklabel /dev/wd1
disklabel: /dev/wd1: Device not configured
or fdisk
broken: {36} fdisk /dev/wd1
Cannot open disk /dev/wd1 (Device not configured)

Wonderful so right now my original device which i just booted from isnt
'configured' and my other device doesnt even accept newfs
broken: {37} newfs /dev/wd2s1
newfs: /dev/wd2s1: not a character-special device
newfs: /dev/wd2s1: `1' partition is unavailable

I'm ABVIOUSLY doing something wrong. And the man pages are of little help
since they expect one to be familiar with the entire proccess.

Any help would be appreciated.


-------------------------------------------------------------------------------
ShadowS                         WhiteFang Unix Software Development
Thamer Al-Herbish               And Consultancy. 
shadows@whitefang.com           
                                Specialising in Custom Network Applications     
                                for Unix Systems.
-------------------------------------------------------------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.95.960926063211.226A-100000>