View Single Post
  #8   (View Single Post)  
Old 20th December 2010
ghostcorps ghostcorps is offline
New User
 
Join Date: Nov 2010
Posts: 8
Default

Still no love


Is there any chance it is a hardware issue perhaps?

Code:
# whoami
root
Code:
# ls /dev/da2*
/dev/da2
Code:
# df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
/dev/da1s1a    7.7G    402M    6.7G     6%    /
devfs          1.0K    1.0K      0B   100%    /dev
/dev/da1s1e    989M    214K    910M     0%    /tmp
/dev/da1s1f     42G    8.6G     30G    22%    /usr
/dev/da1s1d    7.7G    439M    6.7G     6%    /var
/dev/da0s1a    496M    199M    257M    44%    /7.0
/dev/da0s1f    9.5G    2.7G    6.0G    32%    /7.0/usr
Code:
# gpart show
=>       63  143374644  da0  MBR  (68G)
         63  143363997    1  freebsd  (68G)
  143364060      10647       - free -  (5.2M)

=>       63  143374644  da1  MBR  (68G)
         63  143363997    1  freebsd  [active]  (68G)
  143364060      10647       - free -  (5.2M)

=>        0  143363997  da0s1  BSD  (68G)
          0    1048576      1  freebsd-ufs  (512M)
    1048576    8388608      2  freebsd-swap  (4.0G)
    9437184   10450944      4  freebsd-ufs  (5.0G)
   19888128    1048576      5  freebsd-ufs  (512M)
   20936704   20480000      6  freebsd-ufs  (9.8G)
   41416704  101947293         - free -  (49G)

=>        0  143363997  da1s1  BSD  (68G)
          0   16777216      1  freebsd-ufs  (8.0G)
   16777216   16777216      2  freebsd-swap  (8.0G)
   33554432   16777216      4  freebsd-ufs  (8.0G)
   50331648    2097152      5  freebsd-ufs  (1.0G)
   52428800   90935197      6  freebsd-ufs  (43G)
Code:
# dd if=/dev/zero of=/dev/da2 count=2
dd: /dev/da2: Operation not permitted
Code:
# newfs -L media -U /dev/da2
newfs: /dev/da2: failed to open disk for writing

Code:
# fdisk /dev/da2
******* Working on device /dev/da2 *******
parameters extracted from in-core disklabel are:
cylinders=364749 heads=255 sectors/track=63 (16065 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=364749 heads=255 sectors/track=63 (16065 blks/cyl)

fdisk: invalid fdisk partition table found
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 1564730937 (764028 Meg), flag 80 (active)
        beg: cyl 0/ head 1/ sector 1;
        end: cyl 119/ 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>
Code:
bsd# fsck_ffs /dev/da2
** /dev/da2 (NO WRITE)
Cannot find file system superblock
ioctl (GCINFO): Inappropriate ioctl for device
fsck_ffs: /dev/da2: can't read disk label

Last edited by ghostcorps; 20th December 2010 at 10:50 PM.
Reply With Quote