On Fri, 16 Jan 2009 10:38:16 +0100, Milos Jana wrote:
> u...@laptop:~/prog/sources/nilfs-utils-2.0.6$ sudo fsck0.nilfs2 /dev/sdb
> [sudo] password for user:
> Super-block:
>   revision = 2.0, checksum = OK
<snip>
> Searching the latest checkpoint.
> Selected segment: blocknr = 4261888
>   segnum = 2081, seq = 11745, cno=6660
>   creation time = 2008-12-28 09:48:34
> Do you wish to overwrite super block (y/N)? Y

Oops, use 'y' instead of 'Y'.

Sorry for the unfriendly interface.
I'll fix it in a next time.

Ryusuke

> Recovery will complete on mount.
> u...@laptop:~/prog/sources/nilfs-utils-2.0.6$ sudo mount /media/pendrive/
> mount.nilfs2: Error while mounting /dev/sdb on /media/pendrive: Invalid
> argument
> 
> dmesg returns the same errors:
> [ 553.003240] NILFS warning: Segment magic number invalid
> [ 553.003248] NILFS: error searching super root.
> 
> On Fri, Jan 16, 2009 at 8:55 AM, Ryusuke Konishi <[email protected]> wrote:
> 
> > On Thu, 15 Jan 2009 19:10:19 +0100, "Milos Jana" wrote:
> > > Nilfs-utils compiled properly with patch after following instructions
> > from
> > > your previous post. Here is what came out:
> > >
> > > u...@laptop:~$ sudo fsck0.nilfs2 /dev/sdb
> > > Super-block:
> > >   revision = 2.0, checksum = OK
> > >   blocksize = 4096
> > >   write time = 2008-12-28 09:48:42
> > >   indicated partial segment: blocknr = 4263936
> > >   segnum = 2082, seq = 11746, cno=6661
> > >
> > > Clean FS.
> > >
> > > u...@laptop:~$ sudo mount /media/pendrive/
> > > mount.nilfs2: Error while mounting /dev/sdb on /media/pendrive: Invalid
> > > argument
> >
> > Hmm, that's weird.
> >
> > The partition was cleanly unmounted, but the final segment seems not
> > to be written to the disk.
> >
> > Maybe, we need 'force' option to treat such situation.
> >
> > In the meatime, could you try the following (additional) patch?
> >
> > Regards,
> > Ryusuke
> > --
> >
> > diff --git a/sbin/mkfs/fsck0.nilfs2.c b/sbin/mkfs/fsck0.nilfs2.c
> > index d3d335f..0d51e54 100644
> > --- a/sbin/mkfs/fsck0.nilfs2.c
> > +++ b/sbin/mkfs/fsck0.nilfs2.c
> > @@ -905,10 +905,12 @@ static void nilfs_fsck(const char *device)
> >        print_pseg_message(&pseg_ref, "    indicated partial segment");
> >        fputc('\n', stderr);
> >
> > +#if 0
> >        if (le16_to_cpu(sb.s_state) & NILFS_VALID_FS) {
> >                fprintf(stderr, "Clean FS.\n");
> >                goto out_clean;
> >        }
> > +#endif
> >
> >        if (nilfs_do_recovery(devfd, &pseg_ref) == 0)
> >                goto out;
> >
_______________________________________________
users mailing list
[email protected]
https://www.nilfs.org/mailman/listinfo/users

Reply via email to