LinuxQuestions.org
Visit Jeremy's Blog.
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 11-08-2011, 06:05 PM   #1
private_ryan0
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Rep: Reputation: Disabled
grub install menu.lst missing


hi

I need to edit the grub configuration file and as far as I know, menu.lst or grub.conf or grub.cfg should be installed but they're missing. Grub is being installed on a cf card.

/mnt/cf/boot/grub/ is the directory I am looking

I am using the command grub-install --root-directory=/mnt/cf /dev/sdb to install. Grub reports it is being installed successfully.

Grub version is 1.99~rc1-13ubuntu3

Should these config files definitely be installed? Can I manually generate the config file?

Any help is much appreciated!
 
Old 11-08-2011, 06:52 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,047

Rep: Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312
You do have the /mnt/cf directory created, correct?
Did you mount it?

Quote:
sudo mount /dev/sdb1 /mnt/cf
You did use sudo when you entered the command, right?
What's on the cf card, Ubuntu? some other OS?
Not really sure what you are trying to do here.
 
Old 11-08-2011, 06:55 PM   #3
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650Reputation: 650
I don't think you're using '--root-directory' as intended, you probably want to chroot into /mnt/cf first then just run 'grub-install /dev/sdb'
 
Old 11-08-2011, 06:57 PM   #4
private_ryan0
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
Yes it is mounted.

vmlinuz-2.6.21.5 is running on the cf card which is being plugged into a Soekris board.
 
Old 11-08-2011, 07:06 PM   #5
private_ryan0
LQ Newbie
 
Registered: Nov 2011
Posts: 3

Original Poster
Rep: Reputation: Disabled
/mnt/cf/grub/ contains

915resolution.mod gcry_tiger.mod password.mod
acpi.mod gcry_twofish.mod password_pbkdf2.mod
affs.mod gcry_whirlpool.mod pbkdf2.mod
afs_be.mod gettext.mod pci.mod
afs.mod gfxmenu.mod play.mod
aout.mod gfxterm.mod png.mod
ata.mod gptsync.mod probe.mod
ata_pthru.mod grldr.img pxeboot.img
at_keyboard.mod grubenv pxecmd.mod
befs_be.mod gzio.mod pxe.mod
befs.mod halt.mod raid5rec.mod
biosdisk.mod hashsum.mod raid6rec.mod
bitmap.mod hdparm.mod raid.mod
bitmap_scale.mod hello.mod read.mod
blocklist.mod help.mod reboot.mod
boot.img hexdump.mod regexp.mod
boot.mod hfs.mod reiserfs.mod
bsd.mod hfsplus.mod relocator.mod
btrfs.mod hwmatch.mod scsi.mod
bufio.mod iorw.mod search_fs_file.mod
cat.mod iso9660.mod search_fs_uuid.mod
cdboot.img jfs.mod search_label.mod
chain.mod jpeg.mod search.mod
cmostest.mod kernel.img sendkey.mod
cmp.mod keylayouts.mod serial.mod
command.lst keystatus.mod setjmp.mod
configfile.mod legacycfg.mod setpci.mod
cpio.mod linux16.mod sfs.mod
cpuid.mod linux.mod sleep.mod
crypto.lst lnxboot.img squash4.mod
crypto.mod loadenv.mod tar.mod
cs5536.mod locale terminal.lst
datehook.mod loopback.mod terminal.mod
date.mod lsacpi.mod terminfo.mod
datetime.mod lsapm.mod test_blockarg.mod
diskboot.img lsmmap.mod testload.mod
dm_nv.mod ls.mod test.mod
drivemap.mod lspci.mod tga.mod
echo.mod lvm.mod trig.mod
efiemu32.o mdraid09.mod true.mod
efiemu64.o mdraid1x.mod udf.mod
efiemu.mod memdisk.mod ufs1.mod
elf.mod memrw.mod ufs2.mod
example_functional_test.mod minicmd.mod uhci.mod
ext2.mod minix2.mod usb_keyboard.mod
extcmd.mod minix.mod usb.mod
fat.mod mmap.mod usbms.mod
font.mod moddep.lst usbserial_common.mod
fshelp.mod msdospart.mod usbserial_ftdi.mod
fs.lst multiboot2.mod usbserial_pl2303.mod
functional_test.mod multiboot.mod usbtest.mod
g2hdr.img nilfs2.mod vbe.mod
gcry_arcfour.mod normal.mod vga.mod
gcry_blowfish.mod ntfscomp.mod vga_text.mod
gcry_camellia.mod ntfs.mod video_bochs.mod
gcry_cast5.mod ntldr.mod video_cirrus.mod
gcry_crc.mod ohci.mod video_fb.mod
gcry_des.mod part_acorn.mod videoinfo.mod
gcry_md4.mod part_amiga.mod video.lst
gcry_md5.mod part_apple.mod video.mod
gcry_rfc2268.mod part_bsd.mod videotest.mod
gcry_rijndael.mod part_gpt.mod xfs.mod
gcry_rmd160.mod partmap.lst xnu.mod
gcry_seed.mod part_msdos.mod xnu_uuid.mod
gcry_serpent.mod part_sun.mod xzio.mod
gcry_sha1.mod part_sunpc.mod zfsinfo.mod
gcry_sha256.mod parttool.lst zfs.mod
gcry_sha512.mod parttool.mod

Does this indicate the grub installation command --root-directory=/mnt/cf /dev/sdb was successful?
 
Old 11-08-2011, 07:25 PM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,047

Rep: Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312
When you run the command and go to the /mnt/cd/ directory, do you see the /boot/grub/ directory and any files?
If you don't, it didn't work. If you do, you need to create the grub.cfg file. Just copy and modify one from the Ubuntu installation to fit whatever you have on the cf card. Some info on that here:

http://blog.lifebloodnetworks.com/?p=853

Usually after installing Grub to the mbr of a device, the instructions I've seen tell you to run update-grub. Running it from your hard drive install won't do anything for the Grub2 on the cf card.
 
Old 11-08-2011, 07:41 PM   #7
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 7,047

Rep: Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312Reputation: 1312
I hadn't seen your previous post before my last post. All the files you posted are in a regular Ubuntu /boot/grub/ directory. You are obviously missing the grub.cfg file and core.img although I don't think you would need core.img. If you have an installation of Ubuntu, you can look in its /boot/grub directory and see that you have only half the files in that directory. Did you just not post them all?

Read the link I posted above and check the link below, Section 12.3. Note at the end it tells you to reboot and run update-grub. Running update-grub from your system on the hard drive won't help. This type of installation is basically assuming an install on a hard drive. The pendrivelinux site has similar instructions.

https://help.ubuntu.com/community/Gr...y_LiveCD_Files

I put some iso files on a flash drive, installed grub2 with the method above and copied/modified grub.cfg from an Ubuntu install to suit my purposes. Should not be that difficult but I don't know what your intentions are?

Last edited by yancek; 11-08-2011 at 07:42 PM.
 
  


Reply


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
[SOLVED] [Urgent] default boot/grub/menu.lst and etc/fstab of HD install sfxpt Ubuntu 5 08-30-2010 05:44 PM
[SOLVED] lost grub menu after windows installation & forgot to backup menu.lst jesman1 Linux - Kernel 4 08-12-2010 11:57 PM
Pen Drive Install. Edit Grub menu.lst n8tgc DamnSmallLinux 3 01-04-2008 12:42 PM
Grub Menu doesn't reflect menu.lst file fatsheep Linux - Software 4 06-11-2007 01:29 PM
Grub 0.97 issues on slackware - grub-install is very slow, & updating menu.lst fails dieyouspammer Linux - Software 1 02-27-2006 01:06 PM


All times are GMT -5. The time now is 02:24 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration