LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux
User Name
Password
4MLinux This forum is for the discussion of 4MLinux.

Notices


Reply
  Search this Thread
Old 10-28-2019, 09:19 AM   #1
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 35

Rep: Reputation: 1
Install without the bootloader


I would like to install4M without installing the bootloader. What are the required lines I need to add in my current grub installation to boot 4M Linux ? (grub legacy 0.97)

Last edited by ychaouche; 10-29-2019 at 10:54 AM.
 
Old 10-28-2019, 11:24 AM   #2
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,216

Rep: Reputation: 450Reputation: 450Reputation: 450Reputation: 450Reputation: 450
Quote:
Originally Posted by ychaouche View Post
I would like to install4M without installing the bootloader. What are the required lines I need to add in my current grub installation to boot 4M Linux ? (grub legacy 0.97)
Hi ychaouche,

I am presuming from your information that there is another linux system on this same computer with an existing installation of grub legacy ... You could confirm the details of this so that we're all sure.

If so, you could boot back into your existing linux system after installing 4M and run the grub config command to update with the new linux install. Make sure osprober is installed so that the command looks for other systems. The command would be :

Code:
grub-mkconfig -o /boot/grub/grub.cfg
Make sure the grub.cfg file location is according to your installation and I recommend checking the generated grub.cfg file against the output of the lsblk -f command before rebooting.

Let us know how you make out.

Cheers,
 
Old 10-28-2019, 12:16 PM   #3
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, arch, ubuntu, others
Posts: 3,673

Rep: Reputation: 606Reputation: 606Reputation: 606Reputation: 606Reputation: 606Reputation: 606
Without information on disk/partition setup it is only a guess, 4m is based on Debian so something like this might work
Code:
menuentry 4Mlinux
root=(hd0,?) 
kernel /vmlinuz root=/dev/sda??
initrd /initrd.img
#? is number of partition counting from 0
?? is number of partition counting from 1

Last edited by colorpurple21859; 10-28-2019 at 12:18 PM.
 
Old 10-28-2019, 07:17 PM   #4
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 980

Rep: Reputation: 189Reputation: 189
Quote:
Originally Posted by colorpurple21859 View Post
it is only a guess, 4m is based on Debian
No, it is not.
Quote:
Originally Posted by colorpurple21859 View Post
Code:
menuentry 4Mlinux
root=(hd0,?) 
kernel /vmlinuz root=/dev/sda??
initrd /initrd.img
I do not use legacy GRUB. However, by default, there is no initrd in 4MLinux, and the location of the kernel image is /boot/bzImage.

.
 
Old 10-28-2019, 07:22 PM   #5
zk1234
4MLinux Maintainer
 
Registered: Oct 2010
Location: Poland
Distribution: 4MLinux, Slackware
Posts: 980

Rep: Reputation: 189Reputation: 189
Quote:
Originally Posted by ychaouche View Post
I would like to install4M without installing the bootloader. What are the required lines I need to add in my current grub installation to boot 4M Linux ? (grub legacy 0.97)
Why not use GRUB included in 4MLinux? See point 9 here:
http://4mlinux.blogspot.com/2013/01/...-your-hdd.html

.
 
Old 10-28-2019, 07:25 PM   #6
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 15,623
Blog Entries: 26

Rep: Reputation: 4571Reputation: 4571Reputation: 4571Reputation: 4571Reputation: 4571Reputation: 4571Reputation: 4571Reputation: 4571Reputation: 4571Reputation: 4571Reputation: 4571
A web search for "add distro to GRUB" will turn up a number of articles, tutorials, and even a video or two.
 
Old 10-28-2019, 07:39 PM   #7
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, arch, ubuntu, others
Posts: 3,673

Rep: Reputation: 606Reputation: 606Reputation: 606Reputation: 606Reputation: 606Reputation: 606
Quote:
No, it is not.
Sorry about that I was confusing it with MX linux
then it would be kernel /boot/bzImage root=something
without the initrd line.

Last edited by colorpurple21859; 10-28-2019 at 09:20 PM.
 
1 members found this post helpful.
Old 10-29-2019, 08:53 AM   #8
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 35

Original Poster
Rep: Reputation: 1
sf.net was down (ongoing DDoS attack), so in the meantime I tried to boot NuTyX, which is installed on /dev/sda9

Code:
ychaouche#ychaouche-PC 10:15:54 ~ $ sudo os-prober
[sudo] password for ychaouche:
  No volume groups found
/dev/sda1:Windows 7 (loader):Windows:chain
/dev/sda9:NuTyX GNU/Linux (rolling):NuTyX:linux    #<-------------------- Hello NuTyX ! 
ychaouche#ychaouche-PC 10:45:30 ~ $
I seem to have grub legacy installed, because changes I make to /boot/grub/menu.lst are visible when I reboot. But when I do and select NuTyX I get error 17 : cannot mount selected partition.

Here's the NuTyX's corresponding entry in /boot/grub/menu.lst :

Code:
title           NuTyx (yassine)
root            (hd0,8)
kernel          /boot/kernel-lts root=/dev/sda9 ro splash pci=noaer
NuTyX doesn't use initrd.

And here's output of fdisk -l

Code:
ychaouche#ychaouche-PC 11:06:49 ~ $ sudo fdisk -l
[sudo] password for ychaouche:

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 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: 0x90909090

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1            2048      206847      102400    7  HPFS/NTFS/exFAT
/dev/sda2          206848   614606847   307200000    7  HPFS/NTFS/exFAT
/dev/sda3       614606848  1229006847   307200000    7  HPFS/NTFS/exFAT
/dev/sda4      1229008894  1953523711   362257409    5  Extended
Partition 4 does not start on physical sector boundary.
/dev/sda5      1229008896  1268068351    19529728   83  Linux
/dev/sda6      1268070400  1424318463    78124032   83  Linux
/dev/sda7      1424320512  1439942655     7811072   82  Linux swap / Solaris
/dev/sda8      1439944704  1491302399    25678848   83  Linux
/dev/sda9   *  1491304448  1578485759    43590656   83  Linux
ychaouche#ychaouche-PC 11:06:53 ~ $

If useful, this is the output of blkid

Code:
ychaouche#ychaouche-PC 11:20:36 ~ $ blkid
/dev/sda1: LABEL="RM-CM-)servM-CM-) au systM-CM-(me" UUID="2C1AE3A61AE36B72" TYPE="ntfs"
/dev/sda2: UUID="367A3A5F7A3A1BD5" TYPE="ntfs"
/dev/sda3: LABEL="UserData" UUID="2CC6D327C6D2EFD6" TYPE="ntfs"
/dev/sda5: LABEL="This is Mint" UUID="3e260f17-2ab1-49ae-a2d5-5f586e6df1b4" TYPE="ext4"
/dev/sda6: LABEL="This is home" UUID="8ec978fe-39d3-4c9b-ab57-4eaf4b975dd7" TYPE="ext4"
/dev/sda7: UUID="8f8b25c2-3922-4da4-a2ea-48e5b31d6058" TYPE="swap"
/dev/sda8: LABEL="This is var" UUID="0f1a9dcd-21bc-4270-b941-ad8dbc620ebd" TYPE="ext4"
/dev/sda9: UUID="dd356042-8006-4d27-af85-fe277cbb54b1" UUID_SUB="01560a90-fc8c-4d67-8b84-0e802757539b" TYPE="btrfs"
ychaouche#ychaouche-PC 11:20:38 ~ $
Could it be that grub legacy doesn't know how to load a btrfs filesystem ?
 
Old 10-29-2019, 08:57 AM   #9
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 35

Original Poster
Rep: Reputation: 1
hum... well according to archwiki, it doesn't

Quote:
GRUB legacy does not support GPT disks, Btrfs filesystem and UEFI firmwares.
 
Old 10-29-2019, 09:06 AM   #10
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,216

Rep: Reputation: 450Reputation: 450Reputation: 450Reputation: 450Reputation: 450
Quote:
Originally Posted by ychaouche View Post
hum... well according to archwiki, it doesn't
... good to know. I've always used ext4 for linux, so I've never run across this limitation. Furthermore, I haven't used GRUB Legacy for quite a while either.

There are a number of other boot loading solutions you can move to : GRUB (current version), Syslinux, rEFInd, or even straight from UEFI (assuming your computer's UEFI implementation is standard ...).

Cheers,
 
Old 10-29-2019, 10:43 AM   #11
ychaouche
Member
 
Registered: Mar 2017
Distribution: Mint, Debian, Q4OS, Mageia, KDE Neon
Posts: 35

Original Poster
Rep: Reputation: 1
1. Booted Mint
2. chrooted to NuTyX
3. Changed /boot/grub/grub.cfg to add necessary entry for Mint

Quote:
function recordfail {
set recordfail=1
if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function gfxmode {
set gfxpayload="$1"
if [ "$1" = "keep" ]; then
set vt_handoff=vt.handoff=7
else
set vt_handoff=
fi
}


menuentry 'Linux Mint 17 KDE 64-bit, 4.4.0-98-generic (/dev/sda5)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
gfxmode $linux_gfx_mode
insmod gzio
insmod part_msdos
insmod ext2
set root='hd0,msdos5'
if [ x$feature_platform_search_hint = xy ]; then
search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos5 --hint-efi=hd0,msdos5 --hint-baremetal=ahci0,msdos5 --hint='hd0,msdos5' 3e260f17-2ab1-49ae-a2d5-5f586e6df1b4
else
search --no-floppy --fs-uuid --set=root 3e260f17-2ab1-49ae-a2d5-5f586e6df1b4
fi
linux /boot/vmlinuz-4.4.0-98-generic root=UUID=3e260f17-2ab1-49ae-a2d5-5f586e6df1b4 ro quiet splash $vt_handoff pci=noaer
initrd /boot/initrd.img-4.4.0-98-generic
}
4. Installed NuTyX's grub 2 in the boot sector
5. rebooted

Now I can boot both NuTyX and Mint
 
Old 10-29-2019, 10:47 AM   #12
Rickkkk
Senior Member
 
Registered: Dec 2014
Location: Montreal, Quebec, CANADA
Distribution: Arch
Posts: 1,216

Rep: Reputation: 450Reputation: 450Reputation: 450Reputation: 450Reputation: 450
Quote:
Originally Posted by ychaouche View Post
Installed NuTyX's grub 2 in the boot sector
5. rebooted

Now I can boot both NuTyX and Mint
Congrats and welcome to GRUB 2 .
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to install bootloader to partition after install; use Windows bootloader to boot Xenphor Fedora 3 07-28-2013 12:56 AM
Windows 2000 Bootloader vs. Mandriva LILO Bootloader Dregnan Mandriva 7 12-03-2007 10:55 PM
How can I disable the grub bootloader and enable the lilo bootloader? abefroman Linux - General 1 08-06-2005 09:53 AM
I need create bootloader. How make bootloader? swipple Fedora - Installation 3 01-23-2005 01:22 PM
Bootloader/No Bootloader Slack_Master *BSD 3 02-26-2003 11:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > 4MLinux

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