NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: port-xen/56782: panic: /: bad dir ino null entry



The following reply was made to PR port-xen/56782; it has been noted by GNATS.

From: Bartosz Maciejewski <bartosz%maciejewski.org@localhost>
To: gnats-bugs%netbsd.org@localhost, port-xen-maintainer%netbsd.org@localhost,
 gnats-admin%netbsd.org@localhost, netbsd-bugs%netbsd.org@localhost
Cc: 
Subject: Re: port-xen/56782: panic: /: bad dir ino null entry
Date: Wed, 6 Apr 2022 17:54:52 +0200

 Sure. I mounted it as asecond drive into other machine, as /mnt, so here 
 is the output:
 
 # fsdb -f /dev/rxbd1a
 ** /dev/rxbd1a
 Editing file system `/dev/rxbd1a'
 Last Mounted on /mnt
 current inode: directory
 I=2 MODE=40755 SIZE=1536
 MTIME=Mar 31 19:46:00 2022 [655437624 nsec]
 CTIME=Mar 31 19:46:00 2022 [655437624 nsec]
 ATIME=Apr  6 11:52:52 2022 [143855887 nsec]
 OWNER=root GRP=wheel LINKCNT=27 FLAGS=0x0 BLKCNT=0x4 GEN=0x0
 fsdb (inum: 2)> cd /mnt/var/cache/fontconfig
 component `mnt': current inode: directory
 I=10 MODE=40755 SIZE=512
 MTIME=Apr  6 07:07:37 2022 [57705651 nsec]
 CTIME=Apr  6 07:07:37 2022 [57707421 nsec]
 ATIME=Apr  6 07:07:37 2022 [23515205 nsec]
 OWNER=root GRP=wheel LINKCNT=2 FLAGS=0x0 BLKCNT=0x2 GEN=0x0
 component `var': fsdb: name `var' not found in current inode directory
 fsdb: rval was 1
 fsdb (inum: 10)> ls
 slot 0 ino 10 reclen 12: directory, `.'
 slot 1 ino 2 reclen 500: directory, `..'
 fsdb (inum: 10)> > quit
 *** FILE SYSTEM MARKED DIRTY
 *** BE SURE TO RUN FSCK TO CLEAN UP ANY DAMAGE
 *** IF IT WAS MOUNTED, RE-MOUNT WITH -u -o reload
 
 
 And for the Partition info here is fdsik and disklabel. Hope this helps.
 
 
 # fdisk /dev/xbd1
 fdisk: primary partition table invalid, no magic in sector 0
 fdisk: Cannot determine the number of heads
 Disk: /dev/xbd1d
 NetBSD disklabel disk geometry:
 cylinders: 2048000, heads: 1, sectors/track: 2048 (2048 sectors/cylinder)
 total sectors: 4194304000, bytes/sector: 512
 
 BIOS disk geometry:
 cylinders: 1023, heads: 255, sectors/track: 63 (16065 sectors/cylinder)
 total sectors: 4194304000
 
 Partitions aligned to 2048 sector boundaries, offset 2048
 
 Partition table:
 0: <UNUSED>
 1: <UNUSED>
 2: <UNUSED>
 3: <UNUSED>
 Bootselector disabled.
 
 No active partition.
 Drive serial number: 0 (0x00000000)
 
 # disklabel xbd1
 # /dev/rxbd1d:
 type: unknown
 disk: XenServer
 label:
 flags:
 bytes/sector: 512
 sectors/track: 63
 tracks/cylinder: 16
 sectors/cylinder: 1008
 cylinders: 20805
 total sectors: 4194304000
 rpm: 3600
 interleave: 1
 trackskew: 0
 cylinderskew: 0
 headswitch: 0# microseconds
 track-to-track seek: 0# microseconds
 drivedata: 0
 
 16 partitions:
 #        size    offset     fstype [fsize bsize cpg/sgs]
   a: 4192206848         0     4.2BSD   2048 16384     0  # (Cyl.      0 
 - 4158935*)
   b:   2097152 4192206848       swap                     # (Cyl. 
 4158935*- 4161015*)
   c: 4194304000         0     unused      0     0        # (Cyl.      0 
 - 4161015*)
   d: 4194304000         0     unused      0     0        # (Cyl.      0 
 - 4161015*)
 
 
 W dniu 06.04.2022 o 14:00, Martin Husemann pisze:
 > The following reply was made to PR port-xen/56782; it has been noted by GNATS.
 >
 > From: Martin Husemann <martin%duskware.de@localhost>
 > To: gnats-bugs%netbsd.org@localhost
 > Cc:
 > Subject: Re: port-xen/56782: panic: /: bad dir ino null entry
 > Date: Wed, 6 Apr 2022 13:58:50 +0200
 >
 >   On Wed, Apr 06, 2022 at 11:45:00AM +0000, bartosz%maciejewski.org@localhost wrote:
 >   
 >   > FSCKing with -f does not fix problem. Same problem is when accessing
 >   > /var/cache/fontconfig dir.
 >   
 >   That sounds like a bug in fsck(8) that should be fixed!
 >   
 >   Can you acces the filesystem from some other machine? Alternatively
 >   boot to single user and then use fsdb on the root device.
 >   
 >   Something like:
 >   
 >    # fsdb -f /dev/rdk0
 >    fsdb (inum: 2) > cd /var/cache/fontconfig
 >    fsdb (inum: 6465329)> ls
 >   
 >   and show us the output. Also please show the partition info of the device.
 >   
 >   Martin
 >   
 


Home | Main Index | Thread Index | Old Index