public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] mount: unknown filesystem type 'ext2'
@ 2005-12-28 17:15 Grant
  2005-12-28 17:34 ` [gentoo-user] " Peter
  0 siblings, 1 reply; 12+ messages in thread
From: Grant @ 2005-12-28 17:15 UTC (permalink / raw
  To: Gentoo mailing list

Hello, I'm trying to upgrade my server to the latest hardened-sources
kernel.  I'm trying to mount my /dev/hda1 partition to /boot but I'm
getting the error:

mount: unknown filesystem type 'ext2'

It's true that I don't have ext2 support compiled into my kernel, but
I never have.  My /etc/fstab looks like this:

/dev/hda1     /boot     ext3     noauto,noatime     1 2

Does anyone know what's going on here?

- Grant

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] mount: unknown filesystem type 'ext2'
  2005-12-28 17:21 brunogola
@ 2005-12-28 17:32 ` Grant
  0 siblings, 0 replies; 12+ messages in thread
From: Grant @ 2005-12-28 17:32 UTC (permalink / raw
  To: gentoo-user

> Did you already tried to pass to mount the arguments ? Like mount -t ext3 /dev/hda1 /boot ! Try this, about the
> fstab, it's right, but to know what is wrong with your systems i probably need more information. Maybe someone
> in this list had this problem once and know the solution.
>
> Good luck!

Thank you, manually specifying the filesystem type did work.  How does
mount know which fs type to try when it isn't specified?  I haven't
had this problem before and I never specify the type.

- Grant

-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: mount: unknown filesystem type 'ext2'
  2005-12-28 17:15 [gentoo-user] mount: unknown filesystem type 'ext2' Grant
@ 2005-12-28 17:34 ` Peter
  2005-12-28 23:48   ` Grant
  0 siblings, 1 reply; 12+ messages in thread
From: Peter @ 2005-12-28 17:34 UTC (permalink / raw
  To: gentoo-user

On Wed, 28 Dec 2005 09:15:14 -0800, Grant wrote:

> Hello, I'm trying to upgrade my server to the latest hardened-sources
> kernel.  I'm trying to mount my /dev/hda1 partition to /boot but I'm
> getting the error:
> 
> mount: unknown filesystem type 'ext2'
> 
> It's true that I don't have ext2 support compiled into my kernel, but I
> never have.  My /etc/fstab looks like this:
> 
> /dev/hda1     /boot     ext3     noauto,noatime     1 2
> 
should it be ext2 above?

> Does anyone know what's going on here?
> 
do you have an initrd loading? Without some kernel support, it can't load
at all? Check your lilo or grub configuration and make sure you have some
kind of initrd with ext2 loading.

> - Grant

Probably something really dumb! Inasmuch as it _had_ been working!

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] mount: unknown filesystem type 'ext2'
@ 2005-12-28 18:41 brunogola
  0 siblings, 0 replies; 12+ messages in thread
From: brunogola @ 2005-12-28 18:41 UTC (permalink / raw
  To: gentoo-user

Man, i really dont know how mount know wich type is... i know that it normally asks for a fs type when it cant
recognize the fs type. Are you sure that fstab points /dev/hda1 to /boot using ext3 ? Can you paste your fstab
here? Maybe some conflict?



---------- Cabeçalho original -----------

De: "Grant" emailgrant@gmail.com
Para: gentoo-user@lists.gentoo.org
Cópia: 
Data: Wed, 28 Dec 2005 09:32:59 -0800
Assunto: Re: [gentoo-user] mount: unknown filesystem type 'ext2'

> > Did you already tried to pass to mount the arguments ? Like mount -t ext3 /dev/hda1 /boot ! Try this, about the
> > fstab, it's right, but to know what is wrong with your systems i probably need more information. Maybe someone
> > in this list had this problem once and know the solution.
> >
> > Good luck!
> 
> Thank you, manually specifying the filesystem type did work.  How does
> mount know which fs type to try when it isn't specified?  I haven't
> had this problem before and I never specify the type.
> 
> - Grant
> 
> -- 
> gentoo-user@gentoo.org mailing list
> 
> 


-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: mount: unknown filesystem type 'ext2'
  2005-12-28 17:34 ` [gentoo-user] " Peter
@ 2005-12-28 23:48   ` Grant
  2005-12-29 12:31     ` [gentoo-user] " Peter
  0 siblings, 1 reply; 12+ messages in thread
From: Grant @ 2005-12-28 23:48 UTC (permalink / raw
  To: gentoo-user

> > Hello, I'm trying to upgrade my server to the latest hardened-sources
> > kernel.  I'm trying to mount my /dev/hda1 partition to /boot but I'm
> > getting the error:
> >
> > mount: unknown filesystem type 'ext2'
> >
> > It's true that I don't have ext2 support compiled into my kernel, but I
> > never have.  My /etc/fstab looks like this:
> >
> > /dev/hda1     /boot     ext3     noauto,noatime     1 2
> >
> should it be ext2 above?

The filesystem is ext3 as notated in fstab.

> > Does anyone know what's going on here?
> >
> do you have an initrd loading? Without some kernel support, it can't load
> at all? Check your lilo or grub configuration and make sure you have some
> kind of initrd with ext2 loading.

I don't think I have anything like that going.  Here's my grub.conf:

---
timeout 2
default 0
fallback 1

title Gentoo Linux 2.6.14-hardened-r2
root (hd0,0)
kernel /kernel-2.6.14-hardened-r2 root=/dev/hda3 video=vesafb,mtrr vga=0x318

title Gentoo Linux 2.6.14-hardened-r1 (Fallback)
root (hd0,0)
kernel /kernel-2.6.14-hardened-r1_fallback root=/dev/hda3
video=vesafb,mtrr vga=0x318
---

Maybe this is a bug in one of the packages I've updated recently?

- Grant

-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: Re: mount: unknown filesystem type 'ext2'
  2005-12-28 23:48   ` Grant
@ 2005-12-29 12:31     ` Peter
  2005-12-29 17:37       ` Grant
  2005-12-29 19:40       ` [gentoo-user] " Richard Fish
  0 siblings, 2 replies; 12+ messages in thread
From: Peter @ 2005-12-29 12:31 UTC (permalink / raw
  To: gentoo-user

On Wed, 28 Dec 2005 15:48:05 -0800, Grant wrote:

>> > Hello, I'm trying to upgrade my server to the latest hardened-sources
>> > kernel.  I'm trying to mount my /dev/hda1 partition to /boot but I'm
>> > getting the error:
>> >
>> > mount: unknown filesystem type 'ext2'
>> >
>> > It's true that I don't have ext2 support compiled into my kernel, but
>> > I never have.  My /etc/fstab looks like this:
>> >
>> > /dev/hda1     /boot     ext3     noauto,noatime     1 2
>> >
>> should it be ext2 above?
> 
> The filesystem is ext3 as notated in fstab.

Sorry, you wrote ext2 right above it. 

Typically, boot is ext2, and ext2 has to be in the kernel at
this stage. If you want ext3, you should compile in ext3 support into the
kernel. (boot will load either way since ext3 is really ext2 with a
journal).

> 
>> > Does anyone know what's going on here?
>> >
>> do you have an initrd loading? Without some kernel support, it can't
>> load at all? Check your lilo or grub configuration and make sure you
>> have some kind of initrd with ext2 loading.
> 
> I don't think I have anything like that going.  Here's my grub.conf:
> 
> ---
> timeout 2
> default 0
> fallback 1
> 
> title Gentoo Linux 2.6.14-hardened-r2 root (hd0,0) kernel
> /kernel-2.6.14-hardened-r2 root=/dev/hda3 video=vesafb,mtrr vga=0x318
> 
> title Gentoo Linux 2.6.14-hardened-r1 (Fallback) root (hd0,0) kernel
> /kernel-2.6.14-hardened-r1_fallback root=/dev/hda3 video=vesafb,mtrr
> vga=0x318
> ---
> 
> Maybe this is a bug in one of the packages I've updated recently?
> 
> - Grant

Since no initrd is loading, you have to have the filesystems compiled in
the kernel for boot to load. JM2C. Or, load an initrd. The way you have it
now cannot boot.

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: Re: mount: unknown filesystem type 'ext2'
  2005-12-29 12:31     ` [gentoo-user] " Peter
@ 2005-12-29 17:37       ` Grant
  2005-12-29 18:08         ` [gentoo-user] " Peter
  2005-12-29 19:40       ` [gentoo-user] " Richard Fish
  1 sibling, 1 reply; 12+ messages in thread
From: Grant @ 2005-12-29 17:37 UTC (permalink / raw
  To: gentoo-user

> >> > Hello, I'm trying to upgrade my server to the latest hardened-sources
> >> > kernel.  I'm trying to mount my /dev/hda1 partition to /boot but I'm
> >> > getting the error:
> >> >
> >> > mount: unknown filesystem type 'ext2'
> >> >
> >> > It's true that I don't have ext2 support compiled into my kernel, but
> >> > I never have.  My /etc/fstab looks like this:
> >> >
> >> > /dev/hda1     /boot     ext3     noauto,noatime     1 2
> >> >
> >> should it be ext2 above?
> >
> > The filesystem is ext3 as notated in fstab.
>
> Sorry, you wrote ext2 right above it.
>
> Typically, boot is ext2, and ext2 has to be in the kernel at
> this stage. If you want ext3, you should compile in ext3 support into the
> kernel. (boot will load either way since ext3 is really ext2 with a
> journal).

I don't think I'm explaining this properly.  I have ext3 support in my
kernel, but not ext2.  Both my root and boot partitions are ext3.  All
of a sudden I'm getting this:

# mount /dev/hda1 /boot
mount: unknown filesystem type 'ext2'

but also this:

# mount -t ext3 /dev/hda1 /boot
#

Why does mount use ext2 by default?  This hasn't happened before.  I
have no special grub configuration and fstab specifies ext3 for boot.

Is this the kind of issue that comes and goes on a Gentoo system and
isn't worth looking into?

- Grant

-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: Re: Re: mount: unknown filesystem type 'ext2'
  2005-12-29 17:37       ` Grant
@ 2005-12-29 18:08         ` Peter
  2005-12-29 19:05           ` Grant
  0 siblings, 1 reply; 12+ messages in thread
From: Peter @ 2005-12-29 18:08 UTC (permalink / raw
  To: gentoo-user

On Thu, 29 Dec 2005 09:37:49 -0800, Grant wrote:

> 
> # mount /dev/hda1 /boot
> mount: unknown filesystem type 'ext2'
> 

OK. I see now. By specifying the device and mount point, you bypass fstab.
Default will be what mount THINKS it is, which is like doing mount -t auto...

If you just did mount /boot it would be fine.

> but also this:
> 
> # mount -t ext3 /dev/hda1 /boot
> #
> 

What's the error here? Again, mount /boot should work.

> Why does mount use ext2 by default?  This hasn't happened before.  I
> have no special grub configuration and fstab specifies ext3 for boot.
> 

See above. fstab is not used when you use both a device and mount point.

> Is this the kind of issue that comes and goes on a Gentoo system and
> isn't worth looking into?
> 
> - Grant

Stupid things do break when layouts, etc. change. Unfortunate.

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: Re: Re: mount: unknown filesystem type 'ext2'
  2005-12-29 18:08         ` [gentoo-user] " Peter
@ 2005-12-29 19:05           ` Grant
  2005-12-29 19:46             ` [gentoo-user] " Peter
  2005-12-29 19:47             ` [gentoo-user] " Richard Fish
  0 siblings, 2 replies; 12+ messages in thread
From: Grant @ 2005-12-29 19:05 UTC (permalink / raw
  To: gentoo-user

> > # mount /dev/hda1 /boot
> > mount: unknown filesystem type 'ext2'
> >
>
> OK. I see now. By specifying the device and mount point, you bypass fstab.
> Default will be what mount THINKS it is, which is like doing mount -t auto...
>
> If you just did mount /boot it would be fine.

OK, so mount only refers to fstab for fs info if the device isn't
specified.  What is the logic behind that?  If that behavior was
recently implemented, it would explain why I'm only now getting the
error.  I've always mounted as above.

- Grant

-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: Re: mount: unknown filesystem type 'ext2'
  2005-12-29 12:31     ` [gentoo-user] " Peter
  2005-12-29 17:37       ` Grant
@ 2005-12-29 19:40       ` Richard Fish
  1 sibling, 0 replies; 12+ messages in thread
From: Richard Fish @ 2005-12-29 19:40 UTC (permalink / raw
  To: gentoo-user

On 12/29/05, Peter <pete4abw@comcast.net> wrote:
> and ext2 has to be in the kernel at
> this stage.

Why?  /boot has no files required for the system to boot after the
kernel and initramfs (if any) have been loaded into memory, and that
is grub's/lilo's job.  The kernel/initramfs only needs the driver for
the root fs.

-Richard

-- 
gentoo-user@gentoo.org mailing list



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

* [gentoo-user]  Re: Re: Re: Re: mount: unknown filesystem type 'ext2'
  2005-12-29 19:05           ` Grant
@ 2005-12-29 19:46             ` Peter
  2005-12-29 19:47             ` [gentoo-user] " Richard Fish
  1 sibling, 0 replies; 12+ messages in thread
From: Peter @ 2005-12-29 19:46 UTC (permalink / raw
  To: gentoo-user

On Thu, 29 Dec 2005 11:05:00 -0800, Grant wrote:

>> > # mount /dev/hda1 /boot
>> > mount: unknown filesystem type 'ext2'
>> >
>> >
>> OK. I see now. By specifying the device and mount point, you bypass
>> fstab. Default will be what mount THINKS it is, which is like doing
>> mount -t auto...
>>
>> If you just did mount /boot it would be fine.
> 
> OK, so mount only refers to fstab for fs info if the device isn't
> specified.  What is the logic behind that?  If that behavior was recently
> implemented, it would explain why I'm only now getting the error.  I've
> always mounted as above.
> 
> - Grant

Grant, this behavior has always been there AFAIK. If a mount point is
listed in fstab you can either mount it using the mount point or device
name. Using both eliminates fstab being used. This is nothing new, and
this is not a gentoo thing. check up on fileutils, maybe there is something 
in the changelog.

It's also possible that the hardened system has become stricter which is
always true!

Good luck


-- 
gentoo-user@gentoo.org mailing list



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

* Re: [gentoo-user] Re: Re: Re: mount: unknown filesystem type 'ext2'
  2005-12-29 19:05           ` Grant
  2005-12-29 19:46             ` [gentoo-user] " Peter
@ 2005-12-29 19:47             ` Richard Fish
  1 sibling, 0 replies; 12+ messages in thread
From: Richard Fish @ 2005-12-29 19:47 UTC (permalink / raw
  To: gentoo-user

On 12/29/05, Grant <emailgrant@gmail.com> wrote:
> OK, so mount only refers to fstab for fs info if the device isn't
> specified.  What is the logic behind that?  If that behavior was
> recently implemented, it would explain why I'm only now getting the
> error.  I've always mounted as above.

>From the mount man page, I think /etc/filesystems has an effect here.

Try adding "ext3" above the "*" on the last line:


# Try ext3 before all others
ext3
# Keep the last '*' intact as it directs mount to use the
# filesystems list available at /proc/filesystems also.
# Don't remove it unless you REALLY knows what you are doing!
*

-Richard


>
> - Grant
>
> --
> gentoo-user@gentoo.org mailing list
>
>

-- 
gentoo-user@gentoo.org mailing list



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

end of thread, other threads:[~2005-12-29 20:16 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-28 17:15 [gentoo-user] mount: unknown filesystem type 'ext2' Grant
2005-12-28 17:34 ` [gentoo-user] " Peter
2005-12-28 23:48   ` Grant
2005-12-29 12:31     ` [gentoo-user] " Peter
2005-12-29 17:37       ` Grant
2005-12-29 18:08         ` [gentoo-user] " Peter
2005-12-29 19:05           ` Grant
2005-12-29 19:46             ` [gentoo-user] " Peter
2005-12-29 19:47             ` [gentoo-user] " Richard Fish
2005-12-29 19:40       ` [gentoo-user] " Richard Fish
  -- strict thread matches above, loose matches on Subject: below --
2005-12-28 17:21 brunogola
2005-12-28 17:32 ` [gentoo-user] " Grant
2005-12-28 18:41 brunogola

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox