WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: bootcodes  (Read 9423 times)

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 810
bootcodes
« on: June 05, 2011, 12:36:13 PM »
hello fourm people,

Please can you tell me which config file i use for inserting a bootcode command.
This is so that the machine will execute the bootcodes without any manual typing
required at booting stages.

I am running TCL frm the cd loaded into ram.

Does the above idea mean that i would need to re-master the CD also?


thanks

Vince.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: bootcodes
« Reply #1 on: June 05, 2011, 01:18:25 PM »
You need to edit whatever config file your boot loader uses.
Identify your boot loader and boot device and we maybe able to point you to it.


Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 810
Re: bootcodes
« Reply #2 on: June 05, 2011, 01:39:56 PM »
uh...

the boot device is a CD drive. THe medium is a CD disc containing TCL 3.6

Is the bootloader not standard in TCL 3.6?  (and thus the appropriate config file)
(and do you know what they are......so as to tell me?)

I boot the laptop up from the TCL cd disc....then remove it from the drive.

Is this info any help?


Vince.

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: bootcodes
« Reply #3 on: June 05, 2011, 01:46:02 PM »
Sure, that'd be boot/isolinux/isolinux.cfg on the cd. See the remastering page on the wiki for the mkisofs command to pack the cd back up.
The only barriers that can stop you are the ones you create yourself.

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 810
Re: bootcodes
« Reply #4 on: June 05, 2011, 01:48:42 PM »
Hello

Oh that's great. Thanks a lot.

I will look at the wiki also

Vince.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: bootcodes
« Reply #5 on: June 05, 2011, 01:51:00 PM »
Remastering will probably make the CD less general, and it may not boot on other machines.
If you are trying to taylor to a specific machine, installing to hard disk or flash drive may be a better option.

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 810
Re: bootcodes
« Reply #6 on: June 05, 2011, 02:03:28 PM »
oh i see.

the custom CD would just be used on this laptop....and nothing else...so

although the machine does have a hard drive

Vince.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: bootcodes
« Reply #7 on: June 05, 2011, 02:52:43 PM »
If all you want to do is edit the isolinux.cfg file, why not just mount the ISO file, edit the cfg file, unmount
and burn the ISO file. I'm pretty sure that's all I did a couple of years ago when I wanted to add some
boot codes. I think the only limitation is that you don't make the file spill over to the next block.

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 810
Re: bootcodes
« Reply #8 on: June 05, 2011, 03:50:29 PM »
Rich,

that's exactly what i want to do....

so i mount the TLC disc....edit that file....then unmount the TCL disc.

remove the TCL disc from the optical drive

insert a blank CD disc into the optical drive

then burn the iso file from the desktop?

will this idea work correctly then?

vince.

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: bootcodes
« Reply #9 on: June 05, 2011, 04:05:05 PM »
No, you need to mount and edit the iso file, not the CD.

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: bootcodes
« Reply #10 on: June 05, 2011, 04:09:11 PM »
Hi vinceASPECT
Not mount the disk. Mount the the ISO file you originally downloaded to burn the disk. You may have
to mount it as a loop device, I don't recall that detail. A little google action should turn that up for you.

Offline vinceASPECT

  • Hero Member
  • *****
  • Posts: 810
Re: bootcodes
« Reply #11 on: June 05, 2011, 04:33:29 PM »
hello,

uh yes...

i just worked that out......it's the original .ISO file that i need to mount. (not the TCL cd disc)

other than that....this idea sounds like the perfect solution for what i am trying to
achieve.

thanks

Vince.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: bootcodes
« Reply #12 on: June 05, 2011, 06:29:08 PM »
Umm... last time I checked, iso9660 was a read-only filesystem.
Or am I missing something here?   ???
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11705
Re: bootcodes
« Reply #13 on: June 05, 2011, 06:38:24 PM »
Hi tinypoodle
Technically you are correct, however, if you do not change the number of blocks the file occupies you
can get away with editing it. It's been awhile since I've looked at this, but I think what makes it read
only is that you can't change directory entries this way. So you can't just start adding and removing
files.

Offline Guy

  • Hero Member
  • *****
  • Posts: 1089
Re: bootcodes
« Reply #14 on: June 05, 2011, 08:39:21 PM »
Let's say you downloaded tinycore_3.6.iso to /home/tc/dl

create a directory called tmp in /home/tc/dl

In the terminal type

Quote
sudo su
cd /home/tc/dl
/bin/mount tinycore_3.6.iso tmp

edit boot/isolinux/isolinux.cfg

to make a new iso

Quote
sudo su
/home/tc/dl
mkisofs -l -J -V TC-custom -no-emul-boot -boot-load-size 4 -boot-info-table \
-b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat -o modified_tinycore_3.6.iso tmp
« Last Edit: June 05, 2011, 08:41:31 PM by Guy »
Many people see what is. Some people see what can be, and make a difference.