Seth Mos wrote:
>
> On Tue, 26 Jun 2001, D. Stimits wrote:
>
> > Now I rebooted back to the original drive partition, which works fine
> > after telling kudzu to shut up and not reconfigure all the devices and
> > to not prompt me again. Btw, the disconnected inode was empty, size 0.
> >
> > But it appears that xfs_repair is broken on it, because running
> > xfs_repair -n claims it could not initialize the xfs library. The end of
>
> xfs_repair -n should always work. What version do you use of xfs_repair?
> If you really want to repair it unmount it.
I'll do some more testing tonight. But it does sound like an earlier
reply about not updating mtab before remount could be the problem for
the read-only flag not being correct. For xfs_repair itself, it is from
2.4.6-pre1-xfs cvs. I'll try recompiling it later. As for unmounting,
how do you do this with the root partition (no rescue floppies have
worked so far, and I am struggling to create an ISO image for CD and
then burn it from a windows machine...the linux machine doesn't have a
burner, and windows insists on turning anything I do into a UDF
filesystem regular file).
>
> > an strace makes me believe xfs_repair with "-n" will still refuse to
> > look at a partition that is mounted:
> > open("/etc/mtab", O_RDONLY) = 3
> > brk(0x80d2000) = 0x80d2000
> > fstat64(3, {st_mode=S_IFREG|0644, st_size=150, ...}) = 0
> > mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1,
> > 0) = 0x40018000
> > read(3, "/dev/sda6 / xfs rw 0 0\nnone /pro"..., 4096) = 150
> > read(3, "", 4096) = 0
> > write(2, "xfs_repair: /dev/sda6 contains a"..., 61xfs_repair: /dev/sda6
> > contains a writable mounted filesystem
> > ) = 61
> > close(3) = 0
> > munmap(0x40018000, 4096) = 0
> > write(2, "\nfatal error -- ", 16
> > fatal error -- ) = 16
> > write(2, "couldn\'t initialize XFS library\n", 32couldn't initialize XFS
> > library
> > ) = 32
> > _exit(1) = ?
> >
> >
> > Shouldn't xfs_repair allow me to at least attempt to see what it would
> > do with "-n"?
>
> It would, I believe there are older versions of xfs_repair that barf when
> it is mounted.
>
> Cheers
> Seth
Are there significant changes to xfs_repair later than those of
2.4.6-pre1-xfs?
D. Stimits, stimits@xxxxxxxxxx
|