Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 05-07-2009, 09:50 PM   #1
LQ Guru
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: PocketWriter/MinimalX
Posts: 5,087

Rep: Reputation: 337Reputation: 337Reputation: 337Reputation: 337
grub> find Questions...

I tried the command "grub> find /boot/grub/menu.lst" and get nothing..

Am I doing the command wrong?
I am in Ubuntu-8.04

I was trying to use grub to see what grub identifies my usb as.
I at least expected it to find something...

Tried find (HD0,0) /boot/grub/menu.lst ,etc,etc

How do I find out how grub can identify my usb?
Old 05-07-2009, 09:58 PM   #2
Registered: Feb 2008
Location: Texas
Distribution: Fedora, RHEL, CentOS
Posts: 488

Rep: Reputation: 78
hope this helps...
when i've had little success with grub's find command, i resort to grub's cat to help me locate what i'm after (typically the /boot filesystem to try to manually bring up a problem system).

grub> cat (hd0,0)/<tab><tab>
grub> cat (hd0,1)/<tab><tab>
grub> cat (hd1,0)/<tab><tab>
and so on and so forth...
the double-tab will list files if it can read the filesystem on that particular partition similar to bash tab completion
Old 05-07-2009, 10:59 PM   #3
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,945

Rep: Reputation: 1887Reputation: 1887Reputation: 1887Reputation: 1887Reputation: 1887Reputation: 1887Reputation: 1887Reputation: 1887Reputation: 1887Reputation: 1887Reputation: 1887
Try the find as "find /grub/menu.lst"
Old 05-07-2009, 11:37 PM   #4
LQ Guru
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,928

Rep: Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269Reputation: 1269
I'm not sure how you used the command but, in Ubuntu you should do "sudo grub", prompted for and enter password, type "grub" get the grub prompt (grub>) and then enter the find command you have above.

You can use the geometry command from the grub prompt to get drive/partition information as seen by grub; example:

grub> geometry (hd0)
drive 0x80: C/H/S = 38792/16/63, The number of sectors = 39102336, /dev/hda
Partition num: 0, Filesystem type is fat, partition type 0xb
Partition num: 2, Filesystem type is ext2fs, partition type 0x83
Partition num: 3, Filesystem type is ext2fs, partition type 0x83
Partition num: 4, Filesystem type unknown, partition type 0x7

If you have multiple hard drives, run the geometry command and increase the number each time until you have listed all drives.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub questions zdenisl Linux - Software 2 10-21-2006 03:22 PM
Boots to grub; can't FIND grub.conf, start1 pushtostart Fedora 10 10-09-2006 06:01 PM
grub can find grub.conf, how do i make it permanent? lankydenny Linux - Newbie 8 06-13-2006 07:47 PM
grub questions siegecraft4 Linux - Newbie 7 07-17-2004 11:56 PM
Grub Questions? veraMOB Linux - General 2 07-17-2003 05:13 PM

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration