All of lore.kernel.org
 help / color / mirror / Atom feed
* Permission Denied errors in ReiserFS
@ 2002-04-22  8:42 David Khoury
  2002-04-22  8:49 ` Oleg Drokin
  0 siblings, 1 reply; 4+ messages in thread
From: David Khoury @ 2002-04-22  8:42 UTC (permalink / raw)
  To: reiserfs-list

 The subject says it all.  I've checked the mail archive on the website, and
 I can't see any solutions so far, so I've decided to mail in.

 Here's the problem:

 My /var/log/messages file is behaving extremely strangely.

 I try to do a "ls /var/log/messages", I get the following error message:
 ls: /var/log/messages: Permission denied

 I tried a "rm /var/log/messages", same message.
 "touch /var/log/messages", same message.
 "rm /var/log/messages", same message.
 "chmod 644 /var/log/messages", same message.

 Even "lsof /var/log/messages" gives a permission denied!

 My kernel version is 2.4.19-pre5-ac3, custom compiled. The problem still
 happens with 2.4.17, which is another version I have on this system. ReiserFS
 filesystem is format 3.5, and it is the root partition.

 I thought there might be filesystem specific attributes, like the 'i'
 attribute with "chattr" and ext2/3.  But I can't seem to find any program
 that sets ReiserFS filesystem attributes.

 I tried doing a "reiserfsck" on my root partition. Dropped into single user
 mode, remounted the root partition as read only, and then ran the command.
 The program exited with an assertion error! Here's the output from the check:

 ----------------
 thedell:~# reiserfsck /dev/hda2

 <-------------reiserfsck, 2002------------->
 reiserfsprogs 3.x.1b

 Will read-only check consistency of the filesystem on /dev/hda2
 Will put log info to 'stdout'

 Do you want to run this program?[N/Yes] (note need to type Yes):Yes
 ###########
 reiserfsck --check started at Sun Apr 21 11:41:10 2002
 ###########
 Filesystem seems mounted read-only. Skipping journal replay..
 Checking S+tree../ 15 (of 134)/130 (of 162)bit 807415840, bitsize 1026151
 reiserfsck: bitmap.c:160: reiserfs_bitmap_test_bit: Assertion `bit_number <
 bm->bm_bit_size' failed.
 Aborted
 ----------------

 I've tried 3.x.1a as well, and it does the same thing.

 Here's the output from debugreiserfs, just in case it may be helpful:
 ----------------
 thedell:~# debugreiserfs /dev/hda2

 <-------------debugreiserfs, 2002------------->
 reiserfsprogs 3.x.1b


 Filesystem state: consistency is not checked after last mounting

 Reiserfs super block in block 16 on 0x302 of format 3.5 with standard
 journal
 Count of blocks on the device: 1026151
 Number of bitmaps: 32
 Blocksize: 4096
 Free blocks (count of blocks - used [journal, bitmaps, data, reserved]
		 blocks): 600648
 Root block: 83791
 Filesystem is NOT cleanly umounted
 Tree height: 4
 Hash function used to sort names: "r5"
 Objectid map size 458, max 1004
 Journal parameters:
 Device [0x0]
	Magic [0x0]
	Size 8193 blocks (including 1 for journal header) (first block 18)
	Max transaction length 1024 blocks
	Max batch size 900 blocks
	Max commit age 30
 Blocks reserved by journal:
 0
 Fs state field: 0x1
 sb_version: 0
 ----------------

 If any developer wants to check out my metadata file (saved via the usual
 debugreiserfs command), I've got it at:

 http://hal.flex.com.au/~dave/mymetadata.gz

 Phew, I hope I've got enough information in this email :).

 That's it for me.  I've just subscribed to the reiserfs-list, so I'll be
 able to see all replies.

 dave

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Permission Denied errors in ReiserFS
  2002-04-22  8:42 Permission Denied errors in ReiserFS David Khoury
@ 2002-04-22  8:49 ` Oleg Drokin
  2002-04-22 16:02   ` David Khoury
  0 siblings, 1 reply; 4+ messages in thread
From: Oleg Drokin @ 2002-04-22  8:49 UTC (permalink / raw)
  To: David Khoury; +Cc: reiserfs-list

Hello!

On Mon, Apr 22, 2002 at 06:42:57PM +1000, David Khoury wrote:
>  reiserfsprogs 3.x.1b
>  Filesystem seems mounted read-only. Skipping journal replay..
>  Checking S+tree../ 15 (of 134)/130 (of 162)bit 807415840, bitsize 1026151
>  reiserfsck: bitmap.c:160: reiserfs_bitmap_test_bit: Assertion `bit_number <
>  bm->bm_bit_size' failed.
>  Aborted
>  ----------------

This bug is known already, and is fixed in 3.x.1c-pre2.
You can get it from ftp://ftp.namesys.com/pub/reiserfsprogs/pre/reiserfsprogs-3.x.1c-pre2.tar.gz

Thanks for your report.

By the way, you won;t be able to do any recovery on mounted filesystem,
even on readonly mounted one.
You need to have some rescue media to boot from, and start reiserfsck from
there.


Bye,
    Oleg

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Permission Denied errors in ReiserFS
  2002-04-22  8:49 ` Oleg Drokin
@ 2002-04-22 16:02   ` David Khoury
  2002-04-23  6:51     ` Oleg Drokin
  0 siblings, 1 reply; 4+ messages in thread
From: David Khoury @ 2002-04-22 16:02 UTC (permalink / raw)
  To: reiserfs-list

 Problem is solved now, thanks to Olav's suggestion.
 
 Just for the benefit of those with similar problems, and for those searching
 in the mail archives:

 Run reiserfsck --fix-fixable on your ReiserFS partition.  Make sure you're
 using at least verion 3.x.1c-pre2 of the reiserfsprogs.  You'll have to boot
 from a floppy or cdrom, if your ReiserFS partiton is the root partition.
 Remounting the root filesystem as 'ro' isn't enough.
 (this is obvious to me now, when I consider metadata cacheing.  It's a
 bummer, because it would have been wonderful to do an fsck on a 'ro' mounted
 filesystem).

 dave

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Permission Denied errors in ReiserFS
  2002-04-22 16:02   ` David Khoury
@ 2002-04-23  6:51     ` Oleg Drokin
  0 siblings, 0 replies; 4+ messages in thread
From: Oleg Drokin @ 2002-04-23  6:51 UTC (permalink / raw)
  To: David Khoury; +Cc: reiserfs-list

Hello!

On Tue, Apr 23, 2002 at 02:02:15AM +1000, David Khoury wrote:
>  Run reiserfsck --fix-fixable on your ReiserFS partition.  Make sure you're
>  using at least verion 3.x.1c-pre2 of the reiserfsprogs.  You'll have to boot

No! In fact there is a reason we have pre versions separate from releases.
Latest pre version should only be used if latest release does not work.
Some prior consulting in this list might help, too.

>  from a floppy or cdrom, if your ReiserFS partiton is the root partition.
>  Remounting the root filesystem as 'ro' isn't enough.
>  (this is obvious to me now, when I consider metadata cacheing.  It's a
>  bummer, because it would have been wonderful to do an fsck on a 'ro' mounted
>  filesystem).

New pivot_root stuff in should cure that. Because you can actually unmount
root. (or should be able to do it, anyway).

Bye,
    Oleg

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-04-23  6:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-04-22  8:42 Permission Denied errors in ReiserFS David Khoury
2002-04-22  8:49 ` Oleg Drokin
2002-04-22 16:02   ` David Khoury
2002-04-23  6:51     ` Oleg Drokin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.