Linux, FreeBSD, Juniper, Cisco / Network security articles and troubleshooting guides

FAQ
It is currently Sun Dec 10, 2023 6:46 am


Red Hat Certified Engineer/Technician RHCE/RHCT topics and questions

Author Message
debuser
  Post  Post subject: Linux GRUB and grub.conf troubleshooting - part2  |  Posted: Mon Jan 04, 2010 11:04 am

Joined: Thu Aug 06, 2009 2:48 am
Posts: 105

Offline
 

Linux GRUB and grub.conf troubleshooting - part2

Coming in contact for the first time with a server that fails to boot (from grub configuration errors) can be difficult, if you don't have a copy of the grub.conf at hand.

List available disks at grub prompt
Code:
grub> find (hd        -->TAB key
  Possible disks are:   hd0 hd1


List available disk partition at grub prompt
Code:
grub> find (hd0,        -->TAB key
  Partition num: 0, Filesystem type is ext2fs, partition type is 0x83
  ...
  Partition num: 2, Filesystem type is ext2fs, partition type is 0x83


The above is the INcomplete grub find command. You can also use it to find a grub.conf on the available partitions on each disk.

An example of find command that will find a grub.conf file:
Code:
grub> find (hd0,0)/boot/grub/grub.conf
   (hd0,0)
   (hd0,1)
   (hd0,2)


An example of find command that will NOT find a grub.conf file:
Code:
grub> find (hd0,0)/boot/grub/grub.conf
   Error 15: File not found


Once I know on which disk and partition the grub.conf file resides, I can cat it to have an idea of the GRUB boot configuration:
Code:
grub> cat (hd0,0)/boot/grub/grub.conf
   (hd0,0)
   (hd0,1)
   (hd0,2)


The above command works mostly as the Linux cat command and it will display the contents of the /boot/grub/grub.conf file on the fist partition from the first disk.





Top
debuser
Post  Post subject: Re: Linux GRUB and grub.conf troubleshooting - part2  |  Posted: Mon Jan 04, 2010 12:20 pm

Joined: Thu Aug 06, 2009 2:48 am
Posts: 105

Offline
To manage to boot the system from GRUB command line, issue the root/kernel/initrd commands in this sequence, as in the grub.conf file in the stanza that interests you (usually, previous running kernel).


Top
Display posts from previous:  Sort by  
Print view

Topics related to - "Linux GRUB and grub.conf troubleshooting - part2"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Linux GRUB and grub.conf troubleshooting - part1

debuser

0

2240

Mon Jan 04, 2010 10:37 am

debuser View the latest post

There are no new unread posts for this topic. Disable IPv6 in Red Hat Enterprise Linux 5

debuser

2

14689

Thu Feb 24, 2011 3:47 pm

Haryer View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC - 5 hours [ DST ]



phpBB SEO