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 Thu 27 Feb 2020, 23:19
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How modify a live CD to add a boot parameter? (SOLVED)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
gychang


Joined: 29 Nov 2008
Posts: 359
Location: San Diego, CA

PostPosted: Thu 13 Feb 2020, 12:52    Post subject:  How modify a live CD to add a boot parameter? (SOLVED)  

Running the lite from CD with sav folder on a HD partition. I have a nvidia card and unless I enter the "puppy nouveau.modeset=0" on boot parameter, The screen gets all messed up.

Rather than typing it each time I boot, is it possible to automate the process?

thanks,

_________________
---
trying to learn puppylinux... Very Happy
---

Last edited by gychang on Fri 14 Feb 2020, 23:33; edited 1 time in total
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1548
Location: Connecticut, United States

PostPosted: Thu 13 Feb 2020, 14:46    Post subject:  

you will not be able to overwrite the configuration booting from a CD to include the parameter you are manually inserting. You could with a Frugal install though.
Back to top
View user's profile Send private message Visit poster's website 
mikeslr


Joined: 16 Jun 2008
Posts: 3682
Location: 500 seconds from Sol

PostPosted: Thu 13 Feb 2020, 16:07    Post subject:  

or Remaster the CD, adding the puppy nouveau.modeset=0 to its bootloader.
Back to top
View user's profile Send private message 
gychang


Joined: 29 Nov 2008
Posts: 359
Location: San Diego, CA

PostPosted: Fri 14 Feb 2020, 10:57    Post subject:  

mikeslr wrote:
or Remaster the CD, adding the puppy nouveau.modeset=0 to its bootloader.


I was able to remaster the CD, but how do I add the boot loader so it loads when the mastered CD is loading?

_________________
---
trying to learn puppylinux... Very Happy
---
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 3682
Location: 500 seconds from Sol

PostPosted: Fri 14 Feb 2020, 15:41    Post subject:  

It's been so long since I've actually booted Puppies from a CD/DVD that I don't recall which top-level scripts is actually used. I had a similar problem constructing Slacko 5.7.2 CE. I wanted the boot instructions to include "force-pae": that instruction will be used when needed; ignored when not. But there are two possible files: isolinux.cfg and grub.cfg. Both are text files, and you can edit them before you package a remaster as an ISO for burning to a CD/DVD. I'm pretty sure the isolinux.cfg is the file used when booting from a CD/DVD. So, my edited version of it includes:

label puppy
kernel vmlinuz
append initrd=initrd.gz forcepae pmedia=cd --forcepae

You can add your code to the "append" line instead of "forcepae".

Just to be certain, I also included the "force-pae" argument to the grub.cfg script, as follows:

}
menuentry "Start CE_Slacko - FORCEPAE" {
linux /vmlinuz forcepae -- forcepae
initrd /initrd.xz
}

You can add your code at the end of the "linux" line instead of "forcepae"

Well, that's my guess. Rolling Eyes Anyone having actual experience, don't hesitate to supply it.
Back to top
View user's profile Send private message 
gychang


Joined: 29 Nov 2008
Posts: 359
Location: San Diego, CA

PostPosted: Fri 14 Feb 2020, 19:26    Post subject:  

mikeslr wrote:
It's been so long since I've actually booted Puppies from a CD/DVD that I don't recall which top-level scripts is actually used. I had a similar problem constructing Slacko 5.7.2 CE... So, my edited version of it includes:

label puppy
kernel vmlinuz
append initrd=initrd.gz forcepae pmedia=cd --forcepae

You can add your code to the "append" line instead of "forcepae".


should I edit my isolinux.cfg to 1) or 2)?

1)label puppy
kernel vmlinuz
append initrd=initrd.gz puppy nouveau.modeset=0 pmedia=cd --puppy nouveau.modeset=0

2))label puppy
kernel vmlinuz
append initrd=initrd.gz nouveau.modeset=0 pmedia=cd --nouveau.modeset=0

_________________
---
trying to learn puppylinux... Very Happy
---
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8745
Location: qld

PostPosted: Fri 14 Feb 2020, 19:30    Post subject:  

gychang

Try this command in a terminal when running off the CD and reboot without the "puppy nouveau.modeset=0" at boot.

Code:
echo 'options nouveau modeset=0' > /etc/modprobe.d/nouveau.conf


This creates a file that the kernel understands.

Alternatively, edit the file at /etc/modprobe.d/nouveau.conf changing the value to 0

(that's a zero)

_________________
Puppy Linux Blog - contact me for access
Back to top
View user's profile Send private message Visit poster's website 
gychang


Joined: 29 Nov 2008
Posts: 359
Location: San Diego, CA

PostPosted: Fri 14 Feb 2020, 23:32    Post subject:  

01micko wrote:
gychang

Try this command in a terminal when running off the CD and reboot without the "puppy nouveau.modeset=0" at boot.

Code:
echo 'options nouveau modeset=0' > /etc/modprobe.d/nouveau.conf


This creates a file that the kernel understands.

Alternatively, edit the file at /etc/modprobe.d/nouveau.conf changing the value to 0

(that's a zero)


thanks to all, particularly to 01micko. I edited the file as suggested and now works great, no manual typing at boot parameter.

_________________
---
trying to learn puppylinux... Very Happy
---
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0483s ][ Queries: 12 (0.0108s) ][ GZIP on ]