linux-config.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Re: mount: / mounted already or bad option
  2003-10-10 14:26 mount: / mounted already or bad option SMS WebMaster
@ 2003-10-10 12:50 ` Willy Tarreau
  2003-10-10 15:35   ` SMS WebMaster
  0 siblings, 1 reply; 4+ messages in thread
From: Willy Tarreau @ 2003-10-10 12:50 UTC (permalink / raw)
  To: SMS WebMaster; +Cc: list, linux-kernel, linux-config, linux-userfs

On Fri, Oct 10, 2003 at 05:26:02PM +0300, SMS WebMaster wrote:
>  Hi
> I have Gentoo linux in my PC
> I just installed the kernel 2.4.22 and compile it and install it (using 
> genkernel command)
> Right now if I reboot my PC with my new kernel I got :
> mount: / mounted already or bad option
> and the system stop and ask me to type the root password
> and when I login with the root and type
> mount -o remount,rw /
> 
> I got the same message
> mount: / mounted already or bad option
> 
> but if I write
> mount -o remount,rw /dev/hda4  /
> then the root filesystem if remounted as read/write

wouldn't your /etc/mtab be a link to /proc/self/mounts with /proc not mounted ?

Willy

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

* Re: mount: / mounted already or bad option
  2003-10-10 15:35   ` SMS WebMaster
@ 2003-10-10 13:15     ` Willy Tarreau
  0 siblings, 0 replies; 4+ messages in thread
From: Willy Tarreau @ 2003-10-10 13:15 UTC (permalink / raw)
  To: SMS WebMaster; +Cc: Willy Tarreau, linux-kernel, linux-config, linux-userfs

On Fri, Oct 10, 2003 at 06:35:37PM +0300, SMS WebMaster wrote:
> >>and when I login with the root and type
> >>mount -o remount,rw /
> >>
> >>I got the same message
> >>mount: / mounted already or bad option
> >>
> >>but if I write
> >>mount -o remount,rw /dev/hda4  /
> >>then the root filesystem if remounted as read/write
> >
> >
> >wouldn't your /etc/mtab be a link to /proc/self/mounts with /proc not 
> >mounted ?
> 
> 
> Sorry what do you mean ?

I meant that when you use the "incomplete" syntax with mount (ie: no device
specified), it relies on /etc/mtab to find the mount entry you want to change.
And it's somewhat common to have /etc/mtab be a symlink to /proc/self/mounts
when you don't want /etc to be written to, because the 'mounts' entry has
nearly the same format as 'mtab' (a few missing options). Now if it was the
case, and /proc was not mounted yet, /etc/mtab would point to nowhere and mount
would have no way to find what was mounted on '/', which could lead to some
errors like this.

> if I type mount I can see that proc is mounted (I can even see / is 
> mounted as read/write but its not realy mounted as read/write)

OK, so it doesn't come from this. Perhaps your /etc/mtab is simply broken by
some random mount option somewhere ? Also, do you use the "read-only" option
on the kernel command line ? And do your init scripts clear /etc/mtab at boot,
before the first mounts ?

Willy


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

* mount: / mounted already or bad option
@ 2003-10-10 14:26 SMS WebMaster
  2003-10-10 12:50 ` Willy Tarreau
  0 siblings, 1 reply; 4+ messages in thread
From: SMS WebMaster @ 2003-10-10 14:26 UTC (permalink / raw)
  To: list, linux-kernel, linux-config, linux-userfs

  Hi
I have Gentoo linux in my PC
I just installed the kernel 2.4.22 and compile it and install it (using 
genkernel command)
Right now if I reboot my PC with my new kernel I got :
mount: / mounted already or bad option
and the system stop and ask me to type the root password
and when I login with the root and type
mount -o remount,rw /

I got the same message
mount: / mounted already or bad option

but if I write
mount -o remount,rw /dev/hda4  /
then the root filesystem if remounted as read/write

Anyway the stupid thing is that if I boot with my old kernel I don't get 
this problem !!!
Any Help

My /etc/fstab :

/dev/hda2               /boot           ext2            noauto,noatime 
        1 1
/dev/hda4               /               reiserfs 
defaults,noatime,notail,iocharset=utf8          0 0
/dev/hda3               none            swap            sw 
        0 0
/dev/hda1       /mnt/win        ntfs 
auto,ro,umask=000,iocharset=utf0 0
/dev/cdroms/cdrom0      /mnt/cdrom      iso9660 
noauto,ro,umask=000,iocharset=utf8      0 0
/dev/fd0        /mnt/floppy     vfat 
noauto,defaults,umask=000,iocharset=utf8        0 0
none                    /proc           proc            defaults 
        0 0
none                    /dev/shm        tmpfs           defaults 
        0 0

My /etc/lilo.conf :
image = /boot/kernel-2.4.22
         root = /dev/hda4
         label = Gentoo
         initrd=/boot/initrd-2.4.22
         append="root=/dev/hda4 init=/linuxrc hdc=ide-scsi"

image = /boot/kernel-2.4.20-gentoo-r5
         root = /dev/hda4
         #root = /devices/discs/disc0/part3
         label = Old-Gentoo
         initrd=/boot/initrd-2.4.20-gentoo-r5
         #read-only # read-only for checking
         append="root=/dev/hda4 init=/linuxrc hdc=ide-scsi"
 


-- 
http://www.4-SMS.Com
http://eShop.4-SMS.Com
http://Mozilla.4-SMS.Com
-*- If Linux doesn't have the solution, you have the wrong problem -*-

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

* Re: mount: / mounted already or bad option
  2003-10-10 12:50 ` Willy Tarreau
@ 2003-10-10 15:35   ` SMS WebMaster
  2003-10-10 13:15     ` Willy Tarreau
  0 siblings, 1 reply; 4+ messages in thread
From: SMS WebMaster @ 2003-10-10 15:35 UTC (permalink / raw)
  To: Willy Tarreau, linux-kernel, linux-config, linux-userfs

Willy Tarreau wrote:
> On Fri, Oct 10, 2003 at 05:26:02PM +0300, SMS WebMaster wrote:
> 
>> Hi
>>I have Gentoo linux in my PC
>>I just installed the kernel 2.4.22 and compile it and install it (using 
>>genkernel command)
>>Right now if I reboot my PC with my new kernel I got :
>>mount: / mounted already or bad option
>>and the system stop and ask me to type the root password
>>and when I login with the root and type
>>mount -o remount,rw /
>>
>>I got the same message
>>mount: / mounted already or bad option
>>
>>but if I write
>>mount -o remount,rw /dev/hda4  /
>>then the root filesystem if remounted as read/write
> 
> 
> wouldn't your /etc/mtab be a link to /proc/self/mounts with /proc not mounted ?


Sorry what do you mean ?

if I type mount I can see that proc is mounted (I can even see / is 
mounted as read/write but its not realy mounted as read/write)


> 
> Willy
> 
> -
> To unsubscribe from this list: send the line "unsubscribe linux-userfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
> 
> 




-- 
http://www.4-SMS.Com
http://eShop.4-SMS.Com
http://Mozilla.4-SMS.Com
-*- If Linux doesn't have the solution, you have the wrong problem -*-

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

end of thread, other threads:[~2003-10-10 15:35 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-10 14:26 mount: / mounted already or bad option SMS WebMaster
2003-10-10 12:50 ` Willy Tarreau
2003-10-10 15:35   ` SMS WebMaster
2003-10-10 13:15     ` Willy Tarreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).