reiserfsprogs-3.6.12 release
Hi all,
The new reiserfsprogs release is available on our ftp site (ftp.namesys.com).
It includes:
* bad block support, documentation is available at
http://www.namesys.com/bad-block-handling.html
*reiserfsck is able to repair ro mounted filesystems.
* UUID support is rewritten -- link to the libuuid instead of our own code.
* a few bugs were fixed:
- fix for shrinking the filesystem;
- fix for making the filesystem with blocksize greater then 4k;
- fix for making the journal of minimal size;
- fix in reiserfsck --rebuild-sb;
- fix in mount entry detection code;
- fix for the new fs size calculation in resizer;
- fix for parsing the new fs size parameter correctly in resizer;
- fix for checking if the new fs size is correct in resizer;
- fix for handling the very last block on the device if formatted on pass2.
Signature · 2 lines
Thanks, Vitaly Fertman
This release gives me:
Partition /dev/hda3 is mounted with write permissions, cannot check it
When I try to run fsck.reiserfs /dev/hda3 during bootup when the fs is mounted readonly. I have used init=/bin/bash and confirmed this result interactively...
This problem prevented me from booting (due to the particular failure modes of the Gentoo init system) but I'm sure that it is irritating to others as well (unless it is peculiar to my system).
Kernel: 2.6.3-rc1-mm1
Gentoo Linux (unstable) up-to-date
--Brandon
Quoted 26 lines · Vitaly Fertman
Hi all,
The new reiserfsprogs release is available on our ftp site (ftp.namesys.com).
It includes:
* bad block support, documentation is available at
http://www.namesys.com/bad-block-handling.html*reiserfsck is able to repair ro mounted filesystems.
* UUID support is rewritten -- link to the libuuid instead of our own code.
* a few bugs were fixed:
- fix for shrinking the filesystem;
- fix for making the filesystem with blocksize greater then 4k;
- fix for making the journal of minimal size;
- fix in reiserfsck --rebuild-sb;
- fix in mount entry detection code;
- fix for the new fs size calculation in resizer;
- fix for parsing the new fs size parameter correctly in resizer;
- fix for checking if the new fs size is correct in resizer;
- fix for handling the very last block on the device if formatted on pass2.Signature · 2 lines
Thanks, Vitaly Fertman
Quoted 7 lines · Brandon Low
This release gives me:
Partition
/dev/hda3is mounted with write permissions, cannot check itWhen I try to run fsck.reiserfs
/dev/hda3during bootup when the fs is mounted readonly. I have used init=/bin/bash and confirmed this result interactively...
this is strange, would you also try to confirm the result by running this test program on bootup with init=/bin/bash and tell me what it says?
-
Thanks,
Vitaly Fertman
#include <stdio.h>
#include <errno.h>
#include <utime.h>
#include <sys/types.h>
static int misc_file_ro(char *file) {
if (utime(file, 0) == -1) {
if (errno == EROFS)
return 1;
}
return 0;
}int main(int argc, char * argv []) {
if (argc !=2) {
fprintf(stderr, "Usage: %s mount_point\n", argv[0]);
return -1;
}
if (misc_file_ro(argv[1]) == 1)
printf("RO\n");
return 0;
}Thanks for the response, running that program gave me:
bash-2.05b# ./updatetime /
RO
Below are some various results I've gotten while trying to diagnose this. I do not have a serial terminal on the box so it is all hand copied and therefor may contain errors.
Hope it is helpful (in that it may help you help me)
Sincerely,
Brandon Low
bash-2.05b# cat /proc/mounts
rootfs / rootfs rw 0 0/dev/root / reiserfs ro 0 0
none /dev/devfs ro 0 0
proc /proc proc rw 0 0
bash-2.05b# touch /blah
touch: cannot touch `/blah': Read-only file system
bash-2.05b# /sbin/reiserfsck -a /dev/hda3
Failed to open the filesystem.
If the partition talbe has not been changed, and the partition is valid and it really contains a reiserfs partition, then the superblock is corrupted and you need to run this utility with --rebuild-sb.
Aborted
bash-2.05b# /sbin/reiserfsck -a /dev/root
Reiserfs superblock in block 16 on 0x303 of format 3.6 with standard journal Blocks (total/free): 4390223/6461997 by 4096 bytes
Filesystem is cleanly mounted
Paritition /dev/root is mounted with write permissions, cannot check it
Quoted 41 lines · Vitaly Fertman
Quoted 7 lines · Brandon Low
This release gives me:
Partition
/dev/hda3is mounted with write permissions, cannot check itWhen I try to run fsck.reiserfs
/dev/hda3during bootup when the fs is mounted readonly. I have used init=/bin/bash and confirmed this result interactively...this is strange, would you also try to confirm the result by running this test program on bootup with init=/bin/bash and tell me what it says?
-
Thanks,
Vitaly Fertman#include <
stdio.h>
#include <errno.h>
#include <utime.h>
#include <sys/types.h>static int misc_file_ro(char *file) { if (utime(file, 0) == -1) { if (errno == EROFS) return 1; } return 0; }int main(int argc, char * argv []) { if (argc !=2) { fprintf(stderr, "Usage: %s mount_point\n", argv[0]); return -1; } if (misc_file_ro(argv[1]) == 1) printf("RO\n"); return 0; }
Quoted 9 lines
bash-2.05b#
/sbin/reiserfsck-a/dev/hda3Failed to open the filesystem.
If the partition talbe has not been changed, and the partition is valid and it really contains a reiserfs partition, then the superblock is corrupted and you need to run this utility with --rebuild-sb.
Quoted 7 lines
Aborted
bash-2.05b#
/sbin/reiserfsck-a/dev/root
Reiserfs superblock in block 16 on0x303of format 3.6 with standard journal Blocks (total/free): 4390223/6461997 by 4096 bytes Filesystem is cleanly mounted
Paritition/dev/rootis mounted with write permissions, cannot check it
hm, interesting, would you run
stat /dev/hda3 (Henning, put here your root partition please) stat /dev/root
stat /
at bootup and when booted.
--
Thanks,
Vitaly Fertman
Am Donnerstag, 12. Februar 2004 12:31 schrieb Vitaly Fertman:
Quoted 6 lines
hm, interesting, would you run
stat/dev/hda3(Henning, put here your root partition please) stat/dev/root
stat /
at bootup and when booted.
Thank you for the reply, sure, no problem.
- from an emergency shell
File: `/'
Size: 536 Blocks: 2 IO Block: 131072 directory Device: 1607h/5639d Inode: 2 Links: 21 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
File: /dev/hdc7' -> ide/host0/bus1/target0/lun0/part7'
Size: 33 Blocks: 0 IO Block: 1024 symbolic link
Device: ah/10d Inode: 1322 Links: 1
Access: (0555/lr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
File: /dev/root' -> ide/host0/bus1/target0/lun0/part7'
Size: 33 Blocks: 0 IO Block: 1024 symbolic link
Device: ah/10d Inode: 676 Links: 1
Access: (0555/lr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
- from a shell after bootup
File: ,,/"
Size: 536 Blocks: 2 IO Block: 131072 Verzeichnis Device: 1607h/5639d Inode: 2 Links: 21 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
File: ,,/dev/hdc7" -> ,,ide/host0/bus1/target0/lun0/part7"
Size: 33 Blocks: 0 IO Block: 1024 symbolische
Verknüpfung
Device: ah/10d Inode: 1322 Links: 1
Access: (0555/lr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
File: ,,/dev/root" -> ,,ide/host0/bus1/target0/lun0/part7"
Size: 33 Blocks: 0 IO Block: 1024 symbolische
Verknüpfung
Device: ah/10d Inode: 676 Links: 1
Access: (0555/lr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Best regards,
Henning
Quoted 11 lines
File: ,,/"
Size: 536 Blocks: 2 IO Block: 131072 Verzeichnis Device: 1607h/5639d Inode: 2 Links: 21 Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)File: ,,/dev/hdc7" -> ,,ide/host0/bus1/target0/lun0/part7"
Size: 33 Blocks: 0 IO Block: 1024 symbolische
Verknüpfung
Device: ah/10d Inode: 1322 Links: 1
Access: (0555/lr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Quoted 5 lines
File: ,,/dev/root" -> ,,ide/host0/bus1/target0/lun0/part7"
Size: 33 Blocks: 0 IO Block: 1024 symbolische
Verknüpfung
Device: ah/10d Inode: 676 Links: 1
Access: (0555/lr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
so dev is devfs. ok, would you then
stat ide/host0/bus1/target0/lun0/part7
?
looks like rdev of the device file on devfs does not match to dev of its mount point.
--
Thanks,
Vitaly Fertman
Am Donnerstag, 12. Februar 2004 15:10 schrieb Vitaly Fertman:
Quoted 7 lines
so dev is devfs. ok, would you then
stat ide/host0/bus1/target0/lun0/part7?
looks like rdev of the device file on devfs does not match to dev of its mount point.
This command gives me (after boot)
$ stat /dev/ide/host0/bus1/target0/lun0/part7 File: ,,/dev/ide/host0/bus1/target0/lun0/part7" Size: 0 Blocks: 0 IO Block: 1024 blockorientierte Spezialdatei Device: ah/10d Inode: 646 Links: 1 Device type: 16,7 Access: (0600/brw-------) Uid: ( 0/ root) Gid: ( 0/ root)
$ rdev /dev/ide/host0/bus1/target0/lun0/part7 /
Well, but why checks reiserfsprogs-3.6.11 this device without problems during the boot process?
Regards,
Henning
Quoted 6 lines · Vitaly Fertman
so dev is devfs. ok, would you then
stat ide/host0/bus1/target0/lun0/part7?
looks like rdev of the device file on devfs does not match to dev of its mount point.
I've done some of this stuff too, in case it is useful, attached is a script file from me doing so.
--Brandon
Quoted 4 lines
--
Thanks,
Vitaly Fertman
Script started on Thu Feb 12 10:15:39 2004
sh-2.05b# stat /
File: `/'
Size: 752 Blocks: 2 IO Block: 131072 directory
Device: 303h/771d Inode: 2 Links: 22
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2003-05-29 10:33:47.000000000 -0500
Modify: 2004-02-12 10:15:39.000000000 -0600
Change: 2004-02-12 10:15:39.000000000 -0600
sh-2.05b# stat /dev/hda3
File: /dev/hda3' -> ide/host0/bus0/target0/lun0/part3'
Size: 33 Blocks: 0 IO Block: 1024 symbolic link
Device: ah/10d Inode: 1240 Links: 1
Access: (0555/lr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2004-02-12 10:15:14.000000000 -0600
Modify: 2004-02-12 10:02:39.000000000 -0600
Change: 2004-02-12 10:02:39.000000000 -0600
sh-2.05b# stat /dev/root
File: /dev/root' -> ide/host0/bus0/target0/lun0/part3'
Size: 33 Blocks: 0 IO Block: 1024 symbolic link
Device: ah/10d Inode: 621 Links: 1
Access: (0555/lr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2004-02-12 10:15:18.000000000 -0600
Modify: 2004-02-12 10:02:31.000000000 -0600
Change: 2004-02-12 10:02:31.000000000 -0600
sh-2.05b# stat /dev/ide/host0/bus0/target0/lun0/part3
File: `/dev/ide/host0/bus0/target0/lun0/part3'
Size: 0 Blocks: 0 IO Block: 1024 block special file
Device: ah/10d Inode: 611 Links: 1 Device type: 3,3
Access: (0600/brw-------) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 1969-12-31 18:00:00.000000000 -0600
Modify: 1969-12-31 18:00:00.000000000 -0600
Change: 1969-12-31 18:00:00.000000000 -0600
sh-2.05b# rdev/dev/ide/host0/bus0/target0/lun0/part3 /
Script done on Thu Feb 12 10:16:59 2004