Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 25 Jul 2014, 21:22
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
How to dual-boot Ubuntu and frugal Puppy?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [32 Posts]   Goto page: 1, 2, 3 Next
Author Message
vbdanl

Joined: 08 Jul 2007
Posts: 27

PostPosted: Sat 20 Apr 2013, 01:17    Post subject:  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.
Back to top
View user's profile Send private message 
watchdog

Joined: 28 Sep 2012
Posts: 505

PostPosted: Sat 20 Apr 2013, 02:15    Post subject:  

Edit in ubuntu install /etc/grub.d/40_custom and insert:

Code:
menuentry "Puppy Linux  (frugal on sdxy)" {
set root=(hdz,y)
linux /puppy/vmlinuz pmedia=atahd psubdir=puppy pfix=fsck
initrd /puppy/initrd.gz
}


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:

Code:
sudo update-grub


Reboot and choose to boot puppy.
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sat 20 Apr 2013, 05:18    Post subject:  

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

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
watchdog

Joined: 28 Sep 2012
Posts: 505

PostPosted: Sat 20 Apr 2013, 07:04    Post subject:  

nooby wrote:
I should not give advice because I know too little
and I fail too.

But this does not work You wrote


http://www.murga-linux.com/puppy/viewtopic.php?t=85496
Back to top
View user's profile Send private message 
nooby

Joined: 29 Jun 2008
Posts: 10557
Location: SwedenEurope

PostPosted: Sat 20 Apr 2013, 11:27    Post subject:  

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?

_________________
I use Google Search on Puppy Forum
not an ideal solution though
Back to top
View user's profile Send private message 
vbdanl

Joined: 08 Jul 2007
Posts: 27

PostPosted: Sat 20 Apr 2013, 11:52    Post subject:  

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..
Code:
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
}


and here are details about my hardware (its old) and my pup setup
Code:
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:~$

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..
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8906
Location: Stratford, Ontario

PostPosted: Sat 20 Apr 2013, 11:56    Post subject:  

vbdanl wrote:

linux /puppy5.4/vmlinux

"vmlinux" should be "vmlinuz"
Back to top
View user's profile Send private message 
vbdanl

Joined: 08 Jul 2007
Posts: 27

PostPosted: Sat 20 Apr 2013, 11:59    Post subject:  

on my menu entry for Opt a and Opt c, i get this error:
error: unknown filesystem
error: you need to load the kernel first

on Opt b and 3, I get:
error: file not found
error: you need to load the kernel first

thanks again for your patience and help..
Back to top
View user's profile Send private message 
vbdanl

Joined: 08 Jul 2007
Posts: 27

PostPosted: Sat 20 Apr 2013, 12:07    Post subject:  

rcrsn51 wrote:
vbdanl wrote:

linux /puppy5.4/vmlinux

"vmlinux" should be "vmlinuz"

i changed all of the menu entries to have vmlinuz instead of vmlinux, and ran update-grub.
i still get the exact same error messages.. dang, i thought sure that would fix it..
Back to top
View user's profile Send private message 
vbdanl

Joined: 08 Jul 2007
Posts: 27

PostPosted: Sat 20 Apr 2013, 12:51    Post subject:  

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.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8906
Location: Stratford, Ontario

PostPosted: Sat 20 Apr 2013, 12:54    Post subject:  

Code:
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
}


(hd0,5) refers to sda5. Look in that partition. How is it formatted? Is there a folder named puppy5.4? Does it contain the files vmlinuz and initrd.gz?
Back to top
View user's profile Send private message 
vbdanl

Joined: 08 Jul 2007
Posts: 27

PostPosted: Sat 20 Apr 2013, 16:27    Post subject:  

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.
Code:
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$
Back to top
View user's profile Send private message 
vbdanl

Joined: 08 Jul 2007
Posts: 27

PostPosted: Sat 20 Apr 2013, 16:32    Post subject:  

this is what i now have in the 40* file:
Code:
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:~$
Back to top
View user's profile Send private message 
vbdanl

Joined: 08 Jul 2007
Posts: 27

PostPosted: Sat 20 Apr 2013, 16:36    Post subject:  

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.
Back to top
View user's profile Send private message 
rcrsn51


Joined: 05 Sep 2006
Posts: 8906
Location: Stratford, Ontario

PostPosted: Sat 20 Apr 2013, 16:55    Post subject:  

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.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [32 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0999s ][ Queries: 12 (0.0047s) ][ GZIP on ]