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 Sun 26 Apr 2015, 04:10
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to manually make Puppy boot from a USB stick = SYSLINUX
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
linuxcbon

Joined: 09 Aug 2007
Posts: 937

PostPosted: Mon 27 Oct 2014, 17:21    Post subject:  How to manually make Puppy boot from a USB stick = SYSLINUX  

With syslinux :
- Boot the live CD of Puppy Linux
** caution all data with be erased from the USB stick **
- Plug in the USB stick and create one partition in the stick (/dev/sdb1)
- Format the partition to FAT32
- Install syslinux to the partition
Code:
# syslinux /dev/sdb1

- Install the MBR to the USB stick
Code:
# dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/mbr.bin of=/dev/sdb

- Download puppy linux iso, for ex Precise-5.7.1
- Create a new directory in the usb stick called Precise-5.7.1
- Mount the iso and copy all files from iso to the directory "Precise-5.7.1"
- You can do the same with other distros : tahr, wary, racy etc

- Create a new blank file called syslinux.cfg at root of usb
Code:
TIMEOUT 200
PROMPT 1
DEFAULT distro1

SAY Type distro1 for Precise 5.7.1
SAY Type distro2 for Tahr 6.0 CE
SAY Type distro3 for Wary 5.5
SAY Type distro4 for Racy 5.5

LABEL distro1
  KERNEL /Precise-5.7.1/vmlinuz
  APPEND initrd=/Precise-5.7.1/initrd.gz
LABEL distro2
  KERNEL /Tahr-6.0-CE/vmlinuz
  APPEND initrd=/Tahr-6.0-CE/initrd.gz
LABEL distro3
  KERNEL /Wary-5.5/vmlinuz
  APPEND initrd=/Wary-5.5/initrd.gz
LABEL distro4
  KERNEL /Racy-5.5/vmlinuz
  APPEND initrd=/Racy-5.5/initrd.gz

- Set BIOS to boot from USB
- Restart PC

Last edited by linuxcbon on Sat 01 Nov 2014, 16:10; edited 2 times in total
Back to top
View user's profile Send private message 
Flash
Official Dog Handler


Joined: 04 May 2005
Posts: 11364
Location: Arizona USA

PostPosted: Mon 27 Oct 2014, 23:50    Post subject:  

This isn't really a How-to yet. How about posting both of them in the HOWTO forum? Only in separate threads, one for syslinux and one for grub4dos.
Back to top
View user's profile Send private message 
linuxcbon

Joined: 09 Aug 2007
Posts: 937

PostPosted: Tue 28 Oct 2014, 10:07    Post subject:  

Ok I updated with syslinux howto.
Let me know if it works for you.
Back to top
View user's profile Send private message 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Thu 30 Oct 2014, 03:43    Post subject:  

Nice one @linuxcbon,

I will try this out.
Thanks.

Edit: For next puppy do I only need to add last 3 lines in syslinux.cfg , for example if I added Fatdog, should my cfg file be like...
Code:
TIMEOUT 50
PROMPT 1
DEFAULT Precise5.7.1
LABEL Precise5.7.1
  KERNEL /Precise-5.7.1/vmlinuz
  APPEND initrd=/Precise-5.7.1/initrd.gz

LABEL Fatdog
  KERNEL /Fatdog/vmlinuz
  APPEND initrd=/Fatdog/initrd.gz


- Neeraj.

_________________
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.”
- Amara’s Law.
Back to top
View user's profile Send private message 
linuxcbon

Joined: 09 Aug 2007
Posts: 937

PostPosted: Thu 30 Oct 2014, 11:15    Post subject:  

neerajkolte wrote:
Edit: For next puppy do I only need to add last 3 lines in syslinux.cfg , for example if I added Fatdog, should my cfg file be like...
- Neeraj.

hi Neeraj,
yes it should work easily, try it out and let me know if any bugs or problems.
cheers
Back to top
View user's profile Send private message 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Thu 30 Oct 2014, 12:33    Post subject:  

Here is how my syslinux.cfg looks
Code:
say Type "fatdog631" or "tahrpup584" with kernel parameters, or just press Enter for default boot.
default fatdog631
timeout 50
prompt 1
label fatdog631
kernel /fd631/vmlinuz
initrd /fd631/initrd
append waitdev=0 base2ram=yes basesfs=device:sda7 savefile=ram:device:sda7:/fd64save

label tahrpup584
kernel /tahrpup584/vmlinuz
append initrd=/tahrpup584/initrd.gz
This works nicely.
Only trouble is if I want to boot tahrpup, I have to type tahrpup584 and press enter.
I could shorten the label, but I wish it had selectable entries with arrow keys. Maybe I should read it's wiki.

Anyway I like syslinux, it seems simple and efficient. My fatdog gets to working desktop in 10sec flat...

Have you by any chance taken a look at EXTLINUX. It seems similar and boots from Linux ext2/ext3/ext4, XFS, Btrfs, or UFS/UFS2 filesystems. FAT and NTFS are also supported.

I was thinking to format my usb stick to ext4 with journaling disabled.

Thanks.

- Neeraj.

_________________
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.”
- Amara’s Law.
Back to top
View user's profile Send private message 
linuxcbon

Joined: 09 Aug 2007
Posts: 937

PostPosted: Thu 30 Oct 2014, 12:52    Post subject:  

You have to type the label, but it's easy. Extlinux is for ext partitions. I chose fat32 because it can be read from windows too. No need for a guide for each format, they all work the same.
Back to top
View user's profile Send private message 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Thu 30 Oct 2014, 13:32    Post subject:  

If you look at Screenshots, it seems there are some graphical menu options

I will look further tomorrow. Now got to sleep.

Thanks.

- Neeraj

_________________
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.”
- Amara’s Law.
Back to top
View user's profile Send private message 
linuxcbon

Joined: 09 Aug 2007
Posts: 937

PostPosted: Thu 30 Oct 2014, 15:17    Post subject:  

neerajkolte wrote:
If you look at Screenshots, it seems there are some graphical menu options I will look further tomorrow. Now got to sleep. Thanks. - Neeraj

Yes I know, there are menus, but I am not going to explain them in the howto, because I want to keep it minimal. If people want more options, they can read the documentations. Wink
Back to top
View user's profile Send private message 
Galbi


Joined: 21 Sep 2011
Posts: 589
Location: Bs.As. - Argentina.

PostPosted: Thu 30 Oct 2014, 17:59    Post subject:  

linuxcbon wrote:
If people want more options, they can read the documentations. Wink


Hey! no, no, no... we want everything chewed and predigested...

Very Happy just kidding...

Thanks for the tutorial, I've downloaded X-salacko .iso so I will try it in a SD card.

_________________
Remember: "pecunia pecuniam parere non potest"
Back to top
View user's profile Send private message 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Sat 01 Nov 2014, 13:37    Post subject: Re: How to manually make Puppy boot from a USB stick = SYSLINUX  

A note to Fatdog users.
In fatdog mbr.bin is not at /usr/lib/syslinux, but at /usr/share/syslinux.
So Insted of
Code:
# dd bs=440 count=1 conv=notrunc if=/usr/lib/syslinux/mbr.bin of=/dev/sdb
Use This
Code:
# dd bs=440 count=1 conv=notrunc if=/usr/share/syslinux/mbr.bin of=/dev/sdb


Thanks.

- Neeraj.

_________________
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.”
- Amara’s Law.
Back to top
View user's profile Send private message 
linuxcbon

Joined: 09 Aug 2007
Posts: 937

PostPosted: Sat 01 Nov 2014, 16:13    Post subject:  

hi,
I added more examples in the config file, and some "SAY" lines for booting easier with a list to chose from.
Cheers
Back to top
View user's profile Send private message 
raffy

Joined: 25 May 2005
Posts: 4824
Location: Manila

PostPosted: Mon 03 Nov 2014, 01:06    Post subject: type 1, 2, or 3  

neerajkolte wrote:
Code:
label tahrpup584
kernel /tahrpup584/vmlinuz
append initrd=/tahrpup584/initrd.gz

This works nicely.
Only trouble is if I want to boot tahrpup, I have to type tahrpup584 and press enter.


Try using menu.txt that contains

Code:
1 - Fatdog

2 - Tahrpup


and add at the top of syslinux.cfg

Code:
prompt 1
display menu.txt


Your label will therefore be

Code:
label 1
... Fatdog entries...

label 2
... Tahrpup entries...


Then you only type "2" when using Tahrpup instead of the default 1 (Fatdog).

_________________
Puppy user since Oct 2004. Want FreeOffice? Get the sfs (English only).
Back to top
View user's profile Send private message 
neerajkolte


Joined: 10 Feb 2014
Posts: 517
Location: Pune, India.

PostPosted: Mon 03 Nov 2014, 04:01    Post subject:  

Thanks raffy,
my syslinux.cfg reads
Code:
say Type "1" followed with kernel parameters for Fatdog631.
say Type "2" followed with kernel parameters for Fatdog700b2.
say Type "3" followed with kernel parameters for Tahrpup 6.0 CE.
say OR just press Enter for default boot.
default 1
timeout 50
prompt 1
label 1
kernel /fd631/vmlinuz
initrd /fd631/initrd
append waitdev=0 base2ram=yes basesfs=device:sda7:/fd631base/fd64-630.sfs savefile=ram:device:sda7:/fd631save

label 2
kernel /fd7b2/vmlinuz
initrd /fd7b2/initrd
append waitdev=0 base2ram=yes basesfs=device:sda7:/fd7b2base/fd64.sfs savefile=ram:device:sda7:/fd7b2save

label 3
kernel /tahrpup6/vmlinuz
initrd /tahrpup6/initrd.gz
append pmedia=atahd pupsfs=sda8:/tahrbase-6/puppy_tahr_6.0.sfs zdrv=sda8:/tahrbase-6/zdrv_tahr_6.0.sfs pupsave=sda8:/tahrbase-6/tahrsave-6
This works nicely, but I will play with your suggestion too.

Thanks.

- Neeraj.

_________________
"One of my most productive days was throwing away 1000 lines of code."
- Ken Thompson

“We tend to overestimate the effect of a technology in the short run and underestimate the effect in the long run.”
- Amara’s Law.
Back to top
View user's profile Send private message 
Keisha

Joined: 18 Nov 2014
Posts: 375

PostPosted: Wed 11 Feb 2015, 05:48    Post subject: unicornpup can be booted from f2fs using syslinux  

Unicornpup frugal install can be booted from f2fs using syslinux. I'm posting from it now, it's nice and fast:

http://murga-linux.com/puppy/viewtopic.php?p=827598#827598

_________________
“A wise man can learn more from a foolish question than a fool can learn from a wise answer.” --Bruce Lee
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0976s ][ Queries: 11 (0.0136s) ][ GZIP on ]