RE:debugfsFreeBSD

2010-07-09 Thread Dmitry Lunts
Thanks for your responses!
fsdb really works.
The event sequence was as follows:
$sudo smartctl -t long /dev/ad6
$sudo smartctl -l selftest /dev/ad6

Num  Test_DescriptionStatus  Remaining  ...
LBA_of_first_error
# 1  Extended offlineCompleted: read failure90%7376   ...
4007967
SKIP
$sudo bsdlabel ad6s1
8 partitions:
#size   offsetfstype   [fsize bsize bps/cpg]
  a:  104857604.2BSD 2048 16384 8
  b:  1048576  1048576  swap
  c: 1006632270unused0 0 # raw part, don't
edit
  d:  2097152  20971524.2BSD 2048 16384 28552
  e:   655360  41943044.2BSD 2048 16384 40968
  f: 37748736  48496644.2BSD 2048 16384 28552
  g: 58064827 425984004.2BSD 2048 16384 28552

From the above output one can conclude that bad sector
(LBA_of_first_error=4007967) lies in
the partition ad6s1d, which in my case is mounted to /var (from fstab)
Further:
$fsdb -r /dev/ad6s1d

Bad sector offset within /var is
LBA_of_first_error-62-offset_of_partition_d=
4007967-63-2097152=1910752
so, next step:

fsdb (inum: 2) findblk 1910752
1910752: data block of inode 117934
fsdb (inum: 117934) inode 117934
current inode: regular file
I=117934 MODE=100644 SIZE=53609
BTIME=Jul  1 20:10:54 2010 [0 nsec]
MTIME=Jul  1 20:10:54 2010 [0 nsec]
CTIME=Jul  1 20:10:54 2010 [0 nsec]
ATIME=Jul 10 00:33:55 2010 [0 nsec]
OWNER=root GRP=wheel LINKCNT=1 FLAGS=0 BLKCNT=6c GEN=8c5ac7e
fsdb (inum: 117934)blocks
Blocks for inode 117934:
Direct blocks:
477680, 477688, 477696, 477848 (3 frags)
First fragment FSBlock (477688) when multiplied by 4
gives me exactly 1910752. i.e. LBA_of_first_error
(4 is fsbtodb param from the output of ffsinfo  -l 1 /dev/ad6s1d)

Next I search for defect file:

$ sudo find /var -inum 117934
/var/db/pkg/kdeutils-3.5.10_5/+CONTENTS

And what's more:
when I try to upgrade some port or simply issue the command

$sudo pkgdb -uF

I get this error:

Input/Output error - /var/db/pkg/kdeutils-3.5.10_5/+CONTENTS

wich corresponds exactly with what was previousely
discovered by means of smartctl, fsdb and find.
Just one more question (maybe a bit stupid): if I try to remap bad sector(s)
in /var/db/pkg with, for instance,

dd if=/dev/zero of=/dev/ad6 bs=512 count=1 seek=1910752

can I cosequently safely restore pkgdb with pkgdb -uF?
TIA

С уважением, Дмитрий
Best regards, Dmitry
email: eingorn...@gmail.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


debugfsFreeBSD

2010-07-07 Thread Dmitry Lunts
Hello,All!
There is debugfs program dealing with ext2/ext3/ext4 filesystems.
Is there some tool in FreeBSD with functionality analogous to debugfs
which can operate on UFS2?
Could anyone give me a hint?
The thing is that recently I found out (thru smartctl)
several bad blocks on UFS2 partition.
The problem is how to discover which file(s) they belong to.
TIA

-- 
С уважением, Дмитрий
Best regards, Dmitry
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


sound disappeared when transition from linux_base-fc4 to linux_base-fc6

2009-06-14 Thread Dmitry Lunts
Hello,all!
The problem is as follows.
A couple of days ago I did transition from linux_base-fc4 (default
linux support module) to linux_base-fc6. The purpose was to install
skype, which rquires at least linux_base-fc6 support. Along with this
I completely reinstalled (pkg_delete then
make install clean from week-ago portsnapped ports tree) all the
dependent ports, including
linux-flashplugin-9.0r159 and nspluginwrapper.
The rusult is: skype works OK,
but sound completely disappeared when when watchin videos from, say, youtube.
Sound system itself works OK, as well as skype, too :-))
Could anyone give me a hint or readdress me to the right mailing list?
Regards,
P.S.OS FreeBSD 7.1
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org