Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (5) </ 1 2 3 [4] 5 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: squashFS, squashFS vs. cloop for DSL< Next Oldest | Next Newest >
The DSL bootprocess
Unregistered






Posted: Jan. 04 2005,04:22 QUOTE

hehe, that silly bugger, all confusing people. Using init's the problem.

Init, as well as the entirety of inittab is INSIDE the KNOPPIX file.  ntfs.o has to be loaded by the linuxrc inside minirt24.gz before it starts searching for places from which to mount the KNOPPIX file.

Here's how I've figured the bootprocess:
Bootloader
kernel loads and mounts the initrd (minirt24.gz), attempts to exec /bin/init
/bin/init is either an alias for, or a script that loads linuxrc
linuxrc does a lot, but in essence, it finds the root partition, mounts it, and passes control to init, switching to runlevel S

When changing runlevels, init executes what commands are found in the inittab.  In the case of DSL (and debian in general), it executes that which is contained in /rc{runlevel}.d

Init starts by switching to runlevel S, so the contents of /etc/rcS.d are executed in order (K00-K99, then S00-S99).  For both Knoppix and DSL, this is all the hotplug stuff you see on boot.  For DSL, it's also where the myDSL stuff is loaded.

Then init switches to the runlevel defined by the "initdefault", in the case of DSL, 5.  This is where services specific to our GUI are loaded (sound, printer, etc).  You can also place stuff to run before the gui starts here.  See below before you go mad-dashing with scite or beaver.

You'll see in inittab that the next thing is to run bash -login.  This executes .bashrc and .bash_profile from ${HOME} (in the case of the DSL LiveCD, this is /home/dsl).  .bash_profile starts X (if you're not connecting via SSH).  startx, among other things, checks to see if there's an xconfiguration, if not, calls xsetup.sh.  After that, it starts the xserver and executes ~/.xinitrc

boom.  That's how DSL boots.  Now you know where to place anything based on where it should be in that process.
Back to top
Fordi Offline





Group: Members
Posts: 90
Joined: April 2004
Posted: Jan. 04 2005,04:44 QUOTE

Actually, I just read the first reply to that post.  I'm going to make an NTFS partition with another computer and get back to you.
Back to top
Profile PM 
Fordi Offline





Group: Members
Posts: 90
Joined: April 2004
Posted: Jan. 04 2005,05:35 QUOTE

Ugh.  You know, after all that work, doing things that aren't supposed to work, you know what I got hung up on?

user.tar was creating an ownership problem when extracted from runlevel 5.  A simple sudo and it was fixed.  The only way I knew was X wouldn't start.  Took me two HOURS to figure that out.

I hate that shit.

Anyway, I'm nearly done.  Right now I'm getting script execution right, then I gotta work on the sdm dynamic loader script.   Then I can release the product.
Back to top
Profile PM 
noclobber Offline





Group: Members
Posts: 75
Joined: Sep. 2004
Posted: Jan. 04 2005,17:37 QUOTE

A dumb question:

Can the number of cloop devices in DSL be increased?


--------------
Don't say "No" to Digital Restrictions Management, say "HELL, NO!!!".
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: Jan. 04 2005,18:33 QUOTE

Of course, I started with 4 devices. Because at the beginning there were not many ci extensions. When I introduced the uci, I added 4 more. It is a caution approach that we take. We wanted to see performance running 8 cloops in liveCD environment. I will now bump the number up again. I would imagine that it is limited by the device number size like the other devices are, and of course, performance.
Back to top
Profile PM WEB 
20 replies since Dec. 19 2004,03:55 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (5) </ 1 2 3 [4] 5 >/
reply to topic new topic new poll
Quick Reply: squashFS

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code