Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
so i need to changed the command to "grub2-install /boot=/mnt /dev/sda" ? (Because my system installed in /boot"
it said "grub2-install copies GRUP imgage into /boot/grub2, and uses grub-setup to install grub into the boot sector
Usage: grub2-install [OPTION] [INSTALL_DEVICE]
Install GRUB on your drive.
-h, --help print this message and exit
-v, --version print the version information and exit
--modules=MODULES pre-load specified modules MODULES
--boot-directory=DIR install GRUB images under the directory DIR/grub2
instead of the /boot/grub2 directory
--target=TARGET install GRUB for TARGET platform
[default=current]
--directory=DIR use GRUB images from DIR. Takes precedence
over target
--grub-setup=FILE use FILE as grub-setup
--grub-mkimage=FILE use FILE as grub-mkimage
--grub-mkrelpath=FILE use FILE as grub-mkrelpath
--grub-probe=FILE use FILE as grub-probe
--allow-floppy make the drive also bootable as floppy (default
for fdX devices). May break on some BIOSes.
--recheck delete device map if it already exists
--force install even if problems are detected
--force-file-id
So what cmd should i run to install the grub2 now?
Brgds/Brandon Chau
Last edited by branddonchau; 04-08-2013 at 04:34 AM.
after i got the error message "Installing bootloader error" , i reboot the PC and login as live user,
grub-install --root-partition=/mnt /dev/sda <===grub-install command not found
Brgds/Brandon Chau
You did "sudo su" first, right? You'll have to be root either way.
Else, try grub2-install with the same parameters; the live CD might just not have it aliased. I know Anaconda uses grub2-install internally, so that should work.
then i changed the cmd to "grub2-install /boot/grub2=/mnt /dev/sda" (Because my system installed in /boot"
it said "grub2-install copies GRUP imgage into /boot/grub2, and uses grub-setup to install grub into the boot sector
Usage: grub2-install [OPTION] [INSTALL_DEVICE]
Install GRUB on your drive.
-h, --help print this message and exit
-v, --version print the version information and exit
--modules=MODULES pre-load specified modules MODULES
--boot-directory=DIR install GRUB images under the directory DIR/grub2
instead of the /boot/grub2 directory
--target=TARGET install GRUB for TARGET platform
[default=current]
--directory=DIR use GRUB images from DIR. Takes precedence
over target
--grub-setup=FILE use FILE as grub-setup
--grub-mkimage=FILE use FILE as grub-mkimage
--grub-mkrelpath=FILE use FILE as grub-mkrelpath
--grub-probe=FILE use FILE as grub-probe
--allow-floppy make the drive also bootable as floppy (default
for fdX devices). May break on some BIOSes.
--recheck delete device map if it already exists
--force install even if problems are detected
--force-file-id
So what cmd should i run to install the grub2 now?
You can obviously boot the live-cd can you post the output of
Quote:
fdisk -l
Looking back at how you wanted to install & if you did install there would be no boot partition also if you did create a separate boot partition you would use grub-install /dev/sda? the question mark would changed to a number something like sda1 sda2 sda3
I am sure that we are on right path you may have to wait for someone that is a little more experienced with this type of install.
I have never installed to an lvm, but I do know that in order to install/reinstall grub you will have to mount /, /boot & other devices, then chroot, before you can install grub?
LFS & gentoo have that type of documentation in their installation guides. I will search some more to assist you.
sudo mount /dev/sdax /mnt/boot
sudo mount --bind /dev /mnt/dev/
Actually , system haven't the folder /mnt/boot and /mnt/dev , so i need to create it manually? Thanks.
p.s i follow the steps and tried , but when i run the cmd "grub2-install /dev/sda"
screen appearing "Path `/boot/grub2' is not readable by GRUB on boot. Installation is impossible. Aborting." again =.=
Brgds/Brandon Chau
Last edited by branddonchau; 04-08-2013 at 03:50 AM.
so i need to changed the command to "grub2-install /boot=/mnt /dev/sda" ? (Because my system installed in /boot"
Nope. It's choking on the "/boot=/mnt" blurb, because grub2-install doesn't understand that. I think you want "grub2-install --boot-partition=/mnt /dev/sda" and report the errors of that command, if any (I didn't realize you were overcomplicating things with LVM ).
Ok I finally installed fedora 18 in VB dual-booted with winsxp on 20Gig vhd, 10 Gigs prepartitioned with the same scheme as the 1 used by you.
To proceed with install I had to select the disk & partition type then, "Reclaim Space", where I had to delete the 2 partitions & tried to recreate them & the installer complained & didn't proceed.
Selected Reclaim again clicked done, then let installer do it automatically after it was done it had installed lvm, /boot partition & grub. Now I just have to get winsxp in grub menu
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.