LinuxQuestions.org
Help answer threads with 0 replies.
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 04-07-2013, 11:37 PM   #16
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled

Hi YellowApple,

I think the cmd is "grub2-install"

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.
 
Old 04-07-2013, 11:42 PM   #17
YellowApple
Member
 
Registered: Mar 2013
Location: Truckee, California, United States
Distribution: Slackware, OpenBSD, openSUSE, Android
Posts: 93

Rep: Reputation: 35
Quote:
Originally Posted by branddonchau View Post
Hi YellowApple,

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.
 
Old 04-08-2013, 12:08 AM   #18
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Hi YellowApple,

Yes, i did.

I think the cmd is "grup2-install"

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?

Brgds/Brandon Chau
 
Old 04-08-2013, 01:04 AM   #19
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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
 
Old 04-08-2013, 01:14 AM   #20
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Sure , please see below result , thanks.


Disk /dev/sda: 320.1 GB, 320072933376 bytes, 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x9aab9aab

Device Boot Start End Blocks Id System
/dev/sda1 * 6 43007999 21503997 7 HPFS/NTFS/exFAT
/dev/sda2 43008000 145408319 51200160 7 HPFS/NTFS/exFAT
/dev/sda3 145410048 146434047 512000 83 Linux
/dev/sda4 146434048 625142447 239354200 5 Extended
/dev/sda5 146436096 231442431 42503168 8e Linux LVM

Disk /dev/mapper/live-rw: 4294 MB, 4294967296 bytes, 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/live-osimg-min: 4294 MB, 4294967296 bytes, 8388608 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-usr: 21.0 GB, 20971520000 bytes, 40960000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-swap: 1572 MB, 1572864000 bytes, 3072000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-home: 10.5 GB, 10485760000 bytes, 20480000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/mapper/fedora-root: 10.5 GB, 10485760000 bytes, 20480000 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sdb: 16.0 GB, 16008609792 bytes, 31266816 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sdb1 32 31266815 15633392 7 HPFS/NTFS/exFAT


Brgds/Brandon Chau
 
Old 04-08-2013, 01:28 AM   #21
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Is sda3 supposed to be /boot?
If so you would install grub there.
can you also post output of
Quote:
cat/etc/fstab
 
Old 04-08-2013, 01:34 AM   #22
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
Is sda3 supposed to be /boot? Yes

i tried to run "grub2-install /dev/sda3"

but it said Path `/boot/grub2' is not readable by GRUB on boot. Installation is impossible. Aborting.

cat /etc/fstab

/dev/root / ext4 defaults,noatime 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
tmpfs /dev/shm tmpfs defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs defaults 0 0

Thanks/Brandon Chau
 
Old 04-08-2013, 01:47 AM   #23
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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.
 
Old 04-08-2013, 01:48 AM   #24
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Quote:
Path `/boot/grub2' is not readable by GRUB on boot. Installation is impossible. Aborting.
Have you tried
Quote:
grub-install /dev/sda3
 
Old 04-08-2013, 02:07 AM   #25
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Now you've inspired me to try a dual-boot installation in Virtualbox with lvm I will post when done.
 
Old 04-08-2013, 02:17 AM   #26
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
grub-install /dev/sda3 < yes , i tried , but it said "grub-install command not found"

haha , you can try it

I'm thinking should i install the F18 in a VM as like as you.

Thanks/Brandon Chau
 
Old 04-08-2013, 02:27 AM   #27
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
I will tell you though I have a dual-boot wins7 & debian no lvm nor /boot partition & it works just fine.
Debian will install normally

For what you are trying there is a video here.
http://www.noobslab.com/2011/10/inst...usb-after.html
 
Old 04-08-2013, 03:37 AM   #28
branddonchau
Member
 
Registered: Mar 2013
Posts: 36

Original Poster
Rep: Reputation: Disabled
I have seen the video already,

but i 'm not really understand the purpose of cmd

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.
 
Old 04-08-2013, 02:18 PM   #29
YellowApple
Member
 
Registered: Mar 2013
Location: Truckee, California, United States
Distribution: Slackware, OpenBSD, openSUSE, Android
Posts: 93

Rep: Reputation: 35
Quote:
Originally Posted by branddonchau View Post
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 ).
 
Old 04-09-2013, 02:52 PM   #30
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
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
 
  


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
problem with installing debian onto external hard drive/grub bootloader error "21" mf93 Linux - Software 5 07-22-2009 06:10 PM
Error occurred while installing bootloader macastor Linux - Newbie 1 10-20-2006 05:14 AM
Problem installing bootloader suvrat23 Linux - Newbie 1 07-15-2004 03:17 PM
re installing Bootloader ras123 Linux - Newbie 1 02-05-2004 01:00 PM
error while installing bootloader newlinuxman Linux - Newbie 7 09-16-2001 10:11 AM


All times are GMT -5. The time now is 09:11 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