| Author |
Message |
shoutcrown
Joined: 12 Mar 2011 Posts: 77
|
Posted: Thu 31 May 2012, 01:36 Post subject:
how to boot slacko using grub2 Subject description: slacko is installed on hard disk (full installation) |
|
holas!
you know? now I have installed slacko 533 4g (it has r128 and 1024x768 resolution! nice!). Also I have installed ubuntu 10.04 lts (believe or not, this os works very good too)
I think is good to learn about other distros. so first i installed ubuntu and later slacko
this ubuntu use grub2. some say grub2 can boot from iso files and can do many other things... so I would like to use grub2 to boot slacko and ubuntu
some say updating grub2 can automatically recognize the os installed on hard disk, but when I use the command: sudo update-grub2 the menu only show the lines for ubuntu
as i told you previously slacko is installed on hard disk (full installation). so how can I boot it using grub2?
thanks!
|
|
Back to top
|
|
 |
ldp
Joined: 10 May 2012 Posts: 18
|
Posted: Thu 31 May 2012, 07:46 Post subject:
|
|
I've got a spare machine with TinyCore, Puppy 5.33, Mageia and Mint running, with grub2 from Mint controlling startup all working quite happily - and I'm a newbie and a grub2 novice!
You need to make appropriate entries in the 40_custom file found in /etc/grub.d folder, and then run sudo update-grub.
The 30_osprober script runs to see if it can detect other OSs but it doesn't always pick up other Linux distros. I rename it and make it non-executable to stop it running and manually put entries in the custom file which gets inserted in the main grub config file.
I'm at work so I haven't got access to my entries, but when I get home I will post my menu setup if you wish and see if that works for you.
|
|
Back to top
|
|
 |
shoutcrown
Joined: 12 Mar 2011 Posts: 77
|
Posted: Thu 31 May 2012, 16:55 Post subject:
boot slacko using grub2 Subject description: slacko is installed on hard disk (full installation) |
|
Hi Idp!
you are right, I have to to edit the 40_custom file, then update grub2
but I dont know how to do it, because I already have installed slacko on the hard disk (full installation). when I search on the web, just there are methods to boot puppy linux from iso or frugal installation, also some say if there is a little mistake within grub2 then appear errors...
I hope you have the solution. bye
|
|
Back to top
|
|
 |
ldp
Joined: 10 May 2012 Posts: 18
|
Posted: Thu 31 May 2012, 19:16 Post subject:
|
|
What you need to add is the following:
menuentry "Puppy (on /dev/sda2)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 80a1b24e-f35a-45c0-9883-54d50e12b6b7
linux /boot/vmlinuz root=/dev/sda2
}
Change the partition information to match where you done your full install.
The set root='(hd0,msdos2)' line needs to reflect the correct disk and partition (disks start at 0, and partitions start at 1)
Find the device uuid and replace the one above with yours (i think you use 'blkid /dev/your_install_partition' to get the uuid.
And the final line should end as root=/dev/your_install_partition
As an aside, I renamed (actually copied) the 40_custom file to 19_custom so in ran before the 'memtest' entries that appear in the grub list.
Let me know if it works.
|
|
Back to top
|
|
 |
shoutcrown
Joined: 12 Mar 2011 Posts: 77
|
Posted: Thu 31 May 2012, 23:13 Post subject:
how to boot slacko using grub2 Subject description: slacko is installed on hd (full installation) |
|
hi Idp!
I have been trying your help, but it doesnt work yet (first i copied all your lines, then I did some changes and saved and closed the custom file; after updating grub2, the grub.cfg can show the changes, but when the grub2 appears there is no line for slacko).
Look I have ubuntu and slacko within extended partition. ubuntu: root=sda5 (ext4), home=sda6 (ext4) swap=sda7 (linux-swap); slacko: root=sda8 (ext4). Also I created and installed slacko using the livecd
| Quote: | Idp:
menuentry "Puppy (on /dev/sda2)" --class gnu-linux --class gnu --class os {
insmod part_msdos
insmod ext2
set root='(hd0,msdos2)'
search --no-floppy --fs-uuid --set=root 80a1b24e-f35a-45c0-9883-54d50e12b6b7
linux /boot/vmlinuz root=/dev/sda2
} |
- do you really have 2 lines: "insmod part_msdos" and "insmod ext2"? (I can see the other lines have just one "insmod"). If so, what am i expected to write for the first "insmod" line?
- is it ok the line "hd0,msdos2"? (I can see the other lines use "hd0,2")
thanks!
|
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2254 Location: Japan
|
Posted: Fri 01 Jun 2012, 00:15 Post subject:
Re: how to boot slacko using grub2 Subject description: slacko is installed on hard disk (full installation) |
|
| shoutcrown wrote: | | some say updating grub2 can automatically recognize the os installed on hard disk, but when I use the command: sudo update-grub2 the menu only show the lines for ubuntu |
Right. 'sudo update-grub2' should auto-detect the full-installed slacko. I do not recommend manual editing for the grub2.
I suspect something trouble in installing slacko. Can you find the file '/mnt/sda8/boot/vmlinuz'?
_________________ Multilingual Wary-511
Lucid Puppy Quickset edition
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
|
|
Back to top
|
|
 |
shoutcrown
Joined: 12 Mar 2011 Posts: 77
|
Posted: Fri 01 Jun 2012, 01:01 Post subject:
how to boot slacko using grub2 Subject description: slacko is installed on hd (full installation) |
|
hi shinobar!
of course, I can find '/mnt/sda8/boot/vmlinuz'.
the installation is ok. just I need a line to boot slacko from grub2
do you know other ways to update the grub2?
bye
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9387 Location: SwedenEurope
|
Posted: Fri 01 Jun 2012, 04:07 Post subject:
|
|
I am very interested in grub2 and dueal and triple booting.
But sadly I know too little.
I saw a text yesterday that suggested that one do changes
to a file named 30_os-prober. I can not find it now.
I used search but maybe it has not indexed what where written yesterday?
The suggestion as my poor memory recall vaguely is like this.
30_os-prober fail to accept Puppy. The script of 30_os-prober is not
made to deal with Puppy. Only for more known Linux it seems
so he suggested that one make this file inactive.
As I see it that is a very drastic measure. I wish I could find it again.
I would hope that we find other solutions.
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9387 Location: SwedenEurope
|
Posted: Fri 01 Jun 2012, 04:30 Post subject:
|
|
I've found one reference to shutting of 30_os-prober now here
http://puppylinux.org/wikka/Grub2
| Quote: |
If you want edit grub2 (the proper grub 2 way) then go to /etc/grub.d
and editing the config files there. each file changes a different part of
the boot loader.
The main file you need to edit to add your custom files is 40_custom.
To edit the default auto detected entries edit 10_linux.
You can also turn off the OS-Prober (OS-prober is the auto detect
feature in grub 2).
I have found this works and gives a more Grub feel
but everything has to be done manually.
(when you stop OS-Prober it is ok to change or
remove unwanted auto detected entries from grub.cfg
under #BEGIN /etc/grub.d/10_linux
Remember to leave your os that the grub 2 is on).
I also copied the original auto detected entries to 40_custom file
so I could edit them there. saving time worrying how to format them.
In ubuntu based os go to the file /etc/default/grub.
uncomment (remove the # before the line)
#GRUB_DISABLE_OS_PROBER=true (Enables/disables the os-prober
check of other partitions for operating systems, including Windows, Linux,
OSX and Hurd).
Now you need to go to /etc/grub.d/ (this is where you manually edit
all your grub entries each filel edits a different part of /boot/grub/grub.cfg). |
So this is something others has tried too. wish they would find this thread
and share their thoughts on pro et cons for doing this "edits"
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2254 Location: Japan
|
Posted: Fri 01 Jun 2012, 04:50 Post subject:
os-prober |
|
| nooby wrote: | | 30_os-prober fail to accept Puppy. The script of 30_os-prober is not made to deal with Puppy. Only for more known Linux it seems |
In my test, the 30_os-prober of Ubuntu 12.04 probes full-installed lupu-528 as "unknown Linux distribution" in the menu entry. Of course it cannot detect any frugal installs.
BTW,
| Grub 2 Made Easy wrote: | | You can also turn off the OS-Prober (OS-prober is the auto detect feature in grub 2). I have found this works and gives a more Grub feel but everything has to be done manually. |
If it cannot auto probe, there are no advantage to insist on grub2. I think the grub2 is not suitable for manual editing.
Forget grub2 and go grub4dos.
_________________ Multilingual Wary-511
Lucid Puppy Quickset edition
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9387 Location: SwedenEurope
|
Posted: Fri 01 Jun 2012, 05:08 Post subject:
|
|
shinobar the following is no criticism of you personally at all.
But seen from the linux user this suggestion you have here will not do.
Linux Mint and Ubuntu is the most known Linux distros on DistroWatch
and they make use of grub2 for their install of their OS.
So grub2 for Linux is a given.
Sure Barry and You and other developers does not have to accept
and they can choose grub4dos or some other OS loader instead.
But that leave us noob users in a state of limbo.
Neither Ubuntu nor Linux Mint would care for Puppy frugal install
on grub2 so we would end up with two grubloaders.
The original grub2 that LinuxMint installed and then the Grub4dos that
you suggests and then when one update grub2 from Linux Mint
which happen automatically then it mess up the booting.
Some have in forum for LM told that they don't find any entry
for the other linux due to LM hide it.
So my personal view as a noob user is that Puppy place a lot
of complication on the new user due to grub2 get neglected.
I agree that is a priv of being a Developer that he or she is Boss
and the user can only make wishes and express a need and
have no way to persuade the Dev to comply
My thoughts goes to the noob that has to deal with two different grub.
I agree that Puppy has no reason to go over to grub2 at all.
But to not make effort to find a good solution to dual boots
that would not be user friendly?????
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
shinobar

Joined: 28 May 2009 Posts: 2254 Location: Japan
|
Posted: Fri 01 Jun 2012, 06:27 Post subject:
grub2 vs grub4dos |
|
| nooby wrote: | | Puppy place a lot of complication on the new user due to grub2 get neglected. |
Do you mean which neglect which?
The fact is the grub2 of Ubuntu neglects Puppy, but the grub4dos of Puppy knows Ubuntu and the grub2.
The grub4dosconfig on most of Puppies detects Ubuntu and also have a chain to the grub2.
_________________ Multilingual Wary-511
Lucid Puppy Quickset edition
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9387 Location: SwedenEurope
|
Posted: Fri 01 Jun 2012, 07:57 Post subject:
|
|
Yes I did anticipate that you would give me that comment.
Remember my post where not intended to criticize you personally.
I dearly hope you remember how happy and thankful
I where when you took time to help me find Ms Windows
in grub4dos. So I do appreciate and I am deeply thankful
for your generous sharing of your knowledge and taking
personal time to give me good advices to get grub4dos to
work for me personally.
What I try to refer to here is what happens to a noob or
a noob like old timer like what I am.
Is it some 3 years now we have had these questions on the forum
in reference to dualboot with Ubuntu and Puppy and maybe
triple boot with Win7 and Ubuntu and Puppy relating three
different bootloaders to each other for a noob.
What I refer to is how it feels like and the complication level
for us noobs to get this to work.
I have for some 3 years really spent many many hours to get
puppy to work with grup2. Now I am an absolute noob and
a total idiot when it comes to getting logic and structure of linux
and booting.
What I can agree with is that each OS has to take care of
how they relate to the needs of their users. .
1. Ms Win has to decide on their users.
2. Ubuntu Linux has to decide on their users.
3. Puppy Linux has to decide on their users.
Ms could say that they want a monopole and therefor
could not care less about Linux users.
Linux OS is supposed to be supporters of FOSS and many of
the developers does support Linux as an alternative.
So as a noob one expect the Linux crowd to be cooperative.
Yeah I know I am very naive.
What I talk about is not that grub4dos can laod a already installed
Linux Mint. That do work. What I talk about is that we need to
provide the new Puppy user with knowledge about how to protect
Puppy from getting invisible due to how LM works when it automatically
update the grub2 when it does their security upgrades.
Yes I agree that none of the Puppy Devs has to do this personally.
What I talk about is us users care and friendly relations to the noobs
of using Puppy. The Devs are their own Boss so they could not care less.
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
shoutcrown
Joined: 12 Mar 2011 Posts: 77
|
Posted: Fri 01 Jun 2012, 10:59 Post subject:
how to boot slacko using grub2 Subject description: slacko is installed on hd (full installation) |
|
hello?
ok guys. please this post is about how to boot slacko using grub2. I mean I want to use the grub2
I have been trying again and cant do it yet.
under ubuntu I can enter to the partition where I installed slacko (sda8-ext4), so there are all the directories and files, so everything is ok
I hope someone can help me. bye
|
|
Back to top
|
|
 |
nooby
Joined: 29 Jun 2008 Posts: 9387 Location: SwedenEurope
|
Posted: Fri 01 Jun 2012, 11:37 Post subject:
|
|
Yes sorry my careless comment went down the wrong rail.
Back on track with two links.
http://puppylinux.org/wikka/Grub2
and this one should have enough info to try out too.
http://www.murga-linux.com/puppy/viewtopic.php?t=78375
Try to follow these suggestions and good luck
_________________
I'm a noob so I use Google Search of Puppy Forum
|
|
Back to top
|
|
 |
|