LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-07-2009, 08:50 PM   #1
linus72
LQ Guru
 
Registered: Jan 2009
Location: Gordonsville-AKA Mayberry-Virginia
Distribution: Slack14.2/Many
Posts: 5,573

Rep: Reputation: 470Reputation: 470Reputation: 470Reputation: 470Reputation: 470
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, 08:58 PM   #2
rayfordj
Member
 
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).

Code:
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, 09:59 PM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Try the find as "find /grub/menu.lst"
 
Old 05-07-2009, 10:37 PM   #4
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
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.
 
  


Reply



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 02:22 PM
Boots to grub; can't FIND grub.conf, start1 pushtostart Fedora 10 10-09-2006 05:01 PM
grub can find grub.conf, how do i make it permanent? lankydenny Linux - Newbie 8 06-13-2006 06:47 PM
grub questions siegecraft4 Linux - Newbie 7 07-17-2004 10:56 PM
Grub Questions? veraMOB Linux - General 2 07-17-2003 04:13 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:09 AM.

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