Skip to contentSkip to conversation

booting from an LV

linux-lvm Joep Blom 6 participants 10 messages May 23, 2006 – May 25, 2006

lore
Share & tools
lore

Joep Blom

author
#0 lore raw

I have one question.
Is it possible with grub to use a logical volume as boot partition? (e.g.:partition: /dev/VG01/lvol0.
Entry in grub.conf would then be:
title Fedora Core (xxx..)
root hd(0,5) # partition on which VG01 resides
kernel /dev/VG01/lvol0/vmlinuz-xxx... ro root=/dev/VG01/lvol1 initrd /dev/VG01/lvol0/initrd-xxx....img
I think I read somewhere that grub is not happy with this but I'm not sure, Joep

#1 lore raw
Quoted 3 lines · Joep Blom

I have one question.
Is it possible with grub to use a logical volume as boot partition? (e.g.:partition: /dev/VG01/lvol0.

No.

L.

Signature · 6 lines
Luca Berra -- [email protected]
       Communication Media & Services S.r.l.
/"\
\ /     ASCII RIBBON CAMPAIGN
 X        AGAINST HTML MAIL
/ \
author
#2 lore raw
Quoted 10 lines · Luca Berra
Quoted 3 lines · Joep Blom

I have one question.
Is it possible with grub to use a logical volume as boot partition? (e.g.:partition: /dev/VG01/lvol0.

No.

L.

Thanks
Joep

#3 lore raw

If you need to boot from a logical partition you can use lilo.

Best regards.

Francis

Quoted 22 lines · Joep Blom
Quoted 11 lines · Luca Berra
Quoted 3 lines · Joep Blom

I have one question.
Is it possible with grub to use a logical volume as boot partition? (e.g.:partition: /dev/VG01/lvol0.

No.

L.

Thanks
Joep

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

author
#4 lore raw
Quoted 32 lines · Francis SOUYRI

If you need to boot from a logical partition you can use lilo.

Best regards.

Francis

Quoted 14 lines · Joep Blom
Quoted 8 lines · Luca Berra
Quoted 3 lines · Joep Blom

I have one question.
Is it possible with grub to use a logical volume as boot partition? (e.g.:partition: /dev/VG01/lvol0.

Quoted 4 lines

No.

L.

Quoted 9 lines

Thanks
Joep

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Francis,
Thanks. I've read that. But after 7 or 8 years using LILO with all the problems around it, I switched 2 years ago to grub and decided to stick to it. So my solution is to make a small (100 Mb) primary partition for grub and do the rest with LVM as I have discovered the ease and advantage of it after years of struggling with fdisk (DOS, W98, Linux) and with the ntfsprogs suite it's easy to create XP partitions in an LV for backups. Joep

#5 lore raw

But Redhat AS 4 ONLY support grub.

--- Joep Blom <[email protected]> ���G

Quoted 61 lines
Quoted 1 line · Francis SOUYRI

If you need to boot from a logical partition you

can use lilo.

Quoted 10 lines

Best regards.

Francis

Quoted 3 lines · Joep Blom
Quoted 1 line · Luca Berra

On Tue, May 23, 2006 at 12:21:41PM +0200, Joep

Quoted 3 lines · Blom
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

I have one question.
Is it possible with grub to use a logical

volume as boot partition?

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line

(e.g.:partition: /dev/VG01/lvol0.

No.

L.

Quoted 8 lines
Quoted 8 lines

Thanks
Joep

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at

http://tldp.org/HOWTO/LVM-HOWTO/

Quoted 7 lines
Quoted 1 line

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at

http://tldp.org/HOWTO/LVM-HOWTO/

Quoted 1 line

Francis,
Thanks. I've read that. But after 7 or 8 years using LILO with all the
problems around it, I switched 2 years ago to grub and decided to stick
to it. So my solution is to make a small (100 Mb) primary partition for
grub and do the rest with LVM as I have discovered the ease and
advantage of it after years of struggling with fdisk (DOS, W98, Linux)
and with the ntfsprogs suite it's easy to create XP partitions in an LV
for backups.
Joep

Quoted 7 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at
http://tldp.org/HOWTO/LVM-HOWTO/

___________________________________________________ �̷s�� Yahoo!�_���Y�ɳq�T 7.0�A�K�O�����q�ܥ��A���I http://messenger.yahoo.com.tw/

#6 lore raw
In reply to Joep Blom
Quoted 3 lines · Joep Blom

Francis,
Thanks. I've read that. But after 7 or 8 years using LILO with all the problems around it, I switched 2 years ago to grub and decided to stick to it. So my solution is to make a small (100 Mb) primary partition for grub and do the rest with LVM as I have discovered the ease and advantage of it after years of struggling with fdisk (DOS, W98, Linux) and with the ntfsprogs suite it's easy to create XP partitions in an LV for backups. Joep

Even with LILO, it's easier to have a raw BIOS partition for /boot:

software raid4/5/6, pvmove, raid1, &tc. There are a lot of bad hacks
in lilo to support some of those things in some configurations, but nothing clean. The most reliable way to bring things up is to install grub or lilo in /boot (on [hs]da1) and possibly mirror the boot sector
and the boot partition to the second drive. However, on a failed-drive, most motherboards can't reboot anyway so you're talking manual intervention in either case. With a block-level mirror, hopefully just yanking the first drive lets you boot off #2, and of course once you hit initrd and raidstart, it handles the failed disk gracefully, right? :)

author
#7 lore raw
Quoted 13 lines · Harik A'ttar
Quoted 3 lines · Joep Blom

Francis,
Thanks. I've read that. But after 7 or 8 years using LILO with all the problems around it, I switched 2 years ago to grub and decided to stick to it. So my solution is to make a small (100 Mb) primary partition for grub and do the rest with LVM as I have discovered the ease and advantage of it after years of struggling with fdisk (DOS, W98, Linux) and with the ntfsprogs suite it's easy to create XP partitions in an LV for backups. Joep

Even with LILO, it's easier to have a raw BIOS partition for /boot:

software raid4/5/6, pvmove, raid1, &tc. There are a lot of bad hacks
in lilo to support some of those things in some configurations, but nothing clean. The most reliable way to bring things up is to install grub or lilo in /boot (on [hs]da1) and possibly mirror the boot sector
and the boot partition to the second drive. However, on a failed-drive, most motherboards can't reboot anyway so you're talking manual intervention in either case. With a block-level mirror, hopefully just yanking the first drive lets you boot off #2, and of course once you hit initrd and raidstart, it handles the failed disk gracefully, right? :)

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Harik,
I couldn't agree more. IMHO it's a bloody shame we still have to work with a misconcept of over 25 years to start any OS (I'm not familiar with the Mac but I presume it's equally oldfashioned). Joep

#8 lore raw
Quoted 3 lines · Joep Blom

Harik,
I couldn't agree more. IMHO it's a bloody shame we still have to work with a misconcept of over 25 years to start any OS (I'm not familiar with the Mac but I presume it's equally oldfashioned). Joep

be careful:
precisely Apple is a step further than most Linux systems today:
they already use EFI, the next generation BIOS, see:
http://en.wikipedia.org/wiki/Extensible_Firmware_Interface
EFI even defines an enhanced partitioning concept called GPT.

But I still fail to see, why I have to create any partition on my disks if I have LVM instead. It should make partitions obsolete! On the other hand I don't see neither Lilo nor Grub will provide a solution without any DOS partition table, soon. As I refuse to turn back booting from floppy disks, I currently think about booting from a cheap USB Stick instead. It may hold my /boot system with an LVM aware kernel and may even carry a small rescure system.

Dieter

author
#9 lore raw
Quoted 26 lines · Dieter St�ken
Quoted 3 lines · Joep Blom

Harik,
I couldn't agree more. IMHO it's a bloody shame we still have to work with a misconcept of over 25 years to start any OS (I'm not familiar with the Mac but I presume it's equally oldfashioned). Joep

be careful:
precisely Apple is a step further than most Linux systems today:
they already use EFI, the next generation BIOS, see:
http://en.wikipedia.org/wiki/Extensible_Firmware_Interface
EFI even defines an enhanced partitioning concept called GPT.

But I still fail to see, why I have to create any partition on my disks if I have LVM instead. It should make partitions obsolete! On the other hand I don't see neither Lilo nor Grub will provide a solution without any DOS partition table, soon. As I refuse to turn back booting from floppy disks, I currently think about booting from a cheap USB Stick instead. It may hold my /boot system with an LVM aware kernel and may even carry a small rescure system. Dieter

Quoted 6 lines

_______________________________________________
linux-lvm mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

Dieter,
I didn't know that of Apple. That's very interesting. I know there are already for over a year talks about completely different kind of bootstrap loader+ advanced programming tools such as EFI you mentioned but until now no motherboards has appeared for Intel/AMD processors with it. Your solution of booting from an USB stick is what I intend to do with my firewall: a stand-alone memory-only system (I'm a little paranoid with respect to security) running LEAF (the Bering-uclib variant) but it's an idea for workstations as well as USB sticks become very cheap. Joep