View previous topic :: View next topic |
Author |
Message |
slainer68 n00b
Joined: 17 Aug 2003 Posts: 61
|
Posted: Sat Feb 21, 2004 10:48 pm Post subject: Strange problem : my root partition is mounted twice at boot |
|
|
Very strange problem, i've just installed my gentoo with gentoo-sources and genkernel, etc... and I noticed that my root partition is mounted twice after the boot.
Thanks if you have any idea on this.
Here is my disc table :
cfdisk 2.12
Disk Drive: /dev/hda
Size: 82348277760 bytes, 82.3 GB
Heads: 255 Sectors per Track: 63 Cylinders: 10011
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
hda1 Boot Primary NTFS [^C] 31453.48
hda5 Logical NTFS [^B] 19979.21
hda6 Logical Linux ext2 32.91
hda7 Logical Linux swap 509.97
hda8 Logical Linux ext3 3997.49
hda9 Logical Linux ext3 5420.46
Here is my /etc/fstab that looks normal to me :
bash-2.05b# cat /etc/fstab
# /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/hda6 /boot ext2 noauto,noatime 1
1
/dev/hda8 / ext3 noatime 0
0
/dev/hda7 none swap sw 0
0
/dev/hda9 /home ext3 noatime 0
0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0
0
/dev/fd0 /mnt/floppy auto noauto 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
and when I do mount after startup :
bash-2.05b# mount
/dev/hda8 on / type ext3 (rw,noatime)
none on /tmp/.initrd/dev type devfs (rw)
/dev/hda8 on / type ext2 (rw,noatime)
none on /proc type proc (rw)
none on /dev type devfs (rw)
/dev/hda9 on /home type ext3 (rw,noatime)
none on /dev/shm type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw)
and eventually :
bash-2.05b# dmesg | grep root
Kernel command line: BOOT_IMAGE=gentoo ro root=100 init=/linuxrc real_root=/dev/hda8
ACPI Namespace successfully loaded at root c016643c
VFS: Mounted root (ext2 filesystem) readonly. |
|
Back to top |
|
|
kojiro Apprentice
Joined: 20 Nov 2003 Posts: 245 Location: Rochester
|
Posted: Sun Feb 22, 2004 12:45 am Post subject: Re: Strange problem : my root partition is mounted twice at |
|
|
slainer68 wrote: | Very strange problem, i've just installed my gentoo with gentoo-sources and genkernel, etc... and I noticed that my root partition is mounted twice after the boot.
Thanks if you have any idea on this.
Here is my disc table :
Code: | cfdisk 2.12
Disk Drive: /dev/hda
Size: 82348277760 bytes, 82.3 GB
Heads: 255 Sectors per Track: 63 Cylinders: 10011
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
hda1 Boot Primary NTFS [^C] 31453.48
hda5 Logical NTFS [^B] 19979.21
hda6 Logical Linux ext2 32.91
hda7 Logical Linux swap 509.97
hda8 Logical Linux ext3 3997.49
hda9 Logical Linux ext3 5420.46 |
Here is my /etc/fstab that looks normal to me :
Code: | # /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/hda6 /boot ext2 noauto,noatime 1 1
/dev/hda8 / ext3 noatime 0 0
/dev/hda7 none swap sw 0 0
/dev/hda9 /home ext3 noatime 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 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 |
and when I do mount after startup :
Code: | bash-2.05b# mount
/dev/hda8 on / type ext3 (rw,noatime)
none on /tmp/.initrd/dev type devfs (rw)
/dev/hda8 on / type ext2 (rw,noatime)
none on /proc type proc (rw)
none on /dev type devfs (rw)
/dev/hda9 on /home type ext3 (rw,noatime)
none on /dev/shm type tmpfs (rw)
none on /proc/bus/usb type usbfs (rw) |
and eventually :
Code: | bash-2.05b# dmesg | grep root
Kernel command line: BOOT_IMAGE=gentoo ro root=100 init=/linuxrc real_root=/dev/hda8
ACPI Namespace successfully loaded at root c016643c
VFS: Mounted root (ext2 filesystem) readonly. |
|
Please, when you're posting this stuff, use the "code" tool to make it readable...
Now, can you please post your /boot/grub/grub.conf file, too? Or your lilo configuration file, whichever you're using... _________________ >>> Also, customizing emacs can be an exercise in black magic.
>> It's not black magic, it's Lisp.
>There is a difference?
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list |
|
Back to top |
|
|
slainer68 n00b
Joined: 17 Aug 2003 Posts: 61
|
Posted: Sun Feb 22, 2004 5:28 pm Post subject: |
|
|
hum...
finally, i just compiled a new kernel (kernel 2.6.3) by hand instead of using genkernel and this problem disappeared by magic... |
|
Back to top |
|
|
BWoso l33t
Joined: 31 Dec 2003 Posts: 920 Location: Cleveland Ohio, USA
|
Posted: Sun Feb 22, 2004 5:56 pm Post subject: |
|
|
that's good. I have never used genkernel. It is always better to just do it manualy. That way you learn a lot and know exactly what is in your kernel _________________ I think that the forums are the greatest thing about Gentoo, thanks to everyone that posts on them!
The best way to cheer yourself up is to try to cheer somebody else up.
-Mark Twain- |
|
Back to top |
|
|
jcosters Tux's lil' helper
Joined: 26 Feb 2003 Posts: 104 Location: Gent, Belgium
|
Posted: Mon Feb 23, 2004 3:00 pm Post subject: |
|
|
I have the same problem
Code: | calisto root # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda3 111G 1.5G 110G 2% /
/dev/hda3 111G 1.5G 110G 2% /
none 252M 0 252M 0% /dev/shm
/dev/hda1 92M 6.1M 81M 8% /boot
|
where /dev/hda3 was mounted at boot and I mounted /dev/hda1 manually afterwards.
my fstab
Code: | /dev/hda1 /boot ext3 noauto,noatime 1 2
/dev/hda3 / reiserfs noatime 0 1
/dev/hda2 none swap sw 0 0 |
my grub.conf
Code: |
default 0
timeout 20
splashimage=(hd0,0)/grub/splash.xpm.gz
title=Gentoo Linux
root (hd0,0)
kernel (hd0,0)/kernel-2.4.25_pre7-gss-r2 root=/dev/ram0 init=/linuxrc real_root=/dev/hda3 vga=0x317 splash=verbose
initrd (hd0,0)/initrd-2.4.25_pre7-gss-r2
|
|
|
Back to top |
|
|
jcosters Tux's lil' helper
Joined: 26 Feb 2003 Posts: 104 Location: Gent, Belgium
|
Posted: Fri Mar 26, 2004 9:00 am Post subject: |
|
|
Indeed, no problem when compiling it manually |
|
Back to top |
|
|
kallamej Administrator
Joined: 27 Jun 2003 Posts: 4975 Location: Gothenburg, Sweden
|
Posted: Fri Mar 26, 2004 10:59 am Post subject: |
|
|
Here's the relevant bug report in case anyone wants to dig in deeper. _________________ Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.libera.chat |
|
Back to top |
|
|
pjp Administrator
Joined: 16 Apr 2002 Posts: 20067
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|