grub entry for slackware from another drive

user7011

I am running ubuntu 14.04 on my machine with following partition structure:

/boot 512MB
/     50G
swap  4G
/home 100G~

and I have another drive which has slackware 14.1 on it with following structure:

/boot 512M (with working initrd)
(encrypted lvm containing /, swap and home )

I want to know if there is a way i can add my slackware system to ubuntu's grub, so that i will be able to boot both operating systems (multi-bootish way).

I tried adding something like following to /boot/grub/grub.cfg:

menuentry "Slackware" { 
      linux /dev/sdb2/vmlinux 
      initrd /dev/sdb2/initrd.gz
}

and to /etc/default/grub:

GRUB_DISALBE_OS_PROBE=true

but when i run grub-update it gets cleared.

I have some knowledge of LILO but grub is quite new for me so any kind of help is greatly appreciated.

Thanks.

-Update: Thanks oldfred, got it working by doing following:

sudo apt-get update && sudo apt-get install lvm2 cryptsetup
sudo modprobe dm-crypt
sudo cryptsetup luksOpen /dev/sdb2 my-crypt
sudo os-prober
sudo update-grub

going to try the menuentry thing also though.

oldfred

Lilo is a Windows type boot loader. So may be easier to chain load to the MBR or PBR of your other drive.

This is a partition boot entry. But note that drive you boot from is always hd0 in grub, but drive order can otherwise vary.

How to add a GRUB2 menu entry for booting installed Ubuntu on a USB drive?

menuentry "Install on sda (When from sdc) Chainboot" {
set root=(hd1)
chainloader +1
}

menuentry "Install on sdb (from sdc) Chainboot" {
set root=(hd2)
chainloader +1
}

menuentry "Chainload Other Systems Grub Menu on sdc1" {
set root=(hd2,1)
chainloader +1
}


menuentry " " {
set root= 
}

menuentry "System restart" {
echo "System rebooting..."
    insmod reboot
reboot
}    

menuentry "System shutdown" {
echo "System shutting down..."
    insmod halt
halt
}

Correct entry to turn off os-prober

Turn off prober

gksudo gedit /etc/default/grub

Add this line

GRUB_DISABLE_OS_PROBER=true

update grub menu after any change

sudo update-grub

If using LVM you make be able to get os-prober to work if you add the lvm drivers in Ubuntu and manually mount the encrypted partition (so it is unencrypted) when os-prober runs.

sudo apt-get update && sudo apt-get install lvm2 cryptsetup

If other steps to mount & unencrypt needed they are here, just you do not need all the resize instructions: https://help.ubuntu.com/community/ResizeEncryptedPartitions

이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.

침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제

에서 수정
0

몇 마디 만하겠습니다

0리뷰
로그인참여 후 검토

관련 기사

분류에서Dev

Drive won't boot from its Grub, but will from another drive's Grub, after cloning, why?

분류에서Dev

How to add a GRUB2 menu entry for booting installed Ubuntu on a USB drive?

분류에서Dev

How to add a GRUB2 menu entry for booting installed Ubuntu on a USB drive?

분류에서Dev

How to aggregate grub entries from another partition?

분류에서Dev

Convert Grub entry to Grub2 entry?

분류에서Dev

chmod hard drive at grub?

분류에서Dev

how to remove WINDOW OS from another drive?

분류에서Dev

How to install GRUB on a new drive?

분류에서Dev

Creating a new Table Entry with an ID from another table

분류에서Dev

Is it possible to transfer free storage space from one hard drive to another?

분류에서Dev

What's the difference between cloning a hard drive and copying all the data from one drive to another?

분류에서Dev

Ubuntu minimal cd installs GRUB to USB drive

분류에서Dev

How to install Grub in an external hard drive?

분류에서Dev

Moving contents of faulty drive into another drive

분류에서Dev

GRUB from windows?

분류에서Dev

database schema one column entry references many rows from another table

분류에서Dev

Conditionally copy selected cells from one sheet to another once for each new entry

분류에서Dev

How can I access one Eclipse RAP entry point from another?

분류에서Dev

How to backup files from one ubuntu machine to a shared NTFS drive on another ubuntu machine

분류에서Dev

How can one copy a directory tree from one drive to another, replicating any junction points, under Windows?

분류에서Dev

Installed windows 10, grub problem, linux drive became unallocated

분류에서Dev

boot from external drive

분류에서Dev

Is it possible to extend C drive using unallocated space in another physical drive?

분류에서Dev

Will the 1TB hard drive from my Lenovo Ideapad Z585 work in another computer of a different make/model?

분류에서Dev

Is there a way to install Windows within itself into another drive?

분류에서Dev

Merged C with another drive, Windows 7 not booting

분류에서Dev

How to access Windows 8 on another hard drive?

분류에서Dev

How can I use another drive with Owncloud?

분류에서Dev

Slackware 용 NodeJS

Related 관련 기사

  1. 1

    Drive won't boot from its Grub, but will from another drive's Grub, after cloning, why?

  2. 2

    How to add a GRUB2 menu entry for booting installed Ubuntu on a USB drive?

  3. 3

    How to add a GRUB2 menu entry for booting installed Ubuntu on a USB drive?

  4. 4

    How to aggregate grub entries from another partition?

  5. 5

    Convert Grub entry to Grub2 entry?

  6. 6

    chmod hard drive at grub?

  7. 7

    how to remove WINDOW OS from another drive?

  8. 8

    How to install GRUB on a new drive?

  9. 9

    Creating a new Table Entry with an ID from another table

  10. 10

    Is it possible to transfer free storage space from one hard drive to another?

  11. 11

    What's the difference between cloning a hard drive and copying all the data from one drive to another?

  12. 12

    Ubuntu minimal cd installs GRUB to USB drive

  13. 13

    How to install Grub in an external hard drive?

  14. 14

    Moving contents of faulty drive into another drive

  15. 15

    GRUB from windows?

  16. 16

    database schema one column entry references many rows from another table

  17. 17

    Conditionally copy selected cells from one sheet to another once for each new entry

  18. 18

    How can I access one Eclipse RAP entry point from another?

  19. 19

    How to backup files from one ubuntu machine to a shared NTFS drive on another ubuntu machine

  20. 20

    How can one copy a directory tree from one drive to another, replicating any junction points, under Windows?

  21. 21

    Installed windows 10, grub problem, linux drive became unallocated

  22. 22

    boot from external drive

  23. 23

    Is it possible to extend C drive using unallocated space in another physical drive?

  24. 24

    Will the 1TB hard drive from my Lenovo Ideapad Z585 work in another computer of a different make/model?

  25. 25

    Is there a way to install Windows within itself into another drive?

  26. 26

    Merged C with another drive, Windows 7 not booting

  27. 27

    How to access Windows 8 on another hard drive?

  28. 28

    How can I use another drive with Owncloud?

  29. 29

    Slackware 용 NodeJS

뜨겁다태그

보관