LVM - failed to install bootloader The 2019 Stack Overflow Developer Survey Results Are InRecreated VG. Is it possible to add existing LVs to it?Device names for logical volumesSoftware RAID 10 + LVM on mixed drives, sector alignment?How to mount sdb directly or using LVM partitions on sda?Lost space in LVMXen domU not resizing diskExtend partition using LVMMounting a 4tb lvm in Centos 7 keeps saying not enough space on deviceOptimal LVM Setup to Keep Adding Space to Single MountpointLVM: PV missing after reboot
How to notate time signature switching consistently every measure
Is it ethical to upload a automatically generated paper to a non peer-reviewed site as part of a larger research?
Keeping a retro style to sci-fi spaceships?
Can a flute soloist sit?
APIPA and LAN Broadcast Domain
What is this business jet?
What's the name of these plastic connectors
Is Cinnamon a desktop environment or a window manager? (Or both?)
Cooking pasta in a water boiler
Is it okay to consider publishing in my first year of PhD?
Why can't devices on different VLANs, but on the same subnet, communicate?
Dropping list elements from nested list after evaluation
Old scifi movie from the 50s or 60s with men in solid red uniforms who interrogate a spy from the past
Is it possible for absolutely everyone to attain enlightenment?
What does Linus Torvalds mean when he says that Git "never ever" tracks a file?
The phrase "to the numbers born"?
Did Scotland spend $250,000 for the slogan "Welcome to Scotland"?
Star Trek - X-shaped Item on Regula/Orbital Office Starbases
I am an eight letter word. What am I?
Can there be female White Walkers?
Geography at the pixel level
Did the UK government pay "millions and millions of dollars" to try to snag Julian Assange?
Falsification in Math vs Science
How can I add encounters in the Lost Mine of Phandelver campaign without giving PCs too much XP?
LVM - failed to install bootloader
The 2019 Stack Overflow Developer Survey Results Are InRecreated VG. Is it possible to add existing LVs to it?Device names for logical volumesSoftware RAID 10 + LVM on mixed drives, sector alignment?How to mount sdb directly or using LVM partitions on sda?Lost space in LVMXen domU not resizing diskExtend partition using LVMMounting a 4tb lvm in Centos 7 keeps saying not enough space on deviceOptimal LVM Setup to Keep Adding Space to Single MountpointLVM: PV missing after reboot
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I have Mint 16 installed on an LVM system. I originally had 3 logical volumes: lvswap, lvrootone, and lvstorage, with Mint 16 installed on lvrootone. I was hoping to use this scheme to upgrade and try new distros by adding logical volumes, but hadn't done so until now, when I tried to install Mint17.
While running under Mint 16 I created another logical volume, lvroottwo. I ran the Mint17 installer, choosing 'something else' and asked that Mint17's root file system be installed on lvroottwo. The installation proceeded but ended with (something like): 'failed to install bootloader'. I was given the option of trying to have bootloader installed onto sda, which I chose, but that failed too.
I gave up, exited the installer and rebooted. It booted to the old Mint 16 as usual. I can mount lvroottwo and see the Mint17 installation there. What can I do to be able to boot to Mint17 or, preferably, to have a choice? What is the 'proper' way to use LVM in order to try new installations? As you can tell I haven't had any prior experience with the bootloader or anything concerning the boot process.
Thanks for any help.
Pavel (his answer and comments are below) asks for details on how I tried to get it working. I didn't try anything. I don't know anything about boot or boot tools and did not know what to try. My question is: what should I try?
Pavel also requested description of disk layout. Output from fdisk -l is below.
(Please note that sdb is not being used. I added it to the volume group as a physical volume and tried to use it as a raid1 type mirror to one of the logical volumes on sda. But then the system would not boot. So using a live CD I removed the mirror and system booted again. I think that for this current question my experience with sdb could be ignored, but I need to learn about the boot process so I mention it here.)
output from fdisk -l:
Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000d8478
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 976773119 488385536 83 Linux
Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63
sectors/track, 60801 cylinders, total 976773168 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvswap: 8589 MB, 8589934592 bytes 255 heads,
63 sectors/track, 1044 cylinders, total 16777216 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvrootone: 26.8 GB, 26843545600 bytes 255
heads, 63 sectors/track, 3263 cylinders, total 52428800 sectors Units
= sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvstorage: 375.8 GB, 375809638400 bytes 255
heads, 63 sectors/track, 45689 cylinders, total 734003200 sectors
Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical):
512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096
bytes Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvroottwo: 26.8 GB, 26843545600 bytes 255
heads, 63 sectors/track, 3263 cylinders, total 52428800 sectors Units
= sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
lvm boot-loader
add a comment |
I have Mint 16 installed on an LVM system. I originally had 3 logical volumes: lvswap, lvrootone, and lvstorage, with Mint 16 installed on lvrootone. I was hoping to use this scheme to upgrade and try new distros by adding logical volumes, but hadn't done so until now, when I tried to install Mint17.
While running under Mint 16 I created another logical volume, lvroottwo. I ran the Mint17 installer, choosing 'something else' and asked that Mint17's root file system be installed on lvroottwo. The installation proceeded but ended with (something like): 'failed to install bootloader'. I was given the option of trying to have bootloader installed onto sda, which I chose, but that failed too.
I gave up, exited the installer and rebooted. It booted to the old Mint 16 as usual. I can mount lvroottwo and see the Mint17 installation there. What can I do to be able to boot to Mint17 or, preferably, to have a choice? What is the 'proper' way to use LVM in order to try new installations? As you can tell I haven't had any prior experience with the bootloader or anything concerning the boot process.
Thanks for any help.
Pavel (his answer and comments are below) asks for details on how I tried to get it working. I didn't try anything. I don't know anything about boot or boot tools and did not know what to try. My question is: what should I try?
Pavel also requested description of disk layout. Output from fdisk -l is below.
(Please note that sdb is not being used. I added it to the volume group as a physical volume and tried to use it as a raid1 type mirror to one of the logical volumes on sda. But then the system would not boot. So using a live CD I removed the mirror and system booted again. I think that for this current question my experience with sdb could be ignored, but I need to learn about the boot process so I mention it here.)
output from fdisk -l:
Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000d8478
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 976773119 488385536 83 Linux
Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63
sectors/track, 60801 cylinders, total 976773168 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvswap: 8589 MB, 8589934592 bytes 255 heads,
63 sectors/track, 1044 cylinders, total 16777216 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvrootone: 26.8 GB, 26843545600 bytes 255
heads, 63 sectors/track, 3263 cylinders, total 52428800 sectors Units
= sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvstorage: 375.8 GB, 375809638400 bytes 255
heads, 63 sectors/track, 45689 cylinders, total 734003200 sectors
Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical):
512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096
bytes Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvroottwo: 26.8 GB, 26843545600 bytes 255
heads, 63 sectors/track, 3263 cylinders, total 52428800 sectors Units
= sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
lvm boot-loader
add a comment |
I have Mint 16 installed on an LVM system. I originally had 3 logical volumes: lvswap, lvrootone, and lvstorage, with Mint 16 installed on lvrootone. I was hoping to use this scheme to upgrade and try new distros by adding logical volumes, but hadn't done so until now, when I tried to install Mint17.
While running under Mint 16 I created another logical volume, lvroottwo. I ran the Mint17 installer, choosing 'something else' and asked that Mint17's root file system be installed on lvroottwo. The installation proceeded but ended with (something like): 'failed to install bootloader'. I was given the option of trying to have bootloader installed onto sda, which I chose, but that failed too.
I gave up, exited the installer and rebooted. It booted to the old Mint 16 as usual. I can mount lvroottwo and see the Mint17 installation there. What can I do to be able to boot to Mint17 or, preferably, to have a choice? What is the 'proper' way to use LVM in order to try new installations? As you can tell I haven't had any prior experience with the bootloader or anything concerning the boot process.
Thanks for any help.
Pavel (his answer and comments are below) asks for details on how I tried to get it working. I didn't try anything. I don't know anything about boot or boot tools and did not know what to try. My question is: what should I try?
Pavel also requested description of disk layout. Output from fdisk -l is below.
(Please note that sdb is not being used. I added it to the volume group as a physical volume and tried to use it as a raid1 type mirror to one of the logical volumes on sda. But then the system would not boot. So using a live CD I removed the mirror and system booted again. I think that for this current question my experience with sdb could be ignored, but I need to learn about the boot process so I mention it here.)
output from fdisk -l:
Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000d8478
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 976773119 488385536 83 Linux
Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63
sectors/track, 60801 cylinders, total 976773168 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvswap: 8589 MB, 8589934592 bytes 255 heads,
63 sectors/track, 1044 cylinders, total 16777216 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvrootone: 26.8 GB, 26843545600 bytes 255
heads, 63 sectors/track, 3263 cylinders, total 52428800 sectors Units
= sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvstorage: 375.8 GB, 375809638400 bytes 255
heads, 63 sectors/track, 45689 cylinders, total 734003200 sectors
Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical):
512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096
bytes Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvroottwo: 26.8 GB, 26843545600 bytes 255
heads, 63 sectors/track, 3263 cylinders, total 52428800 sectors Units
= sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
lvm boot-loader
I have Mint 16 installed on an LVM system. I originally had 3 logical volumes: lvswap, lvrootone, and lvstorage, with Mint 16 installed on lvrootone. I was hoping to use this scheme to upgrade and try new distros by adding logical volumes, but hadn't done so until now, when I tried to install Mint17.
While running under Mint 16 I created another logical volume, lvroottwo. I ran the Mint17 installer, choosing 'something else' and asked that Mint17's root file system be installed on lvroottwo. The installation proceeded but ended with (something like): 'failed to install bootloader'. I was given the option of trying to have bootloader installed onto sda, which I chose, but that failed too.
I gave up, exited the installer and rebooted. It booted to the old Mint 16 as usual. I can mount lvroottwo and see the Mint17 installation there. What can I do to be able to boot to Mint17 or, preferably, to have a choice? What is the 'proper' way to use LVM in order to try new installations? As you can tell I haven't had any prior experience with the bootloader or anything concerning the boot process.
Thanks for any help.
Pavel (his answer and comments are below) asks for details on how I tried to get it working. I didn't try anything. I don't know anything about boot or boot tools and did not know what to try. My question is: what should I try?
Pavel also requested description of disk layout. Output from fdisk -l is below.
(Please note that sdb is not being used. I added it to the volume group as a physical volume and tried to use it as a raid1 type mirror to one of the logical volumes on sda. But then the system would not boot. So using a live CD I removed the mirror and system booted again. I think that for this current question my experience with sdb could be ignored, but I need to learn about the boot process so I mention it here.)
output from fdisk -l:
Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000d8478
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 976773119 488385536 83 Linux
Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63
sectors/track, 60801 cylinders, total 976773168 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvswap: 8589 MB, 8589934592 bytes 255 heads,
63 sectors/track, 1044 cylinders, total 16777216 sectors Units =
sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512
bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvrootone: 26.8 GB, 26843545600 bytes 255
heads, 63 sectors/track, 3263 cylinders, total 52428800 sectors Units
= sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvstorage: 375.8 GB, 375809638400 bytes 255
heads, 63 sectors/track, 45689 cylinders, total 734003200 sectors
Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical):
512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096
bytes Disk identifier: 0x00000000
Disk /dev/mapper/vgpender-lvroottwo: 26.8 GB, 26843545600 bytes 255
heads, 63 sectors/track, 3263 cylinders, total 52428800 sectors Units
= sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000
lvm boot-loader
lvm boot-loader
edited Jul 5 '14 at 20:37
lkjre
asked Jul 1 '14 at 0:15
lkjrelkjre
212
212
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You should always have a simple partitioning scheme that leaves space for the boot loader, good old DOS MBR works the best for this purpose plus guards the disk from being treated as unformatted when attached to windows machine. Even the fancy new GPT format uses MBR as the basis.
The GRUB2 bootloader is capable of booting from stuff like RAID and LVM and combination of those. But it needs a place to install itself, which typically consists of a code block in MBR and more code in the gap between MBR and the first partition. Current versions of fdisk and similar tools already create a large enough gap (the first partition typically starts on a megabyte boundary).
If you're using just one disk, you can format it using the DOS disklable (o command in fdisk) and create one partition spanning the disk space (n command in fdisk, p for primary, confirm the default start and end). Then format the partition as LVM physical volume, and the rest you know already.
When multiple disks are used, the partition is typically formatted for RAID instead of LVM, a raid array is assembled and formatted as LVM physical volume and the rest is the same again.
Thank you Pavel. I guess you're suggesting what I could have done, or what I should do now if I were to start from scratch and reinstall on a clean disk. But is there anything I can do now, with what I've got, to be able to boot into the new system on lvroottwo? Thanks.
– lkjre
Jul 1 '14 at 20:33
If you can't install GRUB to the hard disk because of its format, you would have to use a different boot media like another small disk, usb drive or whatever booting method your firmware supports.
– Pavel Šimerda
Jul 3 '14 at 10:25
Do I understand correctly that you are capable of booting the original system but not the new system? If that is the case, my answer is incomplete and you might want to tell me how to boot it.
– Pavel Šimerda
Jul 3 '14 at 10:27
A careful description of your disk layout would be handy, too.
– Pavel Šimerda
Jul 3 '14 at 10:28
Pavel:Yes, I can boot into the original system, but not the new system. And when I boot into the original system I can then mount the logical volume on which the new system was installed, and can confirm that it was indeed installed. I will try to provide tomorrow a detailed description of disk layout. Thanks.
– lkjre
Jul 4 '14 at 23:44
|
show 1 more comment
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f140064%2flvm-failed-to-install-bootloader%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You should always have a simple partitioning scheme that leaves space for the boot loader, good old DOS MBR works the best for this purpose plus guards the disk from being treated as unformatted when attached to windows machine. Even the fancy new GPT format uses MBR as the basis.
The GRUB2 bootloader is capable of booting from stuff like RAID and LVM and combination of those. But it needs a place to install itself, which typically consists of a code block in MBR and more code in the gap between MBR and the first partition. Current versions of fdisk and similar tools already create a large enough gap (the first partition typically starts on a megabyte boundary).
If you're using just one disk, you can format it using the DOS disklable (o command in fdisk) and create one partition spanning the disk space (n command in fdisk, p for primary, confirm the default start and end). Then format the partition as LVM physical volume, and the rest you know already.
When multiple disks are used, the partition is typically formatted for RAID instead of LVM, a raid array is assembled and formatted as LVM physical volume and the rest is the same again.
Thank you Pavel. I guess you're suggesting what I could have done, or what I should do now if I were to start from scratch and reinstall on a clean disk. But is there anything I can do now, with what I've got, to be able to boot into the new system on lvroottwo? Thanks.
– lkjre
Jul 1 '14 at 20:33
If you can't install GRUB to the hard disk because of its format, you would have to use a different boot media like another small disk, usb drive or whatever booting method your firmware supports.
– Pavel Šimerda
Jul 3 '14 at 10:25
Do I understand correctly that you are capable of booting the original system but not the new system? If that is the case, my answer is incomplete and you might want to tell me how to boot it.
– Pavel Šimerda
Jul 3 '14 at 10:27
A careful description of your disk layout would be handy, too.
– Pavel Šimerda
Jul 3 '14 at 10:28
Pavel:Yes, I can boot into the original system, but not the new system. And when I boot into the original system I can then mount the logical volume on which the new system was installed, and can confirm that it was indeed installed. I will try to provide tomorrow a detailed description of disk layout. Thanks.
– lkjre
Jul 4 '14 at 23:44
|
show 1 more comment
You should always have a simple partitioning scheme that leaves space for the boot loader, good old DOS MBR works the best for this purpose plus guards the disk from being treated as unformatted when attached to windows machine. Even the fancy new GPT format uses MBR as the basis.
The GRUB2 bootloader is capable of booting from stuff like RAID and LVM and combination of those. But it needs a place to install itself, which typically consists of a code block in MBR and more code in the gap between MBR and the first partition. Current versions of fdisk and similar tools already create a large enough gap (the first partition typically starts on a megabyte boundary).
If you're using just one disk, you can format it using the DOS disklable (o command in fdisk) and create one partition spanning the disk space (n command in fdisk, p for primary, confirm the default start and end). Then format the partition as LVM physical volume, and the rest you know already.
When multiple disks are used, the partition is typically formatted for RAID instead of LVM, a raid array is assembled and formatted as LVM physical volume and the rest is the same again.
Thank you Pavel. I guess you're suggesting what I could have done, or what I should do now if I were to start from scratch and reinstall on a clean disk. But is there anything I can do now, with what I've got, to be able to boot into the new system on lvroottwo? Thanks.
– lkjre
Jul 1 '14 at 20:33
If you can't install GRUB to the hard disk because of its format, you would have to use a different boot media like another small disk, usb drive or whatever booting method your firmware supports.
– Pavel Šimerda
Jul 3 '14 at 10:25
Do I understand correctly that you are capable of booting the original system but not the new system? If that is the case, my answer is incomplete and you might want to tell me how to boot it.
– Pavel Šimerda
Jul 3 '14 at 10:27
A careful description of your disk layout would be handy, too.
– Pavel Šimerda
Jul 3 '14 at 10:28
Pavel:Yes, I can boot into the original system, but not the new system. And when I boot into the original system I can then mount the logical volume on which the new system was installed, and can confirm that it was indeed installed. I will try to provide tomorrow a detailed description of disk layout. Thanks.
– lkjre
Jul 4 '14 at 23:44
|
show 1 more comment
You should always have a simple partitioning scheme that leaves space for the boot loader, good old DOS MBR works the best for this purpose plus guards the disk from being treated as unformatted when attached to windows machine. Even the fancy new GPT format uses MBR as the basis.
The GRUB2 bootloader is capable of booting from stuff like RAID and LVM and combination of those. But it needs a place to install itself, which typically consists of a code block in MBR and more code in the gap between MBR and the first partition. Current versions of fdisk and similar tools already create a large enough gap (the first partition typically starts on a megabyte boundary).
If you're using just one disk, you can format it using the DOS disklable (o command in fdisk) and create one partition spanning the disk space (n command in fdisk, p for primary, confirm the default start and end). Then format the partition as LVM physical volume, and the rest you know already.
When multiple disks are used, the partition is typically formatted for RAID instead of LVM, a raid array is assembled and formatted as LVM physical volume and the rest is the same again.
You should always have a simple partitioning scheme that leaves space for the boot loader, good old DOS MBR works the best for this purpose plus guards the disk from being treated as unformatted when attached to windows machine. Even the fancy new GPT format uses MBR as the basis.
The GRUB2 bootloader is capable of booting from stuff like RAID and LVM and combination of those. But it needs a place to install itself, which typically consists of a code block in MBR and more code in the gap between MBR and the first partition. Current versions of fdisk and similar tools already create a large enough gap (the first partition typically starts on a megabyte boundary).
If you're using just one disk, you can format it using the DOS disklable (o command in fdisk) and create one partition spanning the disk space (n command in fdisk, p for primary, confirm the default start and end). Then format the partition as LVM physical volume, and the rest you know already.
When multiple disks are used, the partition is typically formatted for RAID instead of LVM, a raid array is assembled and formatted as LVM physical volume and the rest is the same again.
answered Jul 1 '14 at 7:39
Pavel ŠimerdaPavel Šimerda
3,78911729
3,78911729
Thank you Pavel. I guess you're suggesting what I could have done, or what I should do now if I were to start from scratch and reinstall on a clean disk. But is there anything I can do now, with what I've got, to be able to boot into the new system on lvroottwo? Thanks.
– lkjre
Jul 1 '14 at 20:33
If you can't install GRUB to the hard disk because of its format, you would have to use a different boot media like another small disk, usb drive or whatever booting method your firmware supports.
– Pavel Šimerda
Jul 3 '14 at 10:25
Do I understand correctly that you are capable of booting the original system but not the new system? If that is the case, my answer is incomplete and you might want to tell me how to boot it.
– Pavel Šimerda
Jul 3 '14 at 10:27
A careful description of your disk layout would be handy, too.
– Pavel Šimerda
Jul 3 '14 at 10:28
Pavel:Yes, I can boot into the original system, but not the new system. And when I boot into the original system I can then mount the logical volume on which the new system was installed, and can confirm that it was indeed installed. I will try to provide tomorrow a detailed description of disk layout. Thanks.
– lkjre
Jul 4 '14 at 23:44
|
show 1 more comment
Thank you Pavel. I guess you're suggesting what I could have done, or what I should do now if I were to start from scratch and reinstall on a clean disk. But is there anything I can do now, with what I've got, to be able to boot into the new system on lvroottwo? Thanks.
– lkjre
Jul 1 '14 at 20:33
If you can't install GRUB to the hard disk because of its format, you would have to use a different boot media like another small disk, usb drive or whatever booting method your firmware supports.
– Pavel Šimerda
Jul 3 '14 at 10:25
Do I understand correctly that you are capable of booting the original system but not the new system? If that is the case, my answer is incomplete and you might want to tell me how to boot it.
– Pavel Šimerda
Jul 3 '14 at 10:27
A careful description of your disk layout would be handy, too.
– Pavel Šimerda
Jul 3 '14 at 10:28
Pavel:Yes, I can boot into the original system, but not the new system. And when I boot into the original system I can then mount the logical volume on which the new system was installed, and can confirm that it was indeed installed. I will try to provide tomorrow a detailed description of disk layout. Thanks.
– lkjre
Jul 4 '14 at 23:44
Thank you Pavel. I guess you're suggesting what I could have done, or what I should do now if I were to start from scratch and reinstall on a clean disk. But is there anything I can do now, with what I've got, to be able to boot into the new system on lvroottwo? Thanks.
– lkjre
Jul 1 '14 at 20:33
Thank you Pavel. I guess you're suggesting what I could have done, or what I should do now if I were to start from scratch and reinstall on a clean disk. But is there anything I can do now, with what I've got, to be able to boot into the new system on lvroottwo? Thanks.
– lkjre
Jul 1 '14 at 20:33
If you can't install GRUB to the hard disk because of its format, you would have to use a different boot media like another small disk, usb drive or whatever booting method your firmware supports.
– Pavel Šimerda
Jul 3 '14 at 10:25
If you can't install GRUB to the hard disk because of its format, you would have to use a different boot media like another small disk, usb drive or whatever booting method your firmware supports.
– Pavel Šimerda
Jul 3 '14 at 10:25
Do I understand correctly that you are capable of booting the original system but not the new system? If that is the case, my answer is incomplete and you might want to tell me how to boot it.
– Pavel Šimerda
Jul 3 '14 at 10:27
Do I understand correctly that you are capable of booting the original system but not the new system? If that is the case, my answer is incomplete and you might want to tell me how to boot it.
– Pavel Šimerda
Jul 3 '14 at 10:27
A careful description of your disk layout would be handy, too.
– Pavel Šimerda
Jul 3 '14 at 10:28
A careful description of your disk layout would be handy, too.
– Pavel Šimerda
Jul 3 '14 at 10:28
Pavel:Yes, I can boot into the original system, but not the new system. And when I boot into the original system I can then mount the logical volume on which the new system was installed, and can confirm that it was indeed installed. I will try to provide tomorrow a detailed description of disk layout. Thanks.
– lkjre
Jul 4 '14 at 23:44
Pavel:Yes, I can boot into the original system, but not the new system. And when I boot into the original system I can then mount the logical volume on which the new system was installed, and can confirm that it was indeed installed. I will try to provide tomorrow a detailed description of disk layout. Thanks.
– lkjre
Jul 4 '14 at 23:44
|
show 1 more comment
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f140064%2flvm-failed-to-install-bootloader%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown