Listee's...
I have a 5.5 box and I have formatted a partition as ext4 however I can't mount it, the mount command is telling me its an unknown file system type. fsck tells me the partition is a clean ext4 partition but I can't mount it.
Some reasearch has lead me to believe the problem is that ext4 isn't enabled in the kernel by default in 5.5 (this was originally a 5.2 box that has been upgraded over time, its now on 2.6.18).
I'm struggling to find some idiots steps to either get the kernel rebuilt or use the CentOSPlus repo's to get the ext4 module for the kernel etc....Can anyone point me at an idiots guide to make this work?
On Sat, 7 Aug 2010 16:50:18 +0100 James Bensley jwbensley@gmail.com wrote:
Listee's...
I have a 5.5 box and I have formatted a partition as ext4 however I can't mount it, the mount command is telling me its an unknown file system type. fsck tells me the partition is a clean ext4 partition but I can't mount it.
Use mount -t ext4dev. See http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5.5/html-single/Te... Regards, Laurent
On 7 August 2010 16:57, Laurent Wandrebeck l.wandrebeck@gmail.com wrote:
Use mount -t ext4dev.
Sorry, I forgot to mention; I have reformatted the drive as ext4dev and it still wont mount, unknown file system type again! I verified it was OK with fsck and it says it is a clean ext4dev partition?
On 08/07/2010 06:10 PM, James Bensley wrote:
On 7 August 2010 16:57, Laurent Wandrebeckl.wandrebeck@gmail.com wrote:
Use mount -t ext4dev.
Sorry, I forgot to mention; I have reformatted the drive as ext4dev and it still wont mount, unknown file system type again! I verified it was OK with fsck and it says it is a clean ext4dev partition?
Did you first "modprobe ext4dev" before trying to mount it ?
-- (°- Bernard Lheureux Gestionnaire des MailingLists ML, TechML, LinuxML //\ http://www.bbsoft4.org/Mailinglists.htm ** MailTo:root@bbsoft4.org v_/_ http://www.bbsoft4.org/<<<<<< *>>>>>> http://www.portalinux.org/
On 7 August 2010 17:27, Bernard Lheureux bernard.lheureux@bbsoft4.org wrote:
Did you first "modprobe ext4dev" before trying to mount it ?
[nf5002@eros ~]$ modprobe ext4 FATAL: Module ext4 not found. [nf5002@eros ~]$ modprobe ext4dev FATAL: Module ext4dev not found.
At Sat, 7 Aug 2010 18:48:05 +0100 CentOS mailing list centos@centos.org wrote:
On 7 August 2010 17:27, Bernard Lheureux bernard.lheureux@bbsoft4.org wrote:
Did you first "modprobe ext4dev" before trying to mount it ?
[nf5002@eros ~]$ modprobe ext4 FATAL: Module ext4 not found. [nf5002@eros ~]$ modprobe ext4dev FATAL: Module ext4dev not found.
What kernel do you have installed?
sauron.deepsoft.com% uname -a Linux sauron.deepsoft.com 2.6.18-194.8.1.el5xen #1 SMP Thu Jul 1 19:41:05 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux sauron.deepsoft.com% sudo modprobe ext4 sauron.deepsoft.com% lsmod | grep ext4 ext4 289433 0 jbd2 95473 1 ext4 crc16 35137 1 ext4 (sauron is Dom0, CentOS 5.5)
gollum.deepsoft.com% uname -a Linux gollum.deepsoft.com 2.6.18-194.3.1.el5 #1 SMP Thu May 13 13:09:10 EDT 2010 i686 i686 i386 GNU/Linux gollum.deepsoft.com% sudo modprobe ext4 gollum.deepsoft.com% lsmod | grep ext4 ext4 243693 0 jbd2 58329 1 ext4 crc16 6209 1 ext4 (gollum is my laptop, also CentOS 5.5)
On Sat, 7 Aug 2010 17:10:13 +0100 James Bensley jwbensley@gmail.com wrote:
On 7 August 2010 16:57, Laurent Wandrebeck l.wandrebeck@gmail.com wrote:
Use mount -t ext4dev.
Sorry, I forgot to mention; I have reformatted the drive as ext4dev and it still wont mount, unknown file system type again! I verified it was OK with fsck and it says it is a clean ext4dev partition?
Hmmmmm, looks like ext4dev only was the case in 5.4. I've just checked in 5.5 and got: LABEL=/data /data ext4 defaults 1 2 so a mount -t ext4 should work, as kernel-2.6.18-194.8.1.el5 provides /lib/modules/2.6.18-194.8.1.el5/kernel/fs/ext4/ext4.ko. Do you run some vps or something ? Regards, Laurent
On 7 August 2010 17:41, Laurent Wandrebeck l.wandrebeck@gmail.com wrote:
so a mount -t ext4 should work, as kernel-2.6.18-194.8.1.el5 provides /lib/modules/2.6.18-194.8.1.el5/kernel/fs/ext4/ext4.ko.
This is probably going ot provide the answer (to you atleast, its not so clear to me);
`uname -r` tells me I'm on kernel 2.6.18-92.el5.
Within /lib/modules/2.6.18-92.el5/kernel/fs/ thers is no ext4, but I have do have a /lib/modules/2.6.18-194.8.1.el5 folder and in there is kernel/fs/ext4/ext4.ko so a newer kernel is preset with the required module but its not active, or something? I'm going to say I need to recompile my kernel and include the module since its present on my box or work out why the newer kernel files are present but not in use?
On Sat, 7 Aug 2010 18:55:35 +0100 James Bensley jwbensley@gmail.com wrote:
On 7 August 2010 17:41, Laurent Wandrebeck l.wandrebeck@gmail.com wrote:
so a mount -t ext4 should work, as kernel-2.6.18-194.8.1.el5 provides /lib/modules/2.6.18-194.8.1.el5/kernel/fs/ext4/ext4.ko.
This is probably going ot provide the answer (to you atleast, its not so clear to me);
`uname -r` tells me I'm on kernel 2.6.18-92.el5.
Within /lib/modules/2.6.18-92.el5/kernel/fs/ thers is no ext4, but I have do have a /lib/modules/2.6.18-194.8.1.el5 folder and in there is kernel/fs/ext4/ext4.ko so a newer kernel is preset with the required module but its not active, or something? I'm going to say I need to recompile my kernel and include the module since its present on my box or work out why the newer kernel files are present but not in use?
You need to boot on the latest kernel. Or it is not 5.5 (nor 5.4 as far as I can remember - it looks like a 5.3 one). So ext4 is unsupported. Laurent
On 08/07/2010 10:55 AM, James Bensley wrote:
On 7 August 2010 17:41, Laurent Wandrebeckl.wandrebeck@gmail.com wrote:
so a mount -t ext4 should work, as kernel-2.6.18-194.8.1.el5 provides /lib/modules/2.6.18-194.8.1.el5/kernel/fs/ext4/ext4.ko.
This is probably going ot provide the answer (to you atleast, its not so clear to me);
`uname -r` tells me I'm on kernel 2.6.18-92.el5.
Within /lib/modules/2.6.18-92.el5/kernel/fs/ thers is no ext4, but I have do have a /lib/modules/2.6.18-194.8.1.el5 folder and in there is kernel/fs/ext4/ext4.ko so a newer kernel is preset with the required module but its not active, or something? I'm going to say I need to recompile my kernel and include the module since its present on my box or work out why the newer kernel files are present but not in use?
You are *WAY* behind on your running kernel. Check /boot/grub/grub.cfg and, assuming you have the more recent kernels installed, change it to default to the current kernel and reboot. Alternatively, if you don't want to edit grub.cfg just yet, reboot and *choose* the most current kernel from the grub boot menu to test it.
I use ext4 all the time and don't have any problems with it.
On 08/07/2010 11:05 AM, Benjamin Franz wrote:
On 08/07/2010 10:55 AM, James Bensley wrote:
On 7 August 2010 17:41, Laurent Wandrebeckl.wandrebeck@gmail.com wrote:
so a mount -t ext4 should work, as kernel-2.6.18-194.8.1.el5 provides /lib/modules/2.6.18-194.8.1.el5/kernel/fs/ext4/ext4.ko.
This is probably going ot provide the answer (to you atleast, its not so clear to me);
`uname -r` tells me I'm on kernel 2.6.18-92.el5.
Within /lib/modules/2.6.18-92.el5/kernel/fs/ thers is no ext4, but I have do have a /lib/modules/2.6.18-194.8.1.el5 folder and in there is kernel/fs/ext4/ext4.ko so a newer kernel is preset with the required module but its not active, or something? I'm going to say I need to recompile my kernel and include the module since its present on my box or work out why the newer kernel files are present but not in use?
You are *WAY* behind on your running kernel. Check /boot/grub/grub.cfg and, assuming you have the more recent kernels installed, change it to default to the current kernel and reboot. Alternatively, if you don't want to edit grub.cfg just yet, reboot and *choose* the most current kernel from the grub boot menu to test it.
I use ext4 all the time and don't have any problems with it.
Correction: I forgot that on CentOS you want /boot/grub/grub.conf instead.
On 7 August 2010 19:10, Jerry Franz jfranz@freerun.com wrote:
Correction: I forgot that on CentOS you want /boot/grub/grub.conf instead.
[nf5002@eros /]$ ls -l /boot/grub/menu.lst lrwxrwxr-- 1 root root 11 Oct 27 2008 /boot/grub/menu.lst -> ./grub.conf
Same difference :p
At Sat, 7 Aug 2010 19:13:55 +0100 CentOS mailing list centos@centos.org wrote:
On 7 August 2010 19:10, Jerry Franz jfranz@freerun.com wrote:
Correction: I forgot that on CentOS you want /boot/grub/grub.conf instead.
[nf5002@eros /]$ ls -l /boot/grub/menu.lst lrwxrwxr-- 1 root root 11 Oct 27 2008 /boot/grub/menu.lst -> ./grub.conf
Same difference :p
On additional thought: is /boot mounted read-only?
[nf5002@eros boot]$ sudo cat /boot/grub/menu.lst # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd1,0) # kernel /vmlinuz-version ro root=/dev/sda1 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd1,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-92.el5) root (hd1,0) kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.18-92.el5.img
I only have one kernel listen which is why I assume I am behind, I think yum has been getting new kernels but not building them and editing the grub meun. vmlinuz-2.6.18-92.el5 and initrd-2.6.18-92.el5.img is the only kernel in /boot?
I don't want to be a bother so can point me at a resolution i.e. point me at some documentation on how to make a new kernel image out of the resouces in /lib/modules/2.6.18-194.8.1.el5 and I shall do so.
Many thanks to you all so far your help is greatly appreciated.
At Sat, 7 Aug 2010 19:10:53 +0100 CentOS mailing list centos@centos.org wrote:
[nf5002@eros boot]$ sudo cat /boot/grub/menu.lst # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd1,0) # kernel /vmlinuz-version ro root=/dev/sda1 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd1,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-92.el5) root (hd1,0) kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.18-92.el5.img
I only have one kernel listen which is why I assume I am behind, I think yum has been getting new kernels but not building them and editing the grub meun. vmlinuz-2.6.18-92.el5 and initrd-2.6.18-92.el5.img is the only kernel in /boot?
I don't want to be a bother so can point me at a resolution i.e. point me at some documentation on how to make a new kernel image out of the resouces in /lib/modules/2.6.18-194.8.1.el5 and I shall do so.
Many thanks to you all so far your help is greatly appreciated.
If you have /lib/modules/2.6.18-194.8.1.el5, you *should* also have /boot/vmlinuz-2.6.18-194.8.1.el5 and /boot/initrd-2.6.18-194.8.1.el5.img installed as well:
sauron.deepsoft.com% rpm -qf /lib/modules/2.6.18-194.8.1.el5 kernel-2.6.18-194.8.1.el5 sauron.deepsoft.com% rpm -ql kernel-2.6.18-194.8.1.el5 | grep boot /boot/.vmlinuz-2.6.18-194.8.1.el5.hmac /boot/System.map-2.6.18-194.8.1.el5 /boot/config-2.6.18-194.8.1.el5 /boot/initrd-2.6.18-194.8.1.el5.img /boot/symvers-2.6.18-194.8.1.el5.gz /boot/vmlinuz-2.6.18-194.8.1.el5 /lib/modules/2.6.18-194.8.1.el5/kernel/drivers/mtd/redboot.ko
It looks like somehow your /boot/grub/grub.conf file is not getting updated.
Is grubby / mkinitrd installed? (You didn't do something like uninstall mkinitrd? or delete /sbin/grubby?)
sauron.deepsoft.com% rpm -qf /sbin/grubby mkinitrd-5.1.19.6-61.el5_5.2
On 7 August 2010 19:23, Robert Heller heller@deepsoft.com wrote:
sauron.deepsoft.com% rpm -qf /lib/modules/2.6.18-194.8.1.el5 kernel-2.6.18-194.8.1.el5 sauron.deepsoft.com% rpm -ql kernel-2.6.18-194.8.1.el5 | grep boot /boot/.vmlinuz-2.6.18-194.8.1.el5.hmac /boot/System.map-2.6.18-194.8.1.el5 /boot/config-2.6.18-194.8.1.el5 /boot/initrd-2.6.18-194.8.1.el5.img /boot/symvers-2.6.18-194.8.1.el5.gz /boot/vmlinuz-2.6.18-194.8.1.el5 /lib/modules/2.6.18-194.8.1.el5/kernel/drivers/mtd/redboot.ko
It looks like somehow your /boot/grub/grub.conf file is not getting updated.
Is grubby / mkinitrd installed? (You didn't do something like uninstall mkinitrd? or delete /sbin/grubby?)
sauron.deepsoft.com% rpm -qf /sbin/grubby mkinitrd-5.1.19.6-61.el5_5.2
[nf5002@eros /]$ rpm -qf /sbin/grubby mkinitrd-5.1.19.6-61.el5_5.2 mkinitrd-5.1.19.6-61.el5_5.2
[nf5002@eros /]$ rpm -qf /lib/modules/2.6.18-194.8.1.el5 kernel-2.6.18-194.8.1.el5
[nf5002@eros /]$ rpm -ql kernel-2.6.18-194.8.1.el5 | grep boot /boot/.vmlinuz-2.6.18-194.8.1.el5.hmac /boot/System.map-2.6.18-194.8.1.el5 /boot/config-2.6.18-194.8.1.el5 /boot/initrd-2.6.18-194.8.1.el5.img /boot/symvers-2.6.18-194.8.1.el5.gz /boot/vmlinuz-2.6.18-194.8.1.el5 /lib/modules/2.6.18-194.8.1.el5/kernel/drivers/mtd/redboot.ko
(/boot/*.2.6.18-194.8.1.el5, none of these files exist?)
On Sat, Aug 7, 2010 at 11:10 AM, James Bensley jwbensley@gmail.com wrote:
I only have one kernel listen which is why I assume I am behind, I think yum has been getting new kernels but not building them and editing the grub meun. vmlinuz-2.6.18-92.el5 and initrd-2.6.18-92.el5.img is the only kernel in /boot?
Please show the output of:
rpm -qa kernel* kmod* | sort
Akemi
On 7 August 2010 19:33, Akemi Yagi amyagi@gmail.com
Please show the output of:
rpm -qa kernel* kmod* | sort
[nf5002@eros /]$ rpm -qa kernel* kmod* | sort kernel-2.6.18-128.1.6.el5 kernel-2.6.18-164.10.1.el5 kernel-2.6.18-164.15.1.el5 kernel-2.6.18-194.8.1.el5 kernel-2.6.18-92.el5 kernel-headers-2.6.18-194.8.1.el5
On Sat, Aug 7, 2010 at 11:49 AM, James Bensley jwbensley@gmail.com wrote:
On 7 August 2010 19:33, Akemi Yagi amyagi@gmail.com
Please show the output of:
rpm -qa kernel* kmod* | sort
[nf5002@eros /]$ rpm -qa kernel* kmod* | sort kernel-2.6.18-128.1.6.el5 kernel-2.6.18-164.10.1.el5 kernel-2.6.18-164.15.1.el5 kernel-2.6.18-194.8.1.el5 kernel-2.6.18-92.el5 kernel-headers-2.6.18-194.8.1.el5
They are all installed. Are you using RAID by any chance? Your grub.conf indicates that is from the second drive.
Akemi
On 7 August 2010 19:59, Akemi Yagi amyagi@gmail.com wrote:
They are all installed. Are you using RAID by any chance? Your grub.conf indicates that is from the second drive.
/dev/sda1 / (ext3) /dev/sda2 /storage (the ext4 in question, hardware RAID5 3.4TB) /dev/sdb1 /boot (ext3)
It seems like grub and/or yum have gone wrong somewhere over the years and perhaps downloaded new kernels but not installed them?
What would be a solution I should seek to achieve, compile them myself? Or is there a way I can tell my CentOS box "these are here, look you fool, use them!"?
At Sat, 7 Aug 2010 20:06:11 +0100 CentOS mailing list centos@centos.org wrote:
On 7 August 2010 19:59, Akemi Yagi amyagi@gmail.com wrote:
They are all installed. Are you using RAID by any chance? Your grub.conf indicates that is from the second drive.
/dev/sda1 / (ext3) /dev/sda2 /storage (the ext4 in question, hardware RAID5 3.4TB) /dev/sdb1 /boot (ext3)
It seems like grub and/or yum have gone wrong somewhere over the years and perhaps downloaded new kernels but not installed them?
Oh, it installed them allright.
Wondering: How long as /dev/sdb1 been mounted as /boot? What happens if you do this:
umount /boot ls /boot
What would be a solution I should seek to achieve, compile them myself? Or is there a way I can tell my CentOS box "these are here, look you fool, use them!"?
On Sat, 7 Aug 2010, James Bensley wrote:
To: CentOS mailing list centos@centos.org From: James Bensley jwbensley@gmail.com Subject: Re: [CentOS] ext4?
[nf5002@eros boot]$ sudo cat /boot/grub/menu.lst # grub.conf generated by anaconda # # Note that you do not have to rerun grub after making changes to this file # NOTICE: You have a /boot partition. This means that # all kernel and initrd paths are relative to /boot/, eg. # root (hd1,0) # kernel /vmlinuz-version ro root=/dev/sda1 # initrd /initrd-version.img #boot=/dev/sda default=0 timeout=5 splashimage=(hd1,0)/grub/splash.xpm.gz hiddenmenu title CentOS (2.6.18-92.el5) root (hd1,0) kernel /vmlinuz-2.6.18-92.el5 ro root=LABEL=/ rhgb quiet initrd /initrd-2.6.18-92.el5.img
I only have one kernel listen which is why I assume I am behind, I think yum has been getting new kernels but not building them and editing the grub meun. vmlinuz-2.6.18-92.el5 and initrd-2.6.18-92.el5.img is the only kernel in /boot?
I don't want to be a bother so can point me at a resolution i.e. point me at some documentation on how to make a new kernel image out of the resouces in /lib/modules/2.6.18-194.8.1.el5 and I shall do so.
FWIW, I have installed GRUB to separate boot partition - not the MBR of the first hard drive.
Whenever there is a kernel update, I have to mount and manually edit the /boot/grub/grub.conf file on the boot partition. Yum does not update it, as it doesn't know where it is. I prefer this behaviour, as it means I have total control over which kernel is running, even after a kernel upgrade.
I also make backup copies of all kernel files, just in case I need to regress to a previous version, that yum may have removed.
HTH
Keith Roberts
On 7 August 2010 20:10, Keith Roberts keith@karsites.net
FWIW, I have installed GRUB to separate boot partition - not the MBR of the first hard drive.
Whenever there is a kernel update, I have to mount and manually edit the /boot/grub/grub.conf file on the boot partition. Yum does not update it, as it doesn't know where it is. I prefer this behaviour, as it means I have total control over which kernel is running, even after a kernel upgrade.
I also make backup copies of all kernel files, just in case I need to regress to a previous version, that yum may have removed.
This sounds like what might be happening tome although I'm not sure how to resolve this?
As I have mentioned before, in /lib/modules there are sub folders for various kernels leading upto the newest release I believe so how can I compile those into a vmlinuz image to go into /boot (if that is indeed what needs doing?)
At Sat, 7 Aug 2010 20:24:47 +0100 CentOS mailing list centos@centos.org wrote:
On 7 August 2010 20:10, Keith Roberts keith@karsites.net
FWIW, I have installed GRUB to separate boot partition - not the MBR of the first hard drive.
Whenever there is a kernel update, I have to mount and manually edit the /boot/grub/grub.conf file on the boot partition. Yum does not update it, as it doesn't know where it is. I prefer this behaviour, as it means I have total control over which kernel is running, even after a kernel upgrade.
I also make backup copies of all kernel files, just in case I need to regress to a previous version, that yum may have removed.
This sounds like what might be happening tome although I'm not sure how to resolve this?
As I have mentioned before, in /lib/modules there are sub folders for various kernels leading upto the newest release I believe so how can I compile those into a vmlinuz image to go into /boot (if that is indeed what needs doing?)
No, what is in /lib/modules are the modules that are NOT in vmlinunz. The base kernel should be in /boot.
At Sat, 7 Aug 2010 18:55:35 +0100 CentOS mailing list centos@centos.org wrote:
On 7 August 2010 17:41, Laurent Wandrebeck l.wandrebeck@gmail.com wrote:
so a mount -t ext4 should work, as kernel-2.6.18-194.8.1.el5 provides /lib/modules/2.6.18-194.8.1.el5/kernel/fs/ext4/ext4.ko.
This is probably going ot provide the answer (to you atleast, its not so clear to me);
`uname -r` tells me I'm on kernel 2.6.18-92.el5.
A really *old* CentOS 5.x kernel...
Within /lib/modules/2.6.18-92.el5/kernel/fs/ thers is no ext4, but I have do have a /lib/modules/2.6.18-194.8.1.el5 folder and in there is kernel/fs/ext4/ext4.ko so a newer kernel is preset with the required module but its not active, or something? I'm going to say I need to recompile my kernel and include the module since its present on my box or work out why the newer kernel files are present but not in use?
You have the newer kernel installed, but either you have *never* rebooted since updating or else grub.conf (or lilo.conf) was not updated or something like that. While is it indeed true that Linux does NOT need to be rebooted everytime you perform a software update (unlike MS-Windows), you do in fact have to reboot when you update the *kernel*.
If you have in fact rebooted since installing the newer kernel (probably via a yum update ...) and are still not running 2.6.18-194.8.1.el5, then you need to look at /boot/grub.conf (or /etc/lilo.conf) and see what is being booted by default. You might need to fix these files (and re-run lilo if you are using lilo), and then reboot.
On Saturday 07 August 2010 11:50, James Bensley wrote:
I have a 5.5 box and I have formatted a partition as ext4 however I can't mount it, the mount command is telling me its an unknown file system type. fsck tells me the partition is a clean ext4 partition but I can't mount it.
Are you trying to mount the ext4 partition using Grub? If so, mkfs.ext4 probably created 256-byte inodes, but the version of Grub that come with CentOS can only recognize 128-byte inodes. Recreate the ext4 partition using 128-byte inodes (use the -I option), or upgrade Grub to a non-CentOS version.
From: James Bensley jwbensley@gmail.com
I have a 5.5 box and I have formatted a partition as ext4 however I can't mount it, the mount command is telling me its an unknown file system type. fsck tells me the partition is a clean ext4 partition but I can't mount it. Some reasearch has lead me to believe the problem is that ext4 isn't enabled in the kernel by default in 5.5 (this was originally a 5.2 box that has been upgraded over time, its now on 2.6.18).
I guess you have e4fsprogs installed? I saw some people use tune4fs -E /dev/sdxx before trying to mount...
JD