View previous topic :: View next topic |
Author |
Message |
MadEgg l33t
Joined: 06 Jun 2002 Posts: 678 Location: Netherlands
|
Posted: Wed Apr 06, 2005 11:39 am Post subject: /boot getting mounted even though fstab says not to |
|
|
Somehow my /boot partition(/dev/hda2) always gets mounted even though my /etc/fstab file says not to mount it automatically... This is only happening recently, a few weeks ago it would stay unmounted after boot. I haven't changed fstab myself since so I don't know what's causing this. What can I do to stop this from happening?
My /etc/fstab file:
Code: |
# This file is edited by fstab-sync - see 'man fstab-sync' for details
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda2 /boot ext3 noauto,noatime 1 2
/dev/hda5 / ext3 noatime 0 1
/dev/hda6 /home ext3 noatime 0 2
/dev/hdb2 none swap sw 0 0
/dev/hdc /mnt/dvdrw iso9660 noauto,ro,user,sync 0 0
/dev/hdd /mnt/dvd iso9660 noauto,ro,user,sync 0 0
/dev/hdb1 /share vfat auto,umask=0000 0 2
/dev/fd0 /mnt/floppy auto noauto,user,sync 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
|
_________________ Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755 |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6065 Location: Removed by Neddy
|
Posted: Wed Apr 06, 2005 12:09 pm Post subject: |
|
|
I have had this starting as well?
What has caused this _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
MadEgg l33t
Joined: 06 Jun 2002 Posts: 678 Location: Netherlands
|
Posted: Thu Apr 07, 2005 8:16 am Post subject: |
|
|
*bump* _________________ Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755 |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Thu Apr 07, 2005 9:22 am Post subject: |
|
|
I agree that your fstab is not causing this problem. It is going to be hard for people here to help you fix this if you don't give us a few more clues.
For example, since you suspected your fstab does this mean /boot is getting mounted at boot-time when the system starts up? Or does /boot get mounted automatically at other times? |
|
Back to top |
|
|
MadEgg l33t
Joined: 06 Jun 2002 Posts: 678 Location: Netherlands
|
Posted: Thu Apr 07, 2005 9:31 am Post subject: |
|
|
No, it's after systemboot. When I power on my machine and I enter the console, /boot is mounted.
It also says something about mtab and a read-only filesystem while executing /sbin/depscan.sh during boot, sometimes, but not all the time. Sometimes, by that, it doesn't boot up at all but requires me to enter the root password to enter an emergency console, even when the system was shut down cleanly.
The only thing I can recall since was upgrade hald, dbus and ivman, but I can't imagine them having anything to do with it since ivman is for mounting CD-drives as far as I know, not for mounting disk partitions set as 'noauto'... _________________ Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755 |
|
Back to top |
|
|
MaxDamage l33t
Joined: 03 Jan 2004 Posts: 650 Location: Oviedo, Spain
|
Posted: Thu Apr 07, 2005 10:55 am Post subject: |
|
|
Hal/Dbus mount automatically your CDs and usb sticks... and your partitions too! I also have the noauto option in fstab but he mounts them automatically when I log on Gnome.
The fix is to make them mountable only for root. The drawback, you cannot mount them as normal user from nautilus anymore.
If somebody knows a better fix, I'm really interested. _________________ La PDA de tungsteno |
|
Back to top |
|
|
Naib Watchman
Joined: 21 May 2004 Posts: 6065 Location: Removed by Neddy
|
Posted: Thu Apr 07, 2005 11:45 am Post subject: |
|
|
MaxDamage wrote: | Hal/Dbus mount automatically your CDs and usb sticks... and your partitions too! I also have the noauto option in fstab but he mounts them automatically when I log on Gnome.
The fix is to make them mountable only for root. The drawback, you cannot mount them as normal user from nautilus anymore.
If somebody knows a better fix, I'm really interested. |
not bad, didn't think of that. Is there any reason to go into /boot as a normal user? I only go in ther when I have changed a kernel or want to edit GRUB something a normal user shouldn't do.
Is there anywhere in IVMAN (i use that) or Gnome-Volume-Manager to specigy what it should or should not automount? be it via a FSTAB flag or cfg file? _________________
Quote: | Removed by Chiitoo |
|
|
Back to top |
|
|
MadEgg l33t
Joined: 06 Jun 2002 Posts: 678 Location: Netherlands
|
Posted: Thu Apr 07, 2005 11:34 pm Post subject: |
|
|
Ah, finally. That explains it.(at least /boot getting mounted). I still get read-only filesystem errors but /boot is not being mounted anymore because of adding the following line to /etc/ivman/IvmConfigActions.xml:
Code: |
<ivm:Match name="hal.block.device" value="/dev/hda2">
<ivm:Option name="mount" value="false" />
</ivm:Match>
|
Now to find a solution for the other prob _________________ Pentium 4 Prescott 3,2 GHz
Asus P4P800 SE, i865PE chipset
1024 MB PC3200 RAM
AOpen Aeolus GeForce 6800 Ultra 256 MB DDR2
Creative Audigy2 ZS
gentoo-sources-2.6.20-r7
nVidia-drivers version 9755 |
|
Back to top |
|
|
don quixada l33t
Joined: 15 May 2003 Posts: 810
|
Posted: Fri Apr 22, 2005 3:13 am Post subject: |
|
|
I had this problem with /boot being automounted and I looked in /etc/mtab and it was there but the `noauto' flag wasn't there. I add that flag and at next boot it didn't mount automatically. I think removing the /boot line from /etc/mtab should also do it (now I look at /etc/mtab and /boot is not there at all).
dq |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Fri Apr 22, 2005 1:19 pm Post subject: |
|
|
MadEgg wrote: | Ah, finally. That explains it.(at least /boot getting mounted). I still get read-only filesystem errors but /boot is not being mounted anymore because of adding the following line to /etc/ivman/IvmConfigActions.xml:
Code: |
<ivm:Match name="hal.block.device" value="/dev/hda2">
<ivm:Option name="mount" value="false" />
</ivm:Match>
|
Now to find a solution for the other prob | this didn't work for me. And I too have no /boot line in /etc/mtab. /boot still gets automagically mounted. _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
don quixada l33t
Joined: 15 May 2003 Posts: 810
|
Posted: Sat Apr 23, 2005 3:53 am Post subject: |
|
|
Are you sure it's mounted then? You can mount to a directory that has stuff in it. The last time I installed gentoo I forgot to mount two of my partitions (/usr and /opt) so when I rebooted (and mounted via fstab) there was absolutely nothing in /usr or /opt and I couldn't really get the system up. Of course, all I did was mount both the root partition (/) and my /usr partition and tranfer the files from the root /usr to my partiton /usr and everything was good.
Anyway, a similar thing may have happened to you...
Try mounting /boot and see what you get.
dq |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Sat Apr 23, 2005 11:04 am Post subject: |
|
|
This is after a fresh reboot this morning Code: | # mount /boot/
mount: /dev/hda2 already mounted or /boot busy
mount: according to mtab, /dev/hda2 is already mounted on /boot | so it gets automatically mounted at startup for some reason. Here is my fstab Code: | /dev/hda1 /mnt/win ntfs noatime,users,ro,umask=022 0 0
/dev/hda2 /boot ext2 noauto,noatime 1 2
/dev/hda3 none swap sw 0 0
/dev/hda4 / reiserfs noatime 0 1
/dev/fd0 /mnt/floppy auto noauto,users 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdd /media/cdrw auto noauto,users,exec,ro 0 0
/dev/hdc /media/dvdrom auto noauto,users,exec,ro 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc defaults 0 0
|
_________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
don quixada l33t
Joined: 15 May 2003 Posts: 810
|
Posted: Sat Apr 23, 2005 3:32 pm Post subject: |
|
|
Don't know if this really matters but try moving the first line (the one with /dev/hda1) down somewhere else in your ftab file. I also noticed that all your partitions are primary-- I don't know if that's a bad thing or not, but you may want to consider having at least another partition for /tmp (it's more secure)... anyway just a suggestion.
Also, you might want to grep your system for the command `mount /boot' or `mount /dev/hda2 /boot'. Check in /etc/conf.d/local.start.
good luck!
dq |
|
Back to top |
|
|
G2k l33t
Joined: 06 Mar 2004 Posts: 672 Location: Rome, Italy
|
Posted: Sat Apr 23, 2005 5:07 pm Post subject: |
|
|
The Gentoo Handbook suggests making all partitions primary and that's what I've done, don't know why you would have done otherwise.
Also, moving the lines around will not change the reason why /boot is automatically being mounted, it is happening regardless of the order.
It doesn't really bother me that it's being mounted since it doesn't really change much for me anyways, but I would just like to understand why it's giving me this weird behavior.
Thnx for the suggestions _________________ Animula vagula blandula,
Hospes comesque corporis,
Quae nunc abibis in loca
Pallidula rigida nudula,
Nec ut soles dabis iocos...
- Imp. Caesar Hadrianus |
|
Back to top |
|
|
Pseud Apprentice
Joined: 19 Mar 2004 Posts: 273 Location: Bangalore, India
|
|
Back to top |
|
|
|