* [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] @ 2013-09-07 18:06 Alexander Kapshuk 2013-09-07 18:11 ` Canek Peláez Valdés 0 siblings, 1 reply; 17+ messages in thread From: Alexander Kapshuk @ 2013-09-07 18:06 UTC (permalink / raw To: gentoo-user Howdy, Just compiled the new kernel [3.10.7], was about to edit my /boot/grub/grub.conf, and found it missing: box0 boot # pwd /boot box0 boot # ls -a . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo What did I miss? Thanks. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 18:06 [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] Alexander Kapshuk @ 2013-09-07 18:11 ` Canek Peláez Valdés 2013-09-07 18:24 ` Alexander Kapshuk 0 siblings, 1 reply; 17+ messages in thread From: Canek Peláez Valdés @ 2013-09-07 18:11 UTC (permalink / raw To: gentoo-user On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk <alexander.kapshuk@gmail.com> wrote: > Howdy, > > Just compiled the new kernel [3.10.7], was about to edit my > /boot/grub/grub.conf, and found it missing: > box0 boot # pwd > /boot > box0 boot # ls -a > . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo > > What did I miss? Do you have /boot in a separated partition? Did you mounted it? Nothing should touch /boot, AFAIK. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 18:11 ` Canek Peláez Valdés @ 2013-09-07 18:24 ` Alexander Kapshuk 2013-09-07 18:35 ` Canek Peláez Valdés 0 siblings, 1 reply; 17+ messages in thread From: Alexander Kapshuk @ 2013-09-07 18:24 UTC (permalink / raw To: gentoo-user On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote: > On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk > <alexander.kapshuk@gmail.com> wrote: >> Howdy, >> >> Just compiled the new kernel [3.10.7], was about to edit my >> /boot/grub/grub.conf, and found it missing: >> box0 boot # pwd >> /boot >> box0 boot # ls -a >> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo >> >> What did I miss? > Do you have /boot in a separated partition? Did you mounted it? > > Nothing should touch /boot, AFAIK. > > Regards. I do have '/boot' on a separate partition. If I understand it correctly, '/boot' gets mounted every time at system start-up, based on '/etc/fstab', does it not? box0 boot # cat /etc/fstab <snip> /dev/sda1 /boot ext2 default,noatime 0 2 /dev/sda2 none swap sw 0 0 /dev/sda3 / ext4 noatime 0 1 /dev/sda5 /home ext4 noatime 0 2 /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 box0 boot # mount|grep /dev/sda /dev/sda3 on / type ext4 (rw,noatime,data=ordered) /dev/sda5 on /home type ext4 (rw,noatime) box0 boot # fdisk -l /dev/sda Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x00000000 Device Boot Start End Blocks Id System /dev/sda1 * 2048 67583 32768 83 Linux /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris /dev/sda3 1116160 43059199 20971520 83 Linux /dev/sda4 43059200 488397167 222668984 5 Extended /dev/sda5 43061248 488397167 222667960 83 Linux ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 18:24 ` Alexander Kapshuk @ 2013-09-07 18:35 ` Canek Peláez Valdés 2013-09-07 18:53 ` Alexander Kapshuk 0 siblings, 1 reply; 17+ messages in thread From: Canek Peláez Valdés @ 2013-09-07 18:35 UTC (permalink / raw To: gentoo-user On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk <alexander.kapshuk@gmail.com> wrote: > On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote: >> On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk >> <alexander.kapshuk@gmail.com> wrote: >>> Howdy, >>> >>> Just compiled the new kernel [3.10.7], was about to edit my >>> /boot/grub/grub.conf, and found it missing: >>> box0 boot # pwd >>> /boot >>> box0 boot # ls -a >>> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo >>> >>> What did I miss? >> Do you have /boot in a separated partition? Did you mounted it? >> >> Nothing should touch /boot, AFAIK. >> >> Regards. > I do have '/boot' on a separate partition. If I understand it correctly, > '/boot' gets mounted every time at system start-up, based on > '/etc/fstab', does it not? By the contents of your fstab, it should... > box0 boot # cat /etc/fstab > <snip> > /dev/sda1 /boot ext2 default,noatime 0 2 > /dev/sda2 none swap sw 0 0 > /dev/sda3 / ext4 noatime 0 1 > /dev/sda5 /home ext4 noatime 0 2 > /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 > > > box0 boot # mount|grep /dev/sda > /dev/sda3 on / type ext4 (rw,noatime,data=ordered) > /dev/sda5 on /home type ext4 (rw,noatime) ,,,however mount says up there that it's not mounted. > box0 boot # fdisk -l /dev/sda > > Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors > Units = sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disk identifier: 0x00000000 > > Device Boot Start End Blocks Id System > /dev/sda1 * 2048 67583 32768 83 Linux > /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris > /dev/sda3 1116160 43059199 20971520 83 Linux > /dev/sda4 43059200 488397167 222668984 5 Extended > /dev/sda5 43061248 488397167 222667960 83 Linux For some reason your /boot partition didn't get mounted. See the boot logs, and try to mounting by hand. Perhaps the fsck failed or it needs manual intervention. Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 18:35 ` Canek Peláez Valdés @ 2013-09-07 18:53 ` Alexander Kapshuk 2013-09-07 19:25 ` Canek Peláez Valdés 2013-09-09 9:59 ` Hinnerk van Bruinehsen 0 siblings, 2 replies; 17+ messages in thread From: Alexander Kapshuk @ 2013-09-07 18:53 UTC (permalink / raw To: gentoo-user On 09/07/2013 09:35 PM, Canek Peláez Valdés wrote: > On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk > <alexander.kapshuk@gmail.com> wrote: >> On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote: >>> On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk >>> <alexander.kapshuk@gmail.com> wrote: >>>> Howdy, >>>> >>>> Just compiled the new kernel [3.10.7], was about to edit my >>>> /boot/grub/grub.conf, and found it missing: >>>> box0 boot # pwd >>>> /boot >>>> box0 boot # ls -a >>>> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo >>>> >>>> What did I miss? >>> Do you have /boot in a separated partition? Did you mounted it? >>> >>> Nothing should touch /boot, AFAIK. >>> >>> Regards. >> I do have '/boot' on a separate partition. If I understand it correctly, >> '/boot' gets mounted every time at system start-up, based on >> '/etc/fstab', does it not? > By the contents of your fstab, it should... > >> box0 boot # cat /etc/fstab >> <snip> >> /dev/sda1 /boot ext2 default,noatime 0 2 >> /dev/sda2 none swap sw 0 0 >> /dev/sda3 / ext4 noatime 0 1 >> /dev/sda5 /home ext4 noatime 0 2 >> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 >> >> >> box0 boot # mount|grep /dev/sda >> /dev/sda3 on / type ext4 (rw,noatime,data=ordered) >> /dev/sda5 on /home type ext4 (rw,noatime) > ,,,however mount says up there that it's not mounted. > >> box0 boot # fdisk -l /dev/sda >> >> Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors >> Units = sectors of 1 * 512 = 512 bytes >> Sector size (logical/physical): 512 bytes / 512 bytes >> I/O size (minimum/optimal): 512 bytes / 512 bytes >> Disk identifier: 0x00000000 >> >> Device Boot Start End Blocks Id System >> /dev/sda1 * 2048 67583 32768 83 Linux >> /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris >> /dev/sda3 1116160 43059199 20971520 83 Linux >> /dev/sda4 43059200 488397167 222668984 5 Extended >> /dev/sda5 43061248 488397167 222667960 83 Linux > For some reason your /boot partition didn't get mounted. See the boot > logs, and try to mounting by hand. Perhaps the fsck failed or it needs > manual intervention. > > Regards. Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/' partition instead of the '/boot' one. box0 ~ # dmesg|grep 'EXT.*fs' [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of unsupported optional features (240) [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature incompatibilities [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null) [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null) Would that suggest a corrupted /boot/grub/grub.conf file? How did the system boot then? Thanks. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 18:53 ` Alexander Kapshuk @ 2013-09-07 19:25 ` Canek Peláez Valdés 2013-09-07 19:30 ` Alexander Kapshuk 2013-09-09 9:59 ` Hinnerk van Bruinehsen 1 sibling, 1 reply; 17+ messages in thread From: Canek Peláez Valdés @ 2013-09-07 19:25 UTC (permalink / raw To: gentoo-user On Sat, Sep 7, 2013 at 1:53 PM, Alexander Kapshuk <alexander.kapshuk@gmail.com> wrote: > On 09/07/2013 09:35 PM, Canek Peláez Valdés wrote: >> On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk >> <alexander.kapshuk@gmail.com> wrote: >>> On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote: >>>> On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk >>>> <alexander.kapshuk@gmail.com> wrote: >>>>> Howdy, >>>>> >>>>> Just compiled the new kernel [3.10.7], was about to edit my >>>>> /boot/grub/grub.conf, and found it missing: >>>>> box0 boot # pwd >>>>> /boot >>>>> box0 boot # ls -a >>>>> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo >>>>> >>>>> What did I miss? >>>> Do you have /boot in a separated partition? Did you mounted it? >>>> >>>> Nothing should touch /boot, AFAIK. >>>> >>>> Regards. >>> I do have '/boot' on a separate partition. If I understand it correctly, >>> '/boot' gets mounted every time at system start-up, based on >>> '/etc/fstab', does it not? >> By the contents of your fstab, it should... >> >>> box0 boot # cat /etc/fstab >>> <snip> >>> /dev/sda1 /boot ext2 default,noatime 0 2 >>> /dev/sda2 none swap sw 0 0 >>> /dev/sda3 / ext4 noatime 0 1 >>> /dev/sda5 /home ext4 noatime 0 2 >>> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 >>> >>> >>> box0 boot # mount|grep /dev/sda >>> /dev/sda3 on / type ext4 (rw,noatime,data=ordered) >>> /dev/sda5 on /home type ext4 (rw,noatime) >> ,,,however mount says up there that it's not mounted. >> >>> box0 boot # fdisk -l /dev/sda >>> >>> Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors >>> Units = sectors of 1 * 512 = 512 bytes >>> Sector size (logical/physical): 512 bytes / 512 bytes >>> I/O size (minimum/optimal): 512 bytes / 512 bytes >>> Disk identifier: 0x00000000 >>> >>> Device Boot Start End Blocks Id System >>> /dev/sda1 * 2048 67583 32768 83 Linux >>> /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris >>> /dev/sda3 1116160 43059199 20971520 83 Linux >>> /dev/sda4 43059200 488397167 222668984 5 Extended >>> /dev/sda5 43061248 488397167 222667960 83 Linux >> For some reason your /boot partition didn't get mounted. See the boot >> logs, and try to mounting by hand. Perhaps the fsck failed or it needs >> manual intervention. >> >> Regards. > Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/' > partition instead of the '/boot' one. > > box0 ~ # dmesg|grep 'EXT.*fs' > [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of > unsupported optional features (240) > [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature > incompatibilities > [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data > mode. Opts: (null) > [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) > [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data > mode. Opts: (null) > > Would that suggest a corrupted /boot/grub/grub.conf file? Not necessarily. Can you manually mount /boot and see the contents of /boot/grub/grub.conf. > How did the system boot then? If grub can see the boot partition (and is correctly configured and installed on the MBR), it can mount the root system without problems regardless of fstab. Do you use an initramfs? Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 19:25 ` Canek Peláez Valdés @ 2013-09-07 19:30 ` Alexander Kapshuk 2013-09-07 19:35 ` Canek Peláez Valdés 0 siblings, 1 reply; 17+ messages in thread From: Alexander Kapshuk @ 2013-09-07 19:30 UTC (permalink / raw To: gentoo-user On 09/07/2013 10:25 PM, Canek Peláez Valdés wrote: > On Sat, Sep 7, 2013 at 1:53 PM, Alexander Kapshuk > <alexander.kapshuk@gmail.com> wrote: >> On 09/07/2013 09:35 PM, Canek Peláez Valdés wrote: >>> On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk >>> <alexander.kapshuk@gmail.com> wrote: >>>> On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote: >>>>> On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk >>>>> <alexander.kapshuk@gmail.com> wrote: >>>>>> Howdy, >>>>>> >>>>>> Just compiled the new kernel [3.10.7], was about to edit my >>>>>> /boot/grub/grub.conf, and found it missing: >>>>>> box0 boot # pwd >>>>>> /boot >>>>>> box0 boot # ls -a >>>>>> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo >>>>>> >>>>>> What did I miss? >>>>> Do you have /boot in a separated partition? Did you mounted it? >>>>> >>>>> Nothing should touch /boot, AFAIK. >>>>> >>>>> Regards. >>>> I do have '/boot' on a separate partition. If I understand it correctly, >>>> '/boot' gets mounted every time at system start-up, based on >>>> '/etc/fstab', does it not? >>> By the contents of your fstab, it should... >>> >>>> box0 boot # cat /etc/fstab >>>> <snip> >>>> /dev/sda1 /boot ext2 default,noatime 0 2 >>>> /dev/sda2 none swap sw 0 0 >>>> /dev/sda3 / ext4 noatime 0 1 >>>> /dev/sda5 /home ext4 noatime 0 2 >>>> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 >>>> >>>> >>>> box0 boot # mount|grep /dev/sda >>>> /dev/sda3 on / type ext4 (rw,noatime,data=ordered) >>>> /dev/sda5 on /home type ext4 (rw,noatime) >>> ,,,however mount says up there that it's not mounted. >>> >>>> box0 boot # fdisk -l /dev/sda >>>> >>>> Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors >>>> Units = sectors of 1 * 512 = 512 bytes >>>> Sector size (logical/physical): 512 bytes / 512 bytes >>>> I/O size (minimum/optimal): 512 bytes / 512 bytes >>>> Disk identifier: 0x00000000 >>>> >>>> Device Boot Start End Blocks Id System >>>> /dev/sda1 * 2048 67583 32768 83 Linux >>>> /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris >>>> /dev/sda3 1116160 43059199 20971520 83 Linux >>>> /dev/sda4 43059200 488397167 222668984 5 Extended >>>> /dev/sda5 43061248 488397167 222667960 83 Linux >>> For some reason your /boot partition didn't get mounted. See the boot >>> logs, and try to mounting by hand. Perhaps the fsck failed or it needs >>> manual intervention. >>> >>> Regards. >> Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/' >> partition instead of the '/boot' one. >> >> box0 ~ # dmesg|grep 'EXT.*fs' >> [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of >> unsupported optional features (240) >> [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature >> incompatibilities >> [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data >> mode. Opts: (null) >> [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) >> [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data >> mode. Opts: (null) >> >> Would that suggest a corrupted /boot/grub/grub.conf file? > Not necessarily. Can you manually mount /boot and see the contents of > /boot/grub/grub.conf. > >> How did the system boot then? > If grub can see the boot partition (and is correctly configured and > installed on the MBR), it can mount the root system without problems > regardless of fstab. Do you use an initramfs? > > Regards. 'mount /boot' fails: box0 ~ # mount /boot mount: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error In some cases useful info is found in syslog - try dmesg | tail or so No, I do not use 'initfamfs'. What do you suggest doing? Thanks. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 19:30 ` Alexander Kapshuk @ 2013-09-07 19:35 ` Canek Peláez Valdés 2013-09-07 19:41 ` Alexander Kapshuk 0 siblings, 1 reply; 17+ messages in thread From: Canek Peláez Valdés @ 2013-09-07 19:35 UTC (permalink / raw To: gentoo-user On Sat, Sep 7, 2013 at 2:30 PM, Alexander Kapshuk <alexander.kapshuk@gmail.com> wrote: > On 09/07/2013 10:25 PM, Canek Peláez Valdés wrote: >> On Sat, Sep 7, 2013 at 1:53 PM, Alexander Kapshuk >> <alexander.kapshuk@gmail.com> wrote: >>> On 09/07/2013 09:35 PM, Canek Peláez Valdés wrote: >>>> On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk >>>> <alexander.kapshuk@gmail.com> wrote: >>>>> On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote: >>>>>> On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk >>>>>> <alexander.kapshuk@gmail.com> wrote: >>>>>>> Howdy, >>>>>>> >>>>>>> Just compiled the new kernel [3.10.7], was about to edit my >>>>>>> /boot/grub/grub.conf, and found it missing: >>>>>>> box0 boot # pwd >>>>>>> /boot >>>>>>> box0 boot # ls -a >>>>>>> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo >>>>>>> >>>>>>> What did I miss? >>>>>> Do you have /boot in a separated partition? Did you mounted it? >>>>>> >>>>>> Nothing should touch /boot, AFAIK. >>>>>> >>>>>> Regards. >>>>> I do have '/boot' on a separate partition. If I understand it correctly, >>>>> '/boot' gets mounted every time at system start-up, based on >>>>> '/etc/fstab', does it not? >>>> By the contents of your fstab, it should... >>>> >>>>> box0 boot # cat /etc/fstab >>>>> <snip> >>>>> /dev/sda1 /boot ext2 default,noatime 0 2 >>>>> /dev/sda2 none swap sw 0 0 >>>>> /dev/sda3 / ext4 noatime 0 1 >>>>> /dev/sda5 /home ext4 noatime 0 2 >>>>> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 >>>>> >>>>> >>>>> box0 boot # mount|grep /dev/sda >>>>> /dev/sda3 on / type ext4 (rw,noatime,data=ordered) >>>>> /dev/sda5 on /home type ext4 (rw,noatime) >>>> ,,,however mount says up there that it's not mounted. >>>> >>>>> box0 boot # fdisk -l /dev/sda >>>>> >>>>> Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors >>>>> Units = sectors of 1 * 512 = 512 bytes >>>>> Sector size (logical/physical): 512 bytes / 512 bytes >>>>> I/O size (minimum/optimal): 512 bytes / 512 bytes >>>>> Disk identifier: 0x00000000 >>>>> >>>>> Device Boot Start End Blocks Id System >>>>> /dev/sda1 * 2048 67583 32768 83 Linux >>>>> /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris >>>>> /dev/sda3 1116160 43059199 20971520 83 Linux >>>>> /dev/sda4 43059200 488397167 222668984 5 Extended >>>>> /dev/sda5 43061248 488397167 222667960 83 Linux >>>> For some reason your /boot partition didn't get mounted. See the boot >>>> logs, and try to mounting by hand. Perhaps the fsck failed or it needs >>>> manual intervention. >>>> >>>> Regards. >>> Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/' >>> partition instead of the '/boot' one. >>> >>> box0 ~ # dmesg|grep 'EXT.*fs' >>> [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of >>> unsupported optional features (240) >>> [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature >>> incompatibilities >>> [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data >>> mode. Opts: (null) >>> [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) >>> [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data >>> mode. Opts: (null) >>> >>> Would that suggest a corrupted /boot/grub/grub.conf file? >> Not necessarily. Can you manually mount /boot and see the contents of >> /boot/grub/grub.conf. >> >>> How did the system boot then? >> If grub can see the boot partition (and is correctly configured and >> installed on the MBR), it can mount the root system without problems >> regardless of fstab. Do you use an initramfs? >> >> Regards. > 'mount /boot' fails: > box0 ~ # mount /boot > mount: wrong fs type, bad option, bad superblock on /dev/sda1, > missing codepage or helper program, or other error > In some cases useful info is found in syslog - try > dmesg | tail or so > > No, I do not use 'initfamfs'. > > What do you suggest doing? Mounting it by hand: mount -t ext2 /dev/sda1 /boot Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 19:35 ` Canek Peláez Valdés @ 2013-09-07 19:41 ` Alexander Kapshuk 2013-09-07 20:11 ` Canek Peláez Valdés 0 siblings, 1 reply; 17+ messages in thread From: Alexander Kapshuk @ 2013-09-07 19:41 UTC (permalink / raw To: gentoo-user On 09/07/2013 10:35 PM, Canek Peláez Valdés wrote: > On Sat, Sep 7, 2013 at 2:30 PM, Alexander Kapshuk > <alexander.kapshuk@gmail.com> wrote: >> On 09/07/2013 10:25 PM, Canek Peláez Valdés wrote: >>> On Sat, Sep 7, 2013 at 1:53 PM, Alexander Kapshuk >>> <alexander.kapshuk@gmail.com> wrote: >>>> On 09/07/2013 09:35 PM, Canek Peláez Valdés wrote: >>>>> On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk >>>>> <alexander.kapshuk@gmail.com> wrote: >>>>>> On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote: >>>>>>> On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk >>>>>>> <alexander.kapshuk@gmail.com> wrote: >>>>>>>> Howdy, >>>>>>>> >>>>>>>> Just compiled the new kernel [3.10.7], was about to edit my >>>>>>>> /boot/grub/grub.conf, and found it missing: >>>>>>>> box0 boot # pwd >>>>>>>> /boot >>>>>>>> box0 boot # ls -a >>>>>>>> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo >>>>>>>> >>>>>>>> What did I miss? >>>>>>> Do you have /boot in a separated partition? Did you mounted it? >>>>>>> >>>>>>> Nothing should touch /boot, AFAIK. >>>>>>> >>>>>>> Regards. >>>>>> I do have '/boot' on a separate partition. If I understand it correctly, >>>>>> '/boot' gets mounted every time at system start-up, based on >>>>>> '/etc/fstab', does it not? >>>>> By the contents of your fstab, it should... >>>>> >>>>>> box0 boot # cat /etc/fstab >>>>>> <snip> >>>>>> /dev/sda1 /boot ext2 default,noatime 0 2 >>>>>> /dev/sda2 none swap sw 0 0 >>>>>> /dev/sda3 / ext4 noatime 0 1 >>>>>> /dev/sda5 /home ext4 noatime 0 2 >>>>>> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 >>>>>> >>>>>> >>>>>> box0 boot # mount|grep /dev/sda >>>>>> /dev/sda3 on / type ext4 (rw,noatime,data=ordered) >>>>>> /dev/sda5 on /home type ext4 (rw,noatime) >>>>> ,,,however mount says up there that it's not mounted. >>>>> >>>>>> box0 boot # fdisk -l /dev/sda >>>>>> >>>>>> Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors >>>>>> Units = sectors of 1 * 512 = 512 bytes >>>>>> Sector size (logical/physical): 512 bytes / 512 bytes >>>>>> I/O size (minimum/optimal): 512 bytes / 512 bytes >>>>>> Disk identifier: 0x00000000 >>>>>> >>>>>> Device Boot Start End Blocks Id System >>>>>> /dev/sda1 * 2048 67583 32768 83 Linux >>>>>> /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris >>>>>> /dev/sda3 1116160 43059199 20971520 83 Linux >>>>>> /dev/sda4 43059200 488397167 222668984 5 Extended >>>>>> /dev/sda5 43061248 488397167 222667960 83 Linux >>>>> For some reason your /boot partition didn't get mounted. See the boot >>>>> logs, and try to mounting by hand. Perhaps the fsck failed or it needs >>>>> manual intervention. >>>>> >>>>> Regards. >>>> Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/' >>>> partition instead of the '/boot' one. >>>> >>>> box0 ~ # dmesg|grep 'EXT.*fs' >>>> [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of >>>> unsupported optional features (240) >>>> [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature >>>> incompatibilities >>>> [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data >>>> mode. Opts: (null) >>>> [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) >>>> [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data >>>> mode. Opts: (null) >>>> >>>> Would that suggest a corrupted /boot/grub/grub.conf file? >>> Not necessarily. Can you manually mount /boot and see the contents of >>> /boot/grub/grub.conf. >>> >>>> How did the system boot then? >>> If grub can see the boot partition (and is correctly configured and >>> installed on the MBR), it can mount the root system without problems >>> regardless of fstab. Do you use an initramfs? >>> >>> Regards. >> 'mount /boot' fails: >> box0 ~ # mount /boot >> mount: wrong fs type, bad option, bad superblock on /dev/sda1, >> missing codepage or helper program, or other error >> In some cases useful info is found in syslog - try >> dmesg | tail or so >> >> No, I do not use 'initfamfs'. >> >> What do you suggest doing? > Mounting it by hand: > > mount -t ext2 /dev/sda1 /boot > > Regards. That did the trick. Thanks very much. Here's my /boot/grub/grub.conf: box0 linux # cat /boot/grub/grub.conf # This is a sample grub.conf for use with Genkernel, per the Gentoo handbook # http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2 # If you are not using Genkernel and you need help creating this file, you # should consult the handbook. Alternatively, consult the grub.conf.sample that # is included with the Grub documentation. default 0 timeout 30 splashimage=(hd0,0)/boot/grub/splash.xpm.gz title Gentoo Linux 3.8.13 root (hd0,0) kernel /boot/kernel-3.8.13-gentoo root=/dev/sda3 #initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5 title Gentoo Linux 3.8.13 (rescue) root (hd0,0) kernel /boot/kernel-3.8.13-gentoo root=/dev/sda3 init=/bin/bb # vim:ft=conf: Is there anything that suggests as to why the /boot partition failed to mount at system start-up? Thanks. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 19:41 ` Alexander Kapshuk @ 2013-09-07 20:11 ` Canek Peláez Valdés 2013-09-07 20:15 ` Alexander Kapshuk 2013-09-07 21:43 ` [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] gottlieb 0 siblings, 2 replies; 17+ messages in thread From: Canek Peláez Valdés @ 2013-09-07 20:11 UTC (permalink / raw To: gentoo-user On Sat, Sep 7, 2013 at 2:41 PM, Alexander Kapshuk <alexander.kapshuk@gmail.com> wrote: > On 09/07/2013 10:35 PM, Canek Peláez Valdés wrote: >> On Sat, Sep 7, 2013 at 2:30 PM, Alexander Kapshuk >> <alexander.kapshuk@gmail.com> wrote: >>> On 09/07/2013 10:25 PM, Canek Peláez Valdés wrote: >>>> On Sat, Sep 7, 2013 at 1:53 PM, Alexander Kapshuk >>>> <alexander.kapshuk@gmail.com> wrote: >>>>> On 09/07/2013 09:35 PM, Canek Peláez Valdés wrote: >>>>>> On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk >>>>>> <alexander.kapshuk@gmail.com> wrote: >>>>>>> On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote: >>>>>>>> On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk >>>>>>>> <alexander.kapshuk@gmail.com> wrote: >>>>>>>>> Howdy, >>>>>>>>> >>>>>>>>> Just compiled the new kernel [3.10.7], was about to edit my >>>>>>>>> /boot/grub/grub.conf, and found it missing: >>>>>>>>> box0 boot # pwd >>>>>>>>> /boot >>>>>>>>> box0 boot # ls -a >>>>>>>>> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo >>>>>>>>> >>>>>>>>> What did I miss? >>>>>>>> Do you have /boot in a separated partition? Did you mounted it? >>>>>>>> >>>>>>>> Nothing should touch /boot, AFAIK. >>>>>>>> >>>>>>>> Regards. >>>>>>> I do have '/boot' on a separate partition. If I understand it correctly, >>>>>>> '/boot' gets mounted every time at system start-up, based on >>>>>>> '/etc/fstab', does it not? >>>>>> By the contents of your fstab, it should... >>>>>> >>>>>>> box0 boot # cat /etc/fstab >>>>>>> <snip> >>>>>>> /dev/sda1 /boot ext2 default,noatime 0 2 >>>>>>> /dev/sda2 none swap sw 0 0 >>>>>>> /dev/sda3 / ext4 noatime 0 1 >>>>>>> /dev/sda5 /home ext4 noatime 0 2 >>>>>>> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 >>>>>>> >>>>>>> >>>>>>> box0 boot # mount|grep /dev/sda >>>>>>> /dev/sda3 on / type ext4 (rw,noatime,data=ordered) >>>>>>> /dev/sda5 on /home type ext4 (rw,noatime) >>>>>> ,,,however mount says up there that it's not mounted. >>>>>> >>>>>>> box0 boot # fdisk -l /dev/sda >>>>>>> >>>>>>> Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors >>>>>>> Units = sectors of 1 * 512 = 512 bytes >>>>>>> Sector size (logical/physical): 512 bytes / 512 bytes >>>>>>> I/O size (minimum/optimal): 512 bytes / 512 bytes >>>>>>> Disk identifier: 0x00000000 >>>>>>> >>>>>>> Device Boot Start End Blocks Id System >>>>>>> /dev/sda1 * 2048 67583 32768 83 Linux >>>>>>> /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris >>>>>>> /dev/sda3 1116160 43059199 20971520 83 Linux >>>>>>> /dev/sda4 43059200 488397167 222668984 5 Extended >>>>>>> /dev/sda5 43061248 488397167 222667960 83 Linux >>>>>> For some reason your /boot partition didn't get mounted. See the boot >>>>>> logs, and try to mounting by hand. Perhaps the fsck failed or it needs >>>>>> manual intervention. >>>>>> >>>>>> Regards. >>>>> Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/' >>>>> partition instead of the '/boot' one. >>>>> >>>>> box0 ~ # dmesg|grep 'EXT.*fs' >>>>> [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of >>>>> unsupported optional features (240) >>>>> [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature >>>>> incompatibilities >>>>> [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data >>>>> mode. Opts: (null) >>>>> [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) >>>>> [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data >>>>> mode. Opts: (null) >>>>> >>>>> Would that suggest a corrupted /boot/grub/grub.conf file? >>>> Not necessarily. Can you manually mount /boot and see the contents of >>>> /boot/grub/grub.conf. >>>> >>>>> How did the system boot then? >>>> If grub can see the boot partition (and is correctly configured and >>>> installed on the MBR), it can mount the root system without problems >>>> regardless of fstab. Do you use an initramfs? >>>> >>>> Regards. >>> 'mount /boot' fails: >>> box0 ~ # mount /boot >>> mount: wrong fs type, bad option, bad superblock on /dev/sda1, >>> missing codepage or helper program, or other error >>> In some cases useful info is found in syslog - try >>> dmesg | tail or so >>> >>> No, I do not use 'initfamfs'. >>> >>> What do you suggest doing? >> Mounting it by hand: >> >> mount -t ext2 /dev/sda1 /boot >> >> Regards. > That did the trick. Thanks very much. > > Here's my /boot/grub/grub.conf: > box0 linux # cat /boot/grub/grub.conf > # This is a sample grub.conf for use with Genkernel, per the Gentoo handbook > # > http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2 > # If you are not using Genkernel and you need help creating this file, you > # should consult the handbook. Alternatively, consult the > grub.conf.sample that > # is included with the Grub documentation. > > default 0 > timeout 30 > splashimage=(hd0,0)/boot/grub/splash.xpm.gz > > title Gentoo Linux 3.8.13 > root (hd0,0) > kernel /boot/kernel-3.8.13-gentoo root=/dev/sda3 > #initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5 > > title Gentoo Linux 3.8.13 (rescue) > root (hd0,0) > kernel /boot/kernel-3.8.13-gentoo root=/dev/sda3 init=/bin/bb > # vim:ft=conf: > > Is there anything that suggests as to why the /boot partition failed to > mount at system start-up? No, I don't see anything that. However, since you cannot "mount /boot", but doing it manually works, that means something is wrong with your fstab. Can I see it again? There is no /boot/etc/fstab, right? What does /boot/grub/device.map say? Regards. -- Canek Peláez Valdés Posgrado en Ciencia e Ingeniería de la Computación Universidad Nacional Autónoma de México ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 20:11 ` Canek Peláez Valdés @ 2013-09-07 20:15 ` Alexander Kapshuk 2013-09-07 21:31 ` meino.cramer 2013-09-07 21:43 ` [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] gottlieb 1 sibling, 1 reply; 17+ messages in thread From: Alexander Kapshuk @ 2013-09-07 20:15 UTC (permalink / raw To: gentoo-user On 09/07/2013 11:11 PM, Canek Peláez Valdés wrote: > On Sat, Sep 7, 2013 at 2:41 PM, Alexander Kapshuk > <alexander.kapshuk@gmail.com> wrote: > >> On 09/07/2013 10:35 PM, Canek Peláez Valdés wrote: >> >>> On Sat, Sep 7, 2013 at 2:30 PM, Alexander Kapshuk >>> <alexander.kapshuk@gmail.com> wrote: >>> >>>> On 09/07/2013 10:25 PM, Canek Peláez Valdés wrote: >>>> >>>>> On Sat, Sep 7, 2013 at 1:53 PM, Alexander Kapshuk >>>>> <alexander.kapshuk@gmail.com> wrote: >>>>> >>>>>> On 09/07/2013 09:35 PM, Canek Peláez Valdés wrote: >>>>>> >>>>>>> On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk >>>>>>> <alexander.kapshuk@gmail.com> wrote: >>>>>>> >>>>>>>> On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote: >>>>>>>> >>>>>>>>> On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk >>>>>>>>> <alexander.kapshuk@gmail.com> wrote: >>>>>>>>> >>>>>>>>>> Howdy, >>>>>>>>>> >>>>>>>>>> Just compiled the new kernel [3.10.7], was about to edit my >>>>>>>>>> /boot/grub/grub.conf, and found it missing: >>>>>>>>>> box0 boot # pwd >>>>>>>>>> /boot >>>>>>>>>> box0 boot # ls -a >>>>>>>>>> . .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo >>>>>>>>>> >>>>>>>>>> What did I miss? >>>>>>>>>> >>>>>>>>> Do you have /boot in a separated partition? Did you mounted it? >>>>>>>>> >>>>>>>>> Nothing should touch /boot, AFAIK. >>>>>>>>> >>>>>>>>> Regards. >>>>>>>>> >>>>>>>> I do have '/boot' on a separate partition. If I understand it correctly, >>>>>>>> '/boot' gets mounted every time at system start-up, based on >>>>>>>> '/etc/fstab', does it not? >>>>>>>> >>>>>>> By the contents of your fstab, it should... >>>>>>> >>>>>>> >>>>>>>> box0 boot # cat /etc/fstab >>>>>>>> <snip> >>>>>>>> /dev/sda1 /boot ext2 default,noatime 0 2 >>>>>>>> /dev/sda2 none swap sw 0 0 >>>>>>>> /dev/sda3 / ext4 noatime 0 1 >>>>>>>> /dev/sda5 /home ext4 noatime 0 2 >>>>>>>> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 >>>>>>>> >>>>>>>> >>>>>>>> box0 boot # mount|grep /dev/sda >>>>>>>> /dev/sda3 on / type ext4 (rw,noatime,data=ordered) >>>>>>>> /dev/sda5 on /home type ext4 (rw,noatime) >>>>>>>> >>>>>>> ,,,however mount says up there that it's not mounted. >>>>>>> >>>>>>> >>>>>>>> box0 boot # fdisk -l /dev/sda >>>>>>>> >>>>>>>> Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors >>>>>>>> Units = sectors of 1 * 512 = 512 bytes >>>>>>>> Sector size (logical/physical): 512 bytes / 512 bytes >>>>>>>> I/O size (minimum/optimal): 512 bytes / 512 bytes >>>>>>>> Disk identifier: 0x00000000 >>>>>>>> >>>>>>>> Device Boot Start End Blocks Id System >>>>>>>> /dev/sda1 * 2048 67583 32768 83 Linux >>>>>>>> /dev/sda2 67584 1116159 524288 82 Linux swap / Solaris >>>>>>>> /dev/sda3 1116160 43059199 20971520 83 Linux >>>>>>>> /dev/sda4 43059200 488397167 222668984 5 Extended >>>>>>>> /dev/sda5 43061248 488397167 222667960 83 Linux >>>>>>>> >>>>>>> For some reason your /boot partition didn't get mounted. See the boot >>>>>>> logs, and try to mounting by hand. Perhaps the fsck failed or it needs >>>>>>> manual intervention. >>>>>>> >>>>>>> Regards. >>>>>>> >>>>>> Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/' >>>>>> partition instead of the '/boot' one. >>>>>> >>>>>> box0 ~ # dmesg|grep 'EXT.*fs' >>>>>> [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of >>>>>> unsupported optional features (240) >>>>>> [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature >>>>>> incompatibilities >>>>>> [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data >>>>>> mode. Opts: (null) >>>>>> [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) >>>>>> [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data >>>>>> mode. Opts: (null) >>>>>> >>>>>> Would that suggest a corrupted /boot/grub/grub.conf file? >>>>>> >>>>> Not necessarily. Can you manually mount /boot and see the contents of >>>>> /boot/grub/grub.conf. >>>>> >>>>> >>>>>> How did the system boot then? >>>>>> >>>>> If grub can see the boot partition (and is correctly configured and >>>>> installed on the MBR), it can mount the root system without problems >>>>> regardless of fstab. Do you use an initramfs? >>>>> >>>>> Regards. >>>>> >>>> 'mount /boot' fails: >>>> box0 ~ # mount /boot >>>> mount: wrong fs type, bad option, bad superblock on /dev/sda1, >>>> missing codepage or helper program, or other error >>>> In some cases useful info is found in syslog - try >>>> dmesg | tail or so >>>> >>>> No, I do not use 'initfamfs'. >>>> >>>> What do you suggest doing? >>>> >>> Mounting it by hand: >>> >>> mount -t ext2 /dev/sda1 /boot >>> >>> Regards. >>> >> That did the trick. Thanks very much. >> >> Here's my /boot/grub/grub.conf: >> box0 linux # cat /boot/grub/grub.conf >> # This is a sample grub.conf for use with Genkernel, per the Gentoo handbook >> # >> http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2 >> # If you are not using Genkernel and you need help creating this file, you >> # should consult the handbook. Alternatively, consult the >> grub.conf.sample that >> # is included with the Grub documentation. >> >> default 0 >> timeout 30 >> splashimage=(hd0,0)/boot/grub/splash.xpm.gz >> >> title Gentoo Linux 3.8.13 >> root (hd0,0) >> kernel /boot/kernel-3.8.13-gentoo root=/dev/sda3 >> #initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5 >> >> title Gentoo Linux 3.8.13 (rescue) >> root (hd0,0) >> kernel /boot/kernel-3.8.13-gentoo root=/dev/sda3 init=/bin/bb >> # vim:ft=conf: >> >> Is there anything that suggests as to why the /boot partition failed to >> mount at system start-up? >> > No, I don't see anything that. However, since you cannot "mount > /boot", but doing it manually works, that means something is wrong > with your fstab. Can I see it again? There is no /boot/etc/fstab, > right? What does /boot/grub/device.map say? > > Regards. > Getting late. I'll have to chase it up tomorrow. Sorry. Thanks heaps for your help. I'll keep yourself and the list posted on the progress made. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 20:15 ` Alexander Kapshuk @ 2013-09-07 21:31 ` meino.cramer 2013-09-08 15:20 ` Bruce Hill 0 siblings, 1 reply; 17+ messages in thread From: meino.cramer @ 2013-09-07 21:31 UTC (permalink / raw To: gentoo-user Alexander Kapshuk <alexander.kapshuk@gmail.com> [13-09-07 23:14]: > On 09/07/2013 11:11 PM, Canek Peláez Valdés wrote: > >On Sat, Sep 7, 2013 at 2:41 PM, Alexander Kapshuk > ><alexander.kapshuk@gmail.com> wrote: > > > >>On 09/07/2013 10:35 PM, Canek Peláez Valdés wrote: > >> > >>>On Sat, Sep 7, 2013 at 2:30 PM, Alexander Kapshuk > >>><alexander.kapshuk@gmail.com> wrote: > >>> > >>>>On 09/07/2013 10:25 PM, Canek Peláez Valdés wrote: > >>>> > >>>>>On Sat, Sep 7, 2013 at 1:53 PM, Alexander Kapshuk > >>>>><alexander.kapshuk@gmail.com> wrote: > >>>>> > >>>>>>On 09/07/2013 09:35 PM, Canek Peláez Valdés wrote: > >>>>>> > >>>>>>>On Sat, Sep 7, 2013 at 1:24 PM, Alexander Kapshuk > >>>>>>><alexander.kapshuk@gmail.com> wrote: > >>>>>>> > >>>>>>>>On 09/07/2013 09:11 PM, Canek Peláez Valdés wrote: > >>>>>>>> > >>>>>>>>>On Sat, Sep 7, 2013 at 1:06 PM, Alexander Kapshuk > >>>>>>>>><alexander.kapshuk@gmail.com> wrote: > >>>>>>>>> > >>>>>>>>>>Howdy, > >>>>>>>>>> > >>>>>>>>>>Just compiled the new kernel [3.10.7], was about to edit my > >>>>>>>>>>/boot/grub/grub.conf, and found it missing: > >>>>>>>>>>box0 boot # pwd > >>>>>>>>>>/boot > >>>>>>>>>>box0 boot # ls -a > >>>>>>>>>>. .. kernel-3.10.7-gentoo kernel-3.8.13-gentoo > >>>>>>>>>> > >>>>>>>>>>What did I miss? > >>>>>>>>>> > >>>>>>>>>Do you have /boot in a separated partition? Did you mounted > >>>>>>>>>it? > >>>>>>>>> > >>>>>>>>>Nothing should touch /boot, AFAIK. > >>>>>>>>> > >>>>>>>>>Regards. > >>>>>>>>> > >>>>>>>>I do have '/boot' on a separate partition. If I understand it > >>>>>>>>correctly, > >>>>>>>>'/boot' gets mounted every time at system start-up, based on > >>>>>>>>'/etc/fstab', does it not? > >>>>>>>> > >>>>>>>By the contents of your fstab, it should... > >>>>>>> > >>>>>>> > >>>>>>>>box0 boot # cat /etc/fstab > >>>>>>>><snip> > >>>>>>>>/dev/sda1 /boot ext2 default,noatime 0 > >>>>>>>>2 > >>>>>>>>/dev/sda2 none swap sw 0 0 > >>>>>>>>/dev/sda3 / ext4 noatime 0 1 > >>>>>>>>/dev/sda5 /home ext4 noatime 0 > >>>>>>>>2 > >>>>>>>>/dev/cdrom /mnt/cdrom auto noauto,ro 0 0 > >>>>>>>> > >>>>>>>> > >>>>>>>>box0 boot # mount|grep /dev/sda > >>>>>>>>/dev/sda3 on / type ext4 (rw,noatime,data=ordered) > >>>>>>>>/dev/sda5 on /home type ext4 (rw,noatime) > >>>>>>>> > >>>>>>>,,,however mount says up there that it's not mounted. > >>>>>>> > >>>>>>> > >>>>>>>>box0 boot # fdisk -l /dev/sda > >>>>>>>> > >>>>>>>>Disk /dev/sda: 250.1 GB, 250059350016 bytes, 488397168 sectors > >>>>>>>>Units = sectors of 1 * 512 = 512 bytes > >>>>>>>>Sector size (logical/physical): 512 bytes / 512 bytes > >>>>>>>>I/O size (minimum/optimal): 512 bytes / 512 bytes > >>>>>>>>Disk identifier: 0x00000000 > >>>>>>>> > >>>>>>>> Device Boot Start End Blocks Id System > >>>>>>>>/dev/sda1 * 2048 67583 32768 83 Linux > >>>>>>>>/dev/sda2 67584 1116159 524288 82 Linux > >>>>>>>>swap / Solaris > >>>>>>>>/dev/sda3 1116160 43059199 20971520 83 Linux > >>>>>>>>/dev/sda4 43059200 488397167 222668984 5 > >>>>>>>>Extended > >>>>>>>>/dev/sda5 43061248 488397167 222667960 83 Linux > >>>>>>>> > >>>>>>>For some reason your /boot partition didn't get mounted. See the > >>>>>>>boot > >>>>>>>logs, and try to mounting by hand. Perhaps the fsck failed or it > >>>>>>>needs > >>>>>>>manual intervention. > >>>>>>> > >>>>>>>Regards. > >>>>>>> > >>>>>>Based on the 'dmesg' output below, EXT2-fs attempted to mount the > >>>>>>'/' > >>>>>>partition instead of the '/boot' one. > >>>>>> > >>>>>>box0 ~ # dmesg|grep 'EXT.*fs' > >>>>>>[ 2.444214] EXT2-fs (sda3): error: couldn't mount because of > >>>>>>unsupported optional features (240) > >>>>>>[ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to > >>>>>>feature > >>>>>>incompatibilities > >>>>>>[ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered > >>>>>>data > >>>>>>mode. Opts: (null) > >>>>>>[ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) > >>>>>>[ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered > >>>>>>data > >>>>>>mode. Opts: (null) > >>>>>> > >>>>>>Would that suggest a corrupted /boot/grub/grub.conf file? > >>>>>> > >>>>>Not necessarily. Can you manually mount /boot and see the contents > >>>>>of > >>>>>/boot/grub/grub.conf. > >>>>> > >>>>> > >>>>>>How did the system boot then? > >>>>>> > >>>>>If grub can see the boot partition (and is correctly configured > >>>>>and > >>>>>installed on the MBR), it can mount the root system without > >>>>>problems > >>>>>regardless of fstab. Do you use an initramfs? > >>>>> > >>>>>Regards. > >>>>> > >>>>'mount /boot' fails: > >>>>box0 ~ # mount /boot > >>>>mount: wrong fs type, bad option, bad superblock on /dev/sda1, > >>>> missing codepage or helper program, or other error > >>>> In some cases useful info is found in syslog - try > >>>> dmesg | tail or so > >>>> > >>>>No, I do not use 'initfamfs'. > >>>> > >>>>What do you suggest doing? > >>>> > >>>Mounting it by hand: > >>> > >>>mount -t ext2 /dev/sda1 /boot > >>> > >>>Regards. > >>> > >>That did the trick. Thanks very much. > >> > >>Here's my /boot/grub/grub.conf: > >>box0 linux # cat /boot/grub/grub.conf > >># This is a sample grub.conf for use with Genkernel, per the Gentoo > >>handbook > >># > >>http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2 > >># If you are not using Genkernel and you need help creating this > >>file, you > >># should consult the handbook. Alternatively, consult the > >>grub.conf.sample that > >># is included with the Grub documentation. > >> > >>default 0 > >>timeout 30 > >>splashimage=(hd0,0)/boot/grub/splash.xpm.gz > >> > >>title Gentoo Linux 3.8.13 > >>root (hd0,0) > >>kernel /boot/kernel-3.8.13-gentoo root=/dev/sda3 > >>#initrd /boot/initramfs-genkernel-x86-2.6.24-gentoo-r5 > >> > >>title Gentoo Linux 3.8.13 (rescue) > >>root (hd0,0) > >>kernel /boot/kernel-3.8.13-gentoo root=/dev/sda3 init=/bin/bb > >># vim:ft=conf: > >> > >>Is there anything that suggests as to why the /boot partition failed > >>to > >>mount at system start-up? > >> > >No, I don't see anything that. However, since you cannot "mount > >/boot", but doing it manually works, that means something is wrong > >with your fstab. Can I see it again? There is no /boot/etc/fstab, > >right? What does /boot/grub/device.map say? > > > >Regards. > > > Getting late. I'll have to chase it up tomorrow. Sorry. > > Thanks heaps for your help. > > I'll keep yourself and the list posted on the progress made. > > Hi, the problem is in your fstab: You try first to mount /boot before mounting root "/".... Cant work... Try this one: /dev/sda3 / ext4 noatime 0 1 /dev/sda1 /boot ext2 default,noatime 0 2 /dev/sda2 none swap sw 0 0 /dev/sda5 /home ext4 noatime 0 2 /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 best regards, mcc ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 21:31 ` meino.cramer @ 2013-09-08 15:20 ` Bruce Hill 2013-09-08 16:09 ` [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] [SOLVED] Alexander Kapshuk 0 siblings, 1 reply; 17+ messages in thread From: Bruce Hill @ 2013-09-08 15:20 UTC (permalink / raw To: gentoo-user On Sat, Sep 07, 2013 at 11:31:47PM +0200, meino.cramer@gmx.de wrote: > > the problem is in your fstab: > > You try first to mount /boot before mounting root "/".... > Cant work... > > Try this one: > /dev/sda3 / ext4 noatime 0 1 > /dev/sda1 /boot ext2 default,noatime 0 2 > /dev/sda2 none swap sw 0 0 > /dev/sda5 /home ext4 noatime 0 2 > /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 > > > best regards, > mcc That advice is wrong. See fstab example here: /dev/sda1 /boot ext2 noatime 1 2 /dev/sda2 / xfs noatime 0 1 /dev/sda3 none swap sw 0 0 /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 To the OP. Never <snip> part of a file asked for help. There might be something in the file unknown to you that is pertinent to the problem. You have "default" in your /etc/fstab line for /boot, when the option is actually "defaults". I haven't tested to see what difference that makes, but you should add the s to default anyway. See "man mount". Cheers, Bruce -- Happy Penguin Computers >') 126 Fenco Drive ( \ Tupelo, MS 38801 ^^ support@happypenguincomputers.com 662-269-2706 662-205-6424 http://happypenguincomputers.com/ A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing in e-mail? Don't top-post: http://en.wikipedia.org/wiki/Top_post#Top-posting ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] [SOLVED] 2013-09-08 15:20 ` Bruce Hill @ 2013-09-08 16:09 ` Alexander Kapshuk 0 siblings, 0 replies; 17+ messages in thread From: Alexander Kapshuk @ 2013-09-08 16:09 UTC (permalink / raw To: gentoo-user On 09/08/2013 06:20 PM, Bruce Hill wrote: > On Sat, Sep 07, 2013 at 11:31:47PM +0200, meino.cramer@gmx.de wrote: >> the problem is in your fstab: >> >> You try first to mount /boot before mounting root "/".... >> Cant work... >> >> Try this one: >> /dev/sda3 / ext4 noatime 0 1 >> /dev/sda1 /boot ext2 default,noatime 0 2 >> /dev/sda2 none swap sw 0 0 >> /dev/sda5 /home ext4 noatime 0 2 >> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 >> >> >> best regards, >> mcc > That advice is wrong. See fstab example here: > > /dev/sda1 /boot ext2 noatime 1 2 > /dev/sda2 / xfs noatime 0 1 > /dev/sda3 none swap sw 0 0 > /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 > > To the OP. Never <snip> part of a file asked for help. There might be > something in the file unknown to you that is pertinent to the problem. > > You have "default" in your /etc/fstab line for /boot, when the option is > actually "defaults". I haven't tested to see what difference that makes, but > you should add the s to default anyway. See "man mount". > > Cheers, > > Bruce Thanks for your input. Turns out /boot wouldn't mount at system start-up because I had 'default' instead of 'defaults' specified for /boot in /etc/fstab. Now /boot gets mounted automatically without any further ado. box0=; mount|grep ^/dev /dev/sda3 on / type ext4 (rw,noatime,data=ordered) /dev/sda1 on /boot type ext2 (rw,noatime) /dev/sda5 on /home type ext4 (rw,noatime) Thanks. ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 20:11 ` Canek Peláez Valdés 2013-09-07 20:15 ` Alexander Kapshuk @ 2013-09-07 21:43 ` gottlieb 1 sibling, 0 replies; 17+ messages in thread From: gottlieb @ 2013-09-07 21:43 UTC (permalink / raw To: gentoo-user On Sat, Sep 07 2013, Canek Peláez Valdés wrote: > No, I don't see anything that. However, since you cannot "mount > /boot", but doing it manually works, that means something is wrong > with your fstab. Can I see it again? There is no /boot/etc/fstab, > right? What does /boot/grub/device.map say? Below is what alexander said previously >>>> box0 boot # cat /etc/fstab >>>> <snip> >>>> /dev/sda1 /boot ext2 default,noatime 0 2 >>>> /dev/sda2 none swap sw 0 0 >>>> /dev/sda3 / ext4 noatime 0 1 >>>> /dev/sda5 /home ext4 noatime 0 2 >>>> /dev/cdrom /mnt/cdrom auto noauto,ro 0 0 >>>> >>>> >>>> box0 boot # mount|grep /dev/sda It all looks right ... unless the <snip> hides the error. Also as canek says, we are assuming there is no /boot/etc/fstab or something else shadowing the fstab above. allan ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-07 18:53 ` Alexander Kapshuk 2013-09-07 19:25 ` Canek Peláez Valdés @ 2013-09-09 9:59 ` Hinnerk van Bruinehsen 2013-09-09 11:44 ` Francisco Ares 1 sibling, 1 reply; 17+ messages in thread From: Hinnerk van Bruinehsen @ 2013-09-09 9:59 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1272 bytes --] On Sat, Sep 07, 2013 at 09:53:28PM +0300, Alexander Kapshuk wrote: > <SNIP> > Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/' > partition instead of the '/boot' one. > > box0 ~ # dmesg|grep 'EXT.*fs' > [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of > unsupported optional features (240) > [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature > incompatibilities > [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data > mode. Opts: (null) > [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) > [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data > mode. Opts: (null) > > Would that suggest a corrupted /boot/grub/grub.conf file? > > How did the system boot then? Most likely your /boot partition is not ext2 as stated in fstab and it therefore fails to mount (the unsupported optional features hint in that direction). Simply try to mount it by hand (mount /boot). If that fails try to mount it with option -t <filesystem> (for filesystem try ext3 or ext4). Your system still boots because grub is able to read the filesystem (which makes corruption unlikely). grub doesn't use fstab or the drivers in the kernelimage (which isn't even loaded at that point of time). WKR Hinnerk [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 490 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] 2013-09-09 9:59 ` Hinnerk van Bruinehsen @ 2013-09-09 11:44 ` Francisco Ares 0 siblings, 0 replies; 17+ messages in thread From: Francisco Ares @ 2013-09-09 11:44 UTC (permalink / raw To: gentoo-user [-- Attachment #1: Type: text/plain, Size: 1638 bytes --] 2013/9/9 Hinnerk van Bruinehsen <h.v.bruinehsen@fu-berlin.de> > On Sat, Sep 07, 2013 at 09:53:28PM +0300, Alexander Kapshuk wrote: > > <SNIP> > > Based on the 'dmesg' output below, EXT2-fs attempted to mount the '/' > > partition instead of the '/boot' one. > > > > box0 ~ # dmesg|grep 'EXT.*fs' > > [ 2.444214] EXT2-fs (sda3): error: couldn't mount because of > > unsupported optional features (240) > > [ 2.444736] EXT4-fs (sda3): couldn't mount as ext3 due to feature > > incompatibilities > > [ 2.481412] EXT4-fs (sda3): mounted filesystem with ordered data > > mode. Opts: (null) > > [ 9.448819] EXT4-fs (sda3): re-mounted. Opts: (null) > > [ 9.731383] EXT4-fs (sda5): mounted filesystem with ordered data > > mode. Opts: (null) > > > > Would that suggest a corrupted /boot/grub/grub.conf file? > > > > How did the system boot then? > > Most likely your /boot partition is not ext2 as stated in fstab and it > therefore fails to mount (the unsupported optional features hint in that > direction). > Simply try to mount it by hand (mount /boot). If that fails try to mount it > with option -t <filesystem> (for filesystem try ext3 or ext4). > > Your system still boots because grub is able to read the filesystem (which > makes corruption unlikely). grub doesn't use fstab or the drivers in the > kernelimage (which isn't even loaded at that point of time). > > WKR > Hinnerk > Could it be that the partition was formated using EXT2 extended properties from a previous kernel built with those options, and now this new kernel that has just been built, has those extended options missing? Just my 2 cents. Francisco [-- Attachment #2: Type: text/html, Size: 2335 bytes --] ^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2013-09-09 11:45 UTC | newest] Thread overview: 17+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2013-09-07 18:06 [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] Alexander Kapshuk 2013-09-07 18:11 ` Canek Peláez Valdés 2013-09-07 18:24 ` Alexander Kapshuk 2013-09-07 18:35 ` Canek Peláez Valdés 2013-09-07 18:53 ` Alexander Kapshuk 2013-09-07 19:25 ` Canek Peláez Valdés 2013-09-07 19:30 ` Alexander Kapshuk 2013-09-07 19:35 ` Canek Peláez Valdés 2013-09-07 19:41 ` Alexander Kapshuk 2013-09-07 20:11 ` Canek Peláez Valdés 2013-09-07 20:15 ` Alexander Kapshuk 2013-09-07 21:31 ` meino.cramer 2013-09-08 15:20 ` Bruce Hill 2013-09-08 16:09 ` [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] [SOLVED] Alexander Kapshuk 2013-09-07 21:43 ` [gentoo-user] re: can't find /boot/grub/grub.conf after kernel upgrade [3.10.7] gottlieb 2013-09-09 9:59 ` Hinnerk van Bruinehsen 2013-09-09 11:44 ` Francisco Ares
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox