How to dual-boot Ubuntu and frugal Puppy?
How to dual-boot Ubuntu and frugal Puppy?
hi, i have read everything i can find, but still can't seem to get my puppy to boot using a grub2 menu built from ubuntu.
currently i have added 4 slightly different boot options for puppy, but none of them work. i update the 40* file and run update-grub.
the error i get is:
error: unknown filesystem or error: file not found (this one probably is a result of entering the incorrect disk partition #)
you need to load the kernel first
press any key to continue
i get one of the two errors above on all 4 options i have entered.
first time i tried this using the puppy load to hard drive option.
i then reformatted the partition, and reloaded puppy with a frugal install.
after the install to hd thru puppy, i boot ubuntu and run update-grub
i have modified the 40* line with various options, but none work.
i have not tried to install grub thru puppy, since i was using ubuntu to update grub. do i need to install grub via puppy, then overlay it with ubuntu?
thanks for your help.
looks like i need to move this to a different folder, but not sure how to do that.. sorry for the problem.
currently i have added 4 slightly different boot options for puppy, but none of them work. i update the 40* file and run update-grub.
the error i get is:
error: unknown filesystem or error: file not found (this one probably is a result of entering the incorrect disk partition #)
you need to load the kernel first
press any key to continue
i get one of the two errors above on all 4 options i have entered.
first time i tried this using the puppy load to hard drive option.
i then reformatted the partition, and reloaded puppy with a frugal install.
after the install to hd thru puppy, i boot ubuntu and run update-grub
i have modified the 40* line with various options, but none work.
i have not tried to install grub thru puppy, since i was using ubuntu to update grub. do i need to install grub via puppy, then overlay it with ubuntu?
thanks for your help.
looks like i need to move this to a different folder, but not sure how to do that.. sorry for the problem.
Edit in ubuntu install /etc/grub.d/40_custom and insert:
where "puppy" is the subdir of frugal install and z is 0 if x is a, z is 1 if x is b and so on,. If your drive is a external usb hd change pmedia=atahd with pmedia=usbhd and so on. Save 40_custom. Then boot ubuntu and in terminal:
Reboot and choose to boot puppy.
Code: Select all
menuentry "Puppy Linux (frugal on sdxy)" {
set root=(hdz,y)
linux /puppy/vmlinuz pmedia=atahd psubdir=puppy pfix=fsck
initrd /puppy/initrd.gz
}
Code: Select all
sudo update-grub
I should not give advice because I know too little
and I fail too.
But this does not work You wrote
i have not tried to install grub thru puppy, since i was using ubuntu to update grub. do i need to install grub via puppy, then overlay it with ubuntu?
That does not work. Ubuntu has to be first it is set up that way.
Then you add puppy on the 40 things and it is very important
to get that one right or else it does not each show puppy as a choice even.
So use the link I have in my signature and use proper keywords
for searching through this forum for to find some post that tells
about it.
I trust that the member/user rcrsn51 of this forum may have a post
somewhere
Hope you find a solution and if you do would be much appreciated
if you share it here in the thread too. Could help others
and I fail too.
But this does not work You wrote
i have not tried to install grub thru puppy, since i was using ubuntu to update grub. do i need to install grub via puppy, then overlay it with ubuntu?
That does not work. Ubuntu has to be first it is set up that way.
Then you add puppy on the 40 things and it is very important
to get that one right or else it does not each show puppy as a choice even.
So use the link I have in my signature and use proper keywords
for searching through this forum for to find some post that tells
about it.
I trust that the member/user rcrsn51 of this forum may have a post
somewhere
Hope you find a solution and if you do would be much appreciated
if you share it here in the thread too. Could help others
I use Google Search on Puppy Forum
not an ideal solution though
not an ideal solution though
http://www.murga-linux.com/puppy/viewtopic.php?t=85496nooby wrote:I should not give advice because I know too little
and I fail too.
But this does not work You wrote
menuentry "Slacko 5.5 (frugal on sda7)" {
set root=(hd0,7)
linux /vmlinuz pmedia=atahd pfix=fsck
initrd /initrd.gz
}
So change the number there to the correct partition.
Remember that Grub2 has another way to count
then what grub4dos have. Others can tell you how.
I don't know. But I guess them are different like this
root=(hd0,7) in grub2 becomes
root=(hdo,6) in grub4dos?
set root=(hd0,7)
linux /vmlinuz pmedia=atahd pfix=fsck
initrd /initrd.gz
}
So change the number there to the correct partition.
Remember that Grub2 has another way to count
then what grub4dos have. Others can tell you how.
I don't know. But I guess them are different like this
root=(hd0,7) in grub2 becomes
root=(hdo,6) in grub4dos?
I use Google Search on Puppy Forum
not an ideal solution though
not an ideal solution though
I thought I replied, but maybe another post came in while i was trying, and somehow i lost my response.. if not, i apologize for submitting this twice..
First, i want to thank all of you for your support !! I really appreciate the help.
Seems like I have already tried most of the suggestions, but maybe i am missing the key element somewhere.. here is the output from df, fdisk, my menu entries, etc that should give the more qualified the details needed to solve this..
first, here are the various entries i added to the 40* entry in Ubuntu..
and here are details about my hardware (its old) and my pup setup
i will go thru each of your posts and try to figure out what i need to do different.
correct me if i am wrong, but i think i can add multiple variations to the 40* file, and not hurt anything. if one of them happens to be right, then it should boot, and i can then delete the others.. or at least that is what i was thinking..
First, i want to thank all of you for your support !! I really appreciate the help.
Seems like I have already tried most of the suggestions, but maybe i am missing the key element somewhere.. here is the output from df, fdisk, my menu entries, etc that should give the more qualified the details needed to solve this..
first, here are the various entries i added to the 40* entry in Ubuntu..
Code: Select all
dan@sony:~$ cat pup.lst
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Puppy Linux Slacko 5.4 Opta" {
set root=(hd0,5)
linux /puppy5.4/vmlinux pmedia=atahd pfix=fsck psubdir=puppy5.4
initrd /puppy5.4/initrd.gz
}
menuentry "Puppy Linux Slacko 5.4 Optb" {
set root=(hd0,6)
linux /puppy5.4/vmlinux pmedia=atahd pfix=fsck psubdir=puppy5.4
initrd /puppy5.4/initrd.gz
}
menuentry "Puppy Linux Slacko 5.4 Optc" {
set root=(hd0,5)
linux /puppy5.4/vmlinux psubdir=puppy5.4
initrd /puppy5.4/initrd.gz
}
menuentry "Puppy Linux Slacko 5.4 Opt3" {
set root=(hd0,6)
linux /puppy5.4/vmlinux psubdir=puppy5.4
initrd /puppy5.4/initrd.gz
}
Code: Select all
Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe6e2a159
Device Boot Start End Blocks Id System
/dev/sda1 * 1 637 5114880 83 Linux
Partition 1 does not end on cylinder boundary.
/dev/sda2 4101 4865 6144800+ 5 Extended
/dev/sda3 638 2040 11269597+ 83 Linux
/dev/sda4 2041 4100 16546950 83 Linux
/dev/sda5 4681 4865 1485981 82 Linux swap / Solaris
/dev/sda6 4101 4680 4658787 83 Linux
Partition table entries are not in disk order
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 5034496 2348136 2430616 50% /
none 246376 244 246132 1% /dev
none 250596 184 250412 1% /dev/shm
none 250596 84 250512 1% /var/run
none 250596 0 250596 0% /var/lock
none 250596 0 250596 0% /lib/init/rw
total 179136
drwxr-xr-x 4 root root 4096 2013-04-19 08:05 ./
drwxr-xr-x 23 root root 4096 2013-04-20 10:23 ../
drwx------ 2 root root 16384 2013-04-19 07:47 lost+found/
drwxr-xr-x 2 root root 4096 2013-04-19 07:52 puppy5.4/
-rw-r--r-- 1 root root 157470752 2013-04-19 08:06 puppy_slacko_5.4.sfs
-rw-r--r-- 1 root root 536870912 2013-04-19 08:06 slackosave-dan.4fs
total 158428
drwxr-xr-x 2 root root 4096 2013-04-19 07:52 ./
drwxr-xr-x 4 root root 4096 2013-04-19 08:05 ../
-rw-r--r-- 1 root root 0 2013-04-19 07:52 ATAHD
-rw-r--r-- 1 root root 1875074 2013-04-19 07:52 initrd.gz
-rw-r--r-- 1 root root 157470752 2013-04-19 07:52 puppy_slacko_5.4.sfs
-rw-r--r-- 1 root root 2868400 2013-04-19 07:52 vmlinuz
dan@sony:~$
correct me if i am wrong, but i think i can add multiple variations to the 40* file, and not hurt anything. if one of them happens to be right, then it should boot, and i can then delete the others.. or at least that is what i was thinking..
i was reading some other posts, and saw where someone added a uuid entry, so i tried that..
basically added: search --no-floppy --fs-uuid --set 5ddaba1b-a977-4409-a78d-09f6993275a8 (except the 5dd.. was actually 6..something that is the uuid from that partition).
rebuilt grub.
now i do not get the unknown filesystem or file not found error message.
i just get the "you need to load the kernel first" error message.
basically added: search --no-floppy --fs-uuid --set 5ddaba1b-a977-4409-a78d-09f6993275a8 (except the 5dd.. was actually 6..something that is the uuid from that partition).
rebuilt grub.
now i do not get the unknown filesystem or file not found error message.
i just get the "you need to load the kernel first" error message.
Code: Select all
menuentry "Puppy Linux Slacko 5.4 Opta" {
set root=(hd0,5)
linux /puppy5.4/vmlinux pmedia=atahd pfix=fsck psubdir=puppy5.4
initrd /puppy5.4/initrd.gz
}
probably getting the error msg from my opt b, which uses hd0,6 instead of hd0,5
not really sure what command tells me how a partition is formatted, but the df command shows sda6 as ID 83. i am pretty sure when i formatted it, i selected ext4.
not really sure what command tells me how a partition is formatted, but the df command shows sda6 as ID 83. i am pretty sure when i formatted it, i selected ext4.
Code: Select all
dan@sony:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda1 5034496 2381784 2396968 50% /
none 246376 244 246132 1% /dev
none 250596 196 250400 1% /dev/shm
none 250596 84 250512 1% /var/run
none 250596 0 250596 0% /var/lock
none 250596 0 250596 0% /lib/init/rw
/dev/sda6 4585568 477716 3874916 11% /Puppy
dan@sony:~$ cd /Puppy
dan@sony:/Puppy$ l
lost+found/ puppy5.4/ puppy_slacko_5.4.sfs slackosave-dan.4fs
dan@sony:/Puppy$ ll
total 179136
drwxr-xr-x 4 root root 4096 2013-04-19 08:05 ./
drwxr-xr-x 23 root root 4096 2013-04-20 10:23 ../
drwx------ 2 root root 16384 2013-04-19 07:47 lost+found/
drwxr-xr-x 2 root root 4096 2013-04-19 07:52 puppy5.4/
-rw-r--r-- 1 root root 157470752 2013-04-19 08:06 puppy_slacko_5.4.sfs
-rw-r--r-- 1 root root 536870912 2013-04-19 08:06 slackosave-dan.4fs
dan@sony:/Puppy$ ll puppy5.4
total 158428
drwxr-xr-x 2 root root 4096 2013-04-19 07:52 ./
drwxr-xr-x 4 root root 4096 2013-04-19 08:05 ../
-rw-r--r-- 1 root root 0 2013-04-19 07:52 ATAHD
-rw-r--r-- 1 root root 1875074 2013-04-19 07:52 initrd.gz
-rw-r--r-- 1 root root 157470752 2013-04-19 07:52 puppy_slacko_5.4.sfs
-rw-r--r-- 1 root root 2868400 2013-04-19 07:52 vmlinuz
dan@sony:/Puppy$
this is what i now have in the 40* file:
Code: Select all
dan@sony:~$ cat /etc/grub.d/4*
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
menuentry "Puppy Linux Slacko 5.4 Opt1" {
set root='(hd0,6)'
search --no-floppy --fs-uuid --set 68af5b39-1f42-4dbb-8e0f-df6fc80d5766
linux /puppy5.4/vmlinuz root=UUID=68af5b39-1f42-4dbb-8e0f-df6fc80d5766 pmedia=atahd pfix=fsck psubdir=puppy5.4
initrd /puppy5.4/initrd.gz
}
EOF
menuentry "Puppy Linux Slacko 5.4 Opt2" {
set root=(hd0,6)
linux /puppy5.4/vmlinuz pmedia=atahd pfix=fsck psubdir=puppy5.4
initrd /puppy5.4/initrd.gz
}
EOF
dan@sony:~$
ran update-grub after prev mod to 40 file.
now when i try to boot, i get:
file not found
you need to load the kernel first
from both opt 1 and opt 2.
seems like when i used hd0,5 instead of hd0,6 it did not give the file not found error, but still did give the you need to load the kernel first error.
now when i try to boot, i get:
file not found
you need to load the kernel first
from both opt 1 and opt 2.
seems like when i used hd0,5 instead of hd0,6 it did not give the file not found error, but still did give the you need to load the kernel first error.
I can see two things wrong with your custom file. You have two EOF statements. And you are mixing "set root" commands with "search" commands.
If this were my setup, I would scrap GRUB2 and run Grub4Dos Bootloader Config. It is pretty good at identifying Ubuntu.
Or you can read here.
If this were my setup, I would scrap GRUB2 and run Grub4Dos Bootloader Config. It is pretty good at identifying Ubuntu.
Or you can read here.
Edit oops now I get it the core.img only exist after an install
and you tell him to use grup4dos for to recognize an already
fully installed Ubuntu?
Okay forget my post sorry Bed is calling too tired to think straight
old text
Now be patient with an old fool.
But I thought Ubuntu only worked using grub2
it would look for grub2 when it update the full install?
" Grub4Dos Bootloader Config. It is pretty good at identifying Ubuntu.
"
But I trust you have actually installed a full install using Grub4Dos then?
is it this part of the text or further down maybe. it is late here so I go to bed.
and only have ubuntu clones just now to look at.
and you tell him to use grup4dos for to recognize an already
fully installed Ubuntu?
Okay forget my post sorry Bed is calling too tired to think straight
old text
Now be patient with an old fool.
But I thought Ubuntu only worked using grub2
it would look for grub2 when it update the full install?
" Grub4Dos Bootloader Config. It is pretty good at identifying Ubuntu.
"
But I trust you have actually installed a full install using Grub4Dos then?
is it this part of the text or further down maybe. it is late here so I go to bed.
core.img does it have such a file in the iso? I fail to rememberUsers who dual-boot Puppy with GRUB2 distros are familiar with the following problem. GRUB2 cannot auto-detect the Puppy install, so you must perform a manual update-grub procedure. But Legacy GRUB Config 2013 uses a little GRUB2 back-door trick. Expert Mode will create a menu entry like this:
Code:
title Ubuntu
root (hd0,x)
kernel /boot/grub/core.img
Replace "x" with the Ubuntu partition number.
and only have ubuntu clones just now to look at.
I use Google Search on Puppy Forum
not an ideal solution though
not an ideal solution though
i was not sure about the EOF statements. originally i did not have any EOF stmts. looking at various posts, i saw where some had them, so i thought maybe that was the problem, and i added them. honestly, i am not sure if they make any difference or not.rcrsn51 wrote:I can see two things wrong with your custom file. You have two EOF statements. And you are mixing "set root" commands with "search" commands.
If this were my setup, I would scrap GRUB2 and run Grub4Dos Bootloader Config. It is pretty good at identifying Ubuntu.
Or you can read here.
i had tried to load ubuntu 12.04 from a CD i had, but it kept failing after about 85% complete with a "unknown error". i am pretty sure i used the CD on a different pc successfully, but am not 100% sure. looking at the download sites, it looks like 12.04 may not fit on a CD and maybe requires the space of a DVD.. this old pc i am using only has a cd reader..
right now i am doing an "upgrade" from 10.04 to 12.04.
i have not had much luck with doing ubuntu upgrades in the past.. usually have to do a new install, which honestly is probably the best option. only reason i am not doing it now, is because i am too lazy to swap the hdwe out to get it to load.. either in a different pc with this hd, or this pc with a different cd/dvd reader..
it is still loading.. will let it run its course, and go from there.
i would rather stay with the grub2 loader if possible, but if i can't get it to work, will probably do as you suggest, and try one of the older grub options. thanks again for your help. also, i still have the option of just loading puppy from cd. just did it again before this ubuntu upgrade, and noticed it seemed to know about the previous save to hd. not sure if that made it load faster or not, but maybe so..
guess i selected the wrong grub when i did the reinstall..
i ended up reformatting sda6 and reload puppy to it, setting the boot flag and installed grub in the mbr via puppy. guess i borked something up somewhere.. now i am getting a Error 16 after stage 1.5 and it halts. do not see the grub menu where i normally see all of the boot options.
i can reload it using grub4dos if you think it will help..
i ended up reformatting sda6 and reload puppy to it, setting the boot flag and installed grub in the mbr via puppy. guess i borked something up somewhere.. now i am getting a Error 16 after stage 1.5 and it halts. do not see the grub menu where i normally see all of the boot options.
i can reload it using grub4dos if you think it will help..
ugh.. i have not had much luck, but don't give up easily.. i tried both grub and grub4dos install via puppy. grub would not boot anything, including ubuntu. did not even get a boot menu. stopped at grub prompt.
grub4dos did give a nice menu, but nothing would boot, including puppy.
i was getting error 13. at times i was getting error 15 and maybe 16 too.
ended up re-installing grub2 via ubuntu live cd. now can boot into ubuntu. am getting bad magic or invalid magic number when trying to boot puppy.
can still boot puppy from cd, just never have been able to get it to boot from hd.
grub4dos did give a nice menu, but nothing would boot, including puppy.
i was getting error 13. at times i was getting error 15 and maybe 16 too.
ended up re-installing grub2 via ubuntu live cd. now can boot into ubuntu. am getting bad magic or invalid magic number when trying to boot puppy.
can still boot puppy from cd, just never have been able to get it to boot from hd.
I am a Know nothing so take what I say with caution.
I've read that Ubuntu wants to be the first on the install.
so your latest move should allow you to add Puppy
and somebody very recently did link to how they
achieved success with dualboot so you need to find that post
with the link and to follow that lead and add puppy manually
to the right place and then update grup 2 using ubuntu
and that should work then if the code is correct
if the code has errors then grub2 tend to not show the entry.
Wish you luck
I've read that Ubuntu wants to be the first on the install.
so your latest move should allow you to add Puppy
and somebody very recently did link to how they
achieved success with dualboot so you need to find that post
with the link and to follow that lead and add puppy manually
to the right place and then update grup 2 using ubuntu
and that should work then if the code is correct
if the code has errors then grub2 tend to not show the entry.
Wish you luck
I use Google Search on Puppy Forum
not an ideal solution though
not an ideal solution though