Re: [CentOS] grub.conf

2015-08-26 Thread Sachin Gupta
One more question.
I am using following grub.conf.

title  Linux Init Break
kernel /vmlinuz root=/dev/sda6 init=/bin/sh
initrd /initrd.gz

Control comes to the shell command prompt. But the filesystem I am seeing
is not initrd filesystem.
Is it possible to access initrd file system ?

Thanks
Sachin

On Tue, Aug 25, 2015 at 8:24 PM, Barry Brimer  wrote:

>
>
> On Tue, 25 Aug 2015, Sachin Gupta wrote:
>
> Thank you so much!!!
>> It worked.
>>
>> On Tue, Aug 25, 2015 at 8:04 PM, Barry Brimer  wrote:
>>
>> Thanks for reply.
>>>
>>>>
>>>> I replaced break=y with init=/bin/sh.
>>>> In that case case system just hangs with the following message.
>>>> "Freeing unused kernel memory : 400k freed".
>>>>
>>>> Thanks!!
>>>> Sachin
>>>>
>>>> On Tue, Aug 25, 2015 at 7:16 PM, Barry Brimer  wrote:
>>>>
>>>> My grub.conf is as following.
>>>>
>>>>>
>>>>>
>>>>>> title  Linux Init Break
>>>>>> kernel /vmlinuz root=/dev/sda6 ro rootwait break=y
>>>>>> initrd /initrd.gz
>>>>>>
>>>>>> What I expect is by adding *break=y* to cmdline,
>>>>>> init will pause early in the boot process and launch an
>>>>>> interactive sh shell which can be used for troubleshooting purposes.
>>>>>>
>>>>>> But kernel is disregarding break=y. And it loads up without
>>>>>> launching  sh shell.
>>>>>>
>>>>>> Is it the right way to launch interactive shell ?
>>>>>>
>>>>>>
>>>>>> I would remove the break=y and replace it with init=/bin/sh
>>>>>
>>>>> What version of CentOS are you running?
>>>>>
>>>>>
>>>> You didn't mention what version of CentOS you are running. I also
>>> realized
>>> that this kernel line looks a bit non-standard. What is the purpose of
>>> the
>>> rootwait parameter in this context? Have you tried without it but
>>> including
>>> init=/bin/sh ?
>>>
>>
> You're welcome. Glad I could help.
>
> Barry
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] grub.conf

2015-08-25 Thread Sachin Gupta
Thank you so much!!!
It worked.

On Tue, Aug 25, 2015 at 8:04 PM, Barry Brimer  wrote:

> Thanks for reply.
>>
>> I replaced break=y with init=/bin/sh.
>> In that case case system just hangs with the following message.
>> "Freeing unused kernel memory : 400k freed".
>>
>> Thanks!!
>> Sachin
>>
>> On Tue, Aug 25, 2015 at 7:16 PM, Barry Brimer  wrote:
>>
>> My grub.conf is as following.
>>>

 title  Linux Init Break
 kernel /vmlinuz root=/dev/sda6 ro rootwait break=y
 initrd /initrd.gz

 What I expect is by adding *break=y* to cmdline,
 init will pause early in the boot process and launch an
 interactive sh shell which can be used for troubleshooting purposes.

 But kernel is disregarding break=y. And it loads up without
 launching  sh shell.

 Is it the right way to launch interactive shell ?


>>> I would remove the break=y and replace it with init=/bin/sh
>>>
>>> What version of CentOS are you running?
>>>
>>
> You didn't mention what version of CentOS you are running. I also realized
> that this kernel line looks a bit non-standard. What is the purpose of the
> rootwait parameter in this context? Have you tried without it but including
> init=/bin/sh ?
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] grub.conf

2015-08-25 Thread Sachin Gupta
Thanks for reply.

I replaced break=y with init=/bin/sh.
In that case case system just hangs with the following message.
"Freeing unused kernel memory : 400k freed".

Thanks!!
Sachin

On Tue, Aug 25, 2015 at 7:16 PM, Barry Brimer  wrote:

> My grub.conf is as following.
>>
>> title  Linux Init Break
>> kernel /vmlinuz root=/dev/sda6 ro rootwait break=y
>> initrd /initrd.gz
>>
>> What I expect is by adding *break=y* to cmdline,
>> init will pause early in the boot process and launch an
>> interactive sh shell which can be used for troubleshooting purposes.
>>
>> But kernel is disregarding break=y. And it loads up without
>> launching  sh shell.
>>
>> Is it the right way to launch interactive shell ?
>>
>
> I would remove the break=y and replace it with init=/bin/sh
>
> What version of CentOS are you running?
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] grub.conf

2015-08-25 Thread Sachin Gupta
Hello Everyone,


My grub.conf is as following.

title  Linux Init Break
kernel /vmlinuz root=/dev/sda6 ro rootwait break=y
initrd /initrd.gz

What I expect is by adding *break=y* to cmdline,
init will pause early in the boot process and launch an
interactive sh shell which can be used for troubleshooting purposes.

But kernel is disregarding break=y. And it loads up without
launching  sh shell.

Is it the right way to launch interactive shell ?

Thanks

Sachin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Grub legacy on Centos 7

2015-08-21 Thread Sachin Gupta
Hello Everyone,

I am trying to use GRUB legacy with Centos 7. And it is giving me following
error.

systemd-fsck: fsck error 2(no such file or directory) while executing
fsck.ext3 for /dev/sda5
mount:unknown file system type 'ext3'.

Has anyone seen this error ?


Thanks
Sachin



On Wed, Aug 19, 2015 at 6:51 PM, Ian Pilcher  wrote:

> On 08/16/2015 04:18 PM, Sachin Gupta wrote:
>
>> We have centos6  server. And we are planning to upgrade it to Centos7.And
>> GRUB 2 needs a new bios grub partition. Creating a new partition is too
>> much risky. I am wondering if it is possible to replace Grub2 with Grub
>> legacy on Centos7 machine?
>>
>
> It is definitely possible to use GRUB legacy with CentOS 7.  I do it on
> several systems.  Note that there is a bug in the current EL 7 version
> of grubby which causes the initrd line to not be added to the stanza of
> newly installed kernels.
>
> Always check /etc/grub.conf before rebooting to a newly installed
> kernel, particularly when doing so remotely.  :-/
>
>
> --
> 
> Ian Pilcher arequip...@gmail.com
>  "I grew up before Mark Zuckerberg invented friendship" 
> 
>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Centos7 Kernel Panic

2015-08-19 Thread Sachin Gupta
Guys,

I am a newbie.
I am trying to load kernel from a DVD. How do I figure out where my root
filesystem mounted ?

Thanks
Sachin

On Wed, Aug 19, 2015 at 11:51 AM, Gordon Messmer 
wrote:

> On 08/19/2015 11:20 AM, Sachin Gupta wrote:
>
>> I have prepared following isolinux.cfg.
>>
>> default linux
>> label linux
>>kernel /vmlinuz
>>append initrd=/initrd.gz
>>
>> But kernel panics with the standard message 'Kernel panic - not syncing:
>> No
>> init found'.
>>
>
> You haven't told Linux where to find a root filesystem.  Beyond that, we'd
> need more information about what you're trying to accomplish, in order to
> offer useful advice.
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Centos7 Kernel Panic

2015-08-19 Thread Sachin Gupta
Hello Everyone,

I have prepared following isolinux.cfg.

default linux
label linux
  kernel /vmlinuz
  append initrd=/initrd.gz

But kernel panics with the standard message 'Kernel panic - not syncing: No
init found'.
Linux kernel version is 3.10.

I tried to read the init.txt too.But could not figure out the issue.

Can you please help me figure out the problem ?

Thanks
Sachin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] Grub legacy on Centos 7

2015-08-16 Thread Sachin Gupta
Hello Everyone,

We have centos6  server. And we are planning to upgrade it to Centos7.And
GRUB 2 needs a new bios grub partition. Creating a new partition is too
much risky. I am wondering if it is possible to replace Grub2 with Grub
legacy on Centos7 machine?

Thanks!!
Sachin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] grub-install

2015-08-14 Thread Sachin Gupta
Hello Everyone,

I am a newbie. When I try to install GRUB2 on centos 5.2 system, I get
following error.

centos5: grub-install  /dev/sda
//sbin/grub-setup: warn: This GPT partition label has no BIOS Boot
Partition; embedding won't be possible!.
//sbin/grub-setup: warn: Embedding is not possible.  GRUB can only be
installed in this setup by using blocklists.  However, blocklists are
UNRELIABLE and their use is discouraged..
//sbin/grub-setup: error: will not proceed with blocklists.

Can you please help me figure out the problem ?

Thanks
Sachin
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos