LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grub install menu.lst missing (https://www.linuxquestions.org/questions/linux-newbie-8/grub-install-menu-lst-missing-912554/)

private_ryan0 11-08-2011 06:05 PM

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!

yancek 11-08-2011 06:52 PM

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.

kbp 11-08-2011 06:55 PM

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'

private_ryan0 11-08-2011 06:57 PM

Yes it is mounted.

vmlinuz-2.6.21.5 is running on the cf card which is being plugged into a Soekris board.

private_ryan0 11-08-2011 07:06 PM

/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?

yancek 11-08-2011 07:25 PM

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.

yancek 11-08-2011 07:41 PM

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?


All times are GMT -5. The time now is 10:44 PM.