Kernel Question
der.hans
plug-discuss@lists.plug.phoenix.az.us
Sun, 26 May 2002 15:17:29 -0700 (MST)
Am 26. May, 2002 schwätzte George Toft so:
> I need some help from you kernel warriors.
>
> I just changed my root filesystem from reiserfs to ext3
> (tar -c, mke2cf, tar -x), rebooted, and it worked fine.
> I expected problems. I know, why look a gift horse in
> the mouth?
>
> Here's the weird part - /etc/fstab still showed my root filesystem
> is reiserfs:
> /dev/hdc3 / reiserfs defaults 1 1
>
> and running mount verified it was mounted as reiserfs.
>
> I changed /etc/fstab:
> /dev/hdc3 / ext3 defaults 1 1
>
> rebooted, went through a long fsck (no errors), and now it it mounted
> as ext3, verified by mount.
>
> How does the kernel know which filesystem to use when looking for
> /etc/modules.conf and /etc/fstab?
mount reads from /etc/mtab. It should read from /proc because it gives
incorrect info when /etc is read-only.
Not sure why everything was still working. I wonder if it auto-detected the
ext3 filesystem.
ciao,
der.hans
--
# https://www.LuftHans.com/
# Schließlich verteidigt Amerika Freiheit. Und Freiheit beginnt mit dem Wort.
# -- Gunter Grass