Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Strange problem : my root partition is mounted twice at boot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
slainer68
n00b
n00b


Joined: 17 Aug 2003
Posts: 61

PostPosted: Sat Feb 21, 2004 10:48 pm    Post subject: Strange problem : my root partition is mounted twice at boot Reply with quote

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
View user's profile Send private message
kojiro
Apprentice
Apprentice


Joined: 20 Nov 2003
Posts: 245
Location: Rochester

PostPosted: Sun Feb 22, 2004 12:45 am    Post subject: Re: Strange problem : my root partition is mounted twice at Reply with quote

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? :P
Yes, black magic doesn't use parentheses.
--Linux Users' Group of Rochester mailing list
Back to top
View user's profile Send private message
slainer68
n00b
n00b


Joined: 17 Aug 2003
Posts: 61

PostPosted: Sun Feb 22, 2004 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
BWoso
l33t
l33t


Joined: 31 Dec 2003
Posts: 920
Location: Cleveland Ohio, USA

PostPosted: Sun Feb 22, 2004 5:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
jcosters
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2003
Posts: 104
Location: Gent, Belgium

PostPosted: Mon Feb 23, 2004 3:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
jcosters
Tux's lil' helper
Tux's lil' helper


Joined: 26 Feb 2003
Posts: 104
Location: Gent, Belgium

PostPosted: Fri Mar 26, 2004 9:00 am    Post subject: Reply with quote

Indeed, no problem when compiling it manually
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4975
Location: Gothenburg, Sweden

PostPosted: Fri Mar 26, 2004 10:59 am    Post subject: Reply with quote

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
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Fri Mar 26, 2004 3:43 pm    Post subject: Reply with quote

https://forums.gentoo.org/viewtopic.php?t=144574
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
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