public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] root (/) read-only?
@ 2005-09-27  4:58 dave waddelove
  2005-09-27  6:30 ` Dirk Heinrichs
  0 siblings, 1 reply; 9+ messages in thread
From: dave waddelove @ 2005-09-27  4:58 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 717 bytes --]

Hey guys,

Quite often if I leave my computer on for a few hours, I come back and try
to do something and I find that my system has all of a sudden changed from
rw to ro on my root partition... Has anyone else experienced this? One thing
I noticed is that I get an error message upon sstartup about not being able
to find fsck.xfs upon startup for /dev/hda4 (my root partition). could this
have anything to do with it? I am running into a lot of problems beacuse of
this since a lot of programs rely on writing tmp files to /tmp on my root
partition. A lot of programs freeze or crap out and I have to do a hard
reboot, which I know will cause a problem one of these days....

Thanks in advance!

Dave

[-- Attachment #2: Type: text/html, Size: 783 bytes --]

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

* Re: [gentoo-user] root (/) read-only?
  2005-09-27  4:58 [gentoo-user] root (/) read-only? dave waddelove
@ 2005-09-27  6:30 ` Dirk Heinrichs
  2005-09-27  7:54   ` Neil Bothwick
  0 siblings, 1 reply; 9+ messages in thread
From: Dirk Heinrichs @ 2005-09-27  6:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1395 bytes --]

Am Dienstag, 27. September 2005 06:58 schrieb ext dave waddelove:
> Hey guys,
>
> Quite often if I leave my computer on for a few hours, I come back and
> try to do something and I find that my system has all of a sudden changed
> from rw to ro on my root partition... Has anyone else experienced this?

Check your filesystem. Linux will remount filesystems ro if it finds any 
errors.

> One thing I noticed is that I get an error message upon sstartup about
> not being able to find fsck.xfs upon startup for /dev/hda4 (my root
> partition).

Install it, asap. But before, boot into a LiveCD and fsck.xfs /dev/hda4 from 
there.

> could this have anything to do with it? I am running into a 
> lot of problems beacuse of this since a lot of programs rely on writing
> tmp files to /tmp on my root partition. A lot of programs freeze or crap
> out and I have to do a hard reboot, which I know will cause a problem one
> of these days....

Make /tmp a seperate filesystem (if you have enough ram, you could use 
tmpfs).

HTH...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

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

* Re: [gentoo-user] root (/) read-only?
  2005-09-27  6:30 ` Dirk Heinrichs
@ 2005-09-27  7:54   ` Neil Bothwick
  2005-09-27  8:31     ` [gentoo-user] Named problem, I'm beyond my depth and need a little help here Bob Young
  2005-09-27 11:51     ` [gentoo-user] root (/) read-only? glumtail
  0 siblings, 2 replies; 9+ messages in thread
From: Neil Bothwick @ 2005-09-27  7:54 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 616 bytes --]

On Tue, 27 Sep 2005 08:30:30 +0200, Dirk Heinrichs wrote:

> > One thing I noticed is that I get an error message upon sstartup about
> > not being able to find fsck.xfs upon startup for /dev/hda4 (my root
> > partition).
> 
> Install it, asap. But before, boot into a LiveCD and fsck.xfs /dev/hda4
> from there.

It wouldn't do much

[nelz@hactar iso]$ whatis fsck.xfs
fsck.xfs [fsck]      (8)  - do nothing, successfully

You need to use xfscheck for this. emerge xfsprogs and check out your
filesystem.


-- 
Neil Bothwick

In possession of a mind not merely twisted, but actually sprained.

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* [gentoo-user] Named problem, I'm beyond my depth and need a little help here
  2005-09-27  7:54   ` Neil Bothwick
@ 2005-09-27  8:31     ` Bob Young
  2005-09-27  8:50       ` Ow Mun Heng
  2005-09-27 11:51     ` [gentoo-user] root (/) read-only? glumtail
  1 sibling, 1 reply; 9+ messages in thread
From: Bob Young @ 2005-09-27  8:31 UTC (permalink / raw
  To: gentoo-user

Installed 2.6.11-hardnend-r15 to use as a secondary DNS server for the
four domains I have. I can get named to start but it's by brute force,
and I want to understand/fix the problem with it not starting via the
default init script.

Here is what the start{} section of /etc/init.d/named looked like
originally:

start() {
        ebegin "Starting ${CHROOT:+chrooted }named"
        checkconfig || return 1
        start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec
/usr/sbin/named -u named -n ${CPU} ${OPTIONS} ${CHROOT:+-t $CHROOT}
        eend $?
}


With that init script, here is the result I get:

ns BYoung # /etc/init.d/named start
 * Starting named ...
usage: named [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
             [-p port] [-s] [-t chrootdir] [-u username]
named: extra command line arguments                [ !! ]
ns BYoung #


*******************************************************************


If I change the start{} section of /etc/init.d/named to this:

start() {
        ebegin "Starting ${CHROOT:+chrooted }named"
        checkconfig || return 1
        /usr/sbin/named -u named -n 1
        eend $?
}


Then I get this result:

ns BYoung # /etc/init.d/named start
 * Re-caching dependency info (mtimes differ)...
 * Starting named ...                            [ ok ]
ns BYoung #



1. Why does the original version of the init script not work?

2. What I can change so that it will work?

Please don't hesitate to ask for further information if there is
something I've left out that would be relevant or helpful.

Thanks for any Help
Bob Young

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Named problem, I'm beyond my depth and need a little help here
  2005-09-27  8:31     ` [gentoo-user] Named problem, I'm beyond my depth and need a little help here Bob Young
@ 2005-09-27  8:50       ` Ow Mun Heng
  0 siblings, 0 replies; 9+ messages in thread
From: Ow Mun Heng @ 2005-09-27  8:50 UTC (permalink / raw
  To: gentoo-user

On Tue, 2005-09-27 at 01:31 -0700, Bob Young wrote:
> Installed 2.6.11-hardnend-r15 to use as a secondary DNS server for the
> four domains I have. I can get named to start but it's by brute force,
> and I want to understand/fix the problem with it not starting via the
> default init script.
> 
> Here is what the start{} section of /etc/init.d/named looked like
> originally:
> 
> start() {
>         ebegin "Starting ${CHROOT:+chrooted }named"
>         checkconfig || return 1
>         start-stop-daemon --start --quiet --pidfile ${PIDFILE} --exec
> /usr/sbin/named -u named -n ${CPU} ${OPTIONS} ${CHROOT:+-t $CHROOT}
>         eend $?
> }
> 
> 
> With that init script, here is the result I get:
> 
> ns BYoung # /etc/init.d/named start
>  * Starting named ...
> usage: named [-c conffile] [-d debuglevel] [-f|-g] [-n number_of_cpus]
>              [-p port] [-s] [-t chrootdir] [-u username]
> named: extra command line arguments                [ !! ]
> ns BYoung #
> 
> 
> *******************************************************************

Try setting "set -x" somewhere at the start of the init script and look
at the verbose output.

I figure it's something to do with ${OPTIONS} ${CHROOT:+-t $CHROOT}
which I presume would be in /etc/conf.d/named(?)


-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] root (/) read-only?
  2005-09-27  7:54   ` Neil Bothwick
  2005-09-27  8:31     ` [gentoo-user] Named problem, I'm beyond my depth and need a little help here Bob Young
@ 2005-09-27 11:51     ` glumtail
  2005-09-27 12:00       ` James Hiscock
  1 sibling, 1 reply; 9+ messages in thread
From: glumtail @ 2005-09-27 11:51 UTC (permalink / raw
  To: gentoo-user

This happens offen in my system.

My root filesystem is reiserfs and /home is ext3, when i extract tar
packages it says it is a readonly filesystem.


On 9/27/05, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Tue, 27 Sep 2005 08:30:30 +0200, Dirk Heinrichs wrote:
>
> > > One thing I noticed is that I get an error message upon sstartup about
> > > not being able to find fsck.xfs upon startup for /dev/hda4 (my root
> > > partition).
> >
> > Install it, asap. But before, boot into a LiveCD and fsck.xfs /dev/hda4
> > from there.
>
> It wouldn't do much
>
> [nelz@hactar iso]$ whatis fsck.xfs
> fsck.xfs [fsck]      (8)  - do nothing, successfully
>
> You need to use xfscheck for this. emerge xfsprogs and check out your
> filesystem.
>
>
> --
> Neil Bothwick
>
> In possession of a mind not merely twisted, but actually sprained.
>
>
>

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] root (/) read-only?
  2005-09-27 11:51     ` [gentoo-user] root (/) read-only? glumtail
@ 2005-09-27 12:00       ` James Hiscock
  2005-09-27 12:24         ` Uwe Thiem
  0 siblings, 1 reply; 9+ messages in thread
From: James Hiscock @ 2005-09-27 12:00 UTC (permalink / raw
  To: gentoo-user

On 9/27/05, glumtail <glumtail@gmail.com> wrote:
> This happens offen in my system.
>
> My root filesystem is reiserfs and /home is ext3, when i extract tar
> packages it says it is a readonly filesystem.

Fix your /etc/fstab - it thinks your root partition is xfs, when it
isn't. You either: a) didn't change it during installation; or b)
overwrote it in a recent update.

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] root (/) read-only?
  2005-09-27 12:00       ` James Hiscock
@ 2005-09-27 12:24         ` Uwe Thiem
  2005-09-27 13:37           ` Jason Stubbs
  0 siblings, 1 reply; 9+ messages in thread
From: Uwe Thiem @ 2005-09-27 12:24 UTC (permalink / raw
  To: gentoo-user

On 27 September 2005 14:00, James Hiscock wrote:
> On 9/27/05, glumtail <glumtail@gmail.com> wrote:
> > This happens offen in my system.
> >
> > My root filesystem is reiserfs and /home is ext3, when i extract tar
> > packages it says it is a readonly filesystem.
>
> Fix your /etc/fstab - it thinks your root partition is xfs, when it
> isn't. You either: a) didn't change it during installation; or b)
> overwrote it in a recent update.

Since his root filesystem is read-only, he needs a bit more help I guess 
because he can't simply use his favourite editor to edit fstab. Well, he can 
but he can't write the changes to his harddisk. ;-)

You boot from a live cd (any actually). If it is a gentoo live cd you mount 
your root partition under /mnt/gentoo. If it is some other cd you have to 
find out where to mount. Now you cd to /mnt/gentoo/etc and edit fstab. Write 
it back and reboot the box without cd.

Uwe

-- 
95% of all programmers rate themselves among the top 5% of all software 
developers. - Linus Torvalds

http://www.uwix.iway.na (last updated: 20.06.2004)
-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] root (/) read-only?
  2005-09-27 12:24         ` Uwe Thiem
@ 2005-09-27 13:37           ` Jason Stubbs
  0 siblings, 0 replies; 9+ messages in thread
From: Jason Stubbs @ 2005-09-27 13:37 UTC (permalink / raw
  To: gentoo-user

On Tuesday 27 September 2005 21:24, Uwe Thiem wrote:
> On 27 September 2005 14:00, James Hiscock wrote:
> > On 9/27/05, glumtail <glumtail@gmail.com> wrote:
> > > This happens offen in my system.
> > >
> > > My root filesystem is reiserfs and /home is ext3, when i extract tar
> > > packages it says it is a readonly filesystem.
> >
> > Fix your /etc/fstab - it thinks your root partition is xfs, when it
> > isn't. You either: a) didn't change it during installation; or b)
> > overwrote it in a recent update.
>
> Since his root filesystem is read-only, he needs a bit more help I guess
> because he can't simply use his favourite editor to edit fstab. Well, he
> can but he can't write the changes to his harddisk. ;-)
>
> You boot from a live cd (any actually). If it is a gentoo live cd you mount
> your root partition under /mnt/gentoo. If it is some other cd you have to
> find out where to mount. Now you cd to /mnt/gentoo/etc and edit fstab.
> Write it back and reboot the box without cd.

Or from the running read-only system:

# mount -t reiserfs -o remount,rw /dev/xdx# /

The type and/or block device may not even be necessary.

--
Jason Stubbs
-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2005-09-27 13:42 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-27  4:58 [gentoo-user] root (/) read-only? dave waddelove
2005-09-27  6:30 ` Dirk Heinrichs
2005-09-27  7:54   ` Neil Bothwick
2005-09-27  8:31     ` [gentoo-user] Named problem, I'm beyond my depth and need a little help here Bob Young
2005-09-27  8:50       ` Ow Mun Heng
2005-09-27 11:51     ` [gentoo-user] root (/) read-only? glumtail
2005-09-27 12:00       ` James Hiscock
2005-09-27 12:24         ` Uwe Thiem
2005-09-27 13:37           ` Jason Stubbs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox