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: (2) </ 1 [2] >/

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

reply to topic new topic new poll
Topic: cleaning up the root directory< Next Oldest | Next Newest >
choekstr Offline





Group: Members
Posts: 12
Joined: April 2005
Posted: April 15 2005,19:38 QUOTE

YES!  This is exactly what I want!  

Ok, 2 questions so I can understand why and roll with the proverbial punches:

1.) Why does one need to rename the knoppix image to DSL?  In your example, you have the directory formerly known as knoppix as dsl.  Did you also rename your image dsl as well?  So the actual image name would be /dsl/dsl/dsl ?  Or did you leave the image name still knoppix so it is /dsl/dsl/knoppix and then use the BOOT_IMAGE= variable and point it the "dsl" which would be the directory?

2.) Now that this is a potential fix, which it seems like renaming doesn't change anything as it is still one level deeper, what if it were yet one more level deeper?  Like this:
/boot/dsl <--- has all the dsl files
/boot/dsl/dsl  <--- has the knoppix image

Do you think THIS could be done?  I guess if I understand why the above works then it would help to determine if yet another level deeper would work; which is my ultimate ultimate goal.

Thank you SO much for taking the time to understand what I am trying to do and for taking the time to respond.  There actually IS hope.  :laugh:

Chris
Back to top
Profile PM 
krazynesphreak Offline





Group: Members
Posts: 49
Joined: May 2004
Posted: April 16 2005,05:44 QUOTE

starting all over. first i tryed to remake the cd, could not do it, but i still have the old one so it still works. this is what u will have to do in order for it to work. this is the eazy way. keep the knoppix dir*. put all ur boot files in that dir*. that way u only have one directory on the root dir*. that would be the eazies way. now i will get back to u (i hope). i`m going to look through some of my old notes. to see if we can`t get the way u want.
later
ryan

p.s. i think this is more of a kernal problem. it not program to search for any thing eles then "knoppix" so we may have to rewirte and recompile to look for the "/DSL/DSL" or "/boot/DSL/DSL". i think that is what i did with the cd is i rewrote the kernal abit. and then recompile the kernal 3 times. (for what i was doing.) i am not a programmer but i can read it and edit it some ways.
Back to top
Profile PM 
choekstr Offline





Group: Members
Posts: 12
Joined: April 2005
Posted: April 18 2005,16:37 QUOTE

Yeah, I think you and I are thinking the same thing.  I think it is looking for /knoppix/knoppix as the image file and I have it one or two levels deeper.  

Another very good bit of information about WHAT you think is calling the next step.  The kernel you think is hard-coded to call for that directory, huh?  I was hoping that it wouldn't be in there and would be in scripts, but that isn't the end of the world.

Wouldn't it be sooo easy if it were a boot-time parameter?

Thanks again, further than I was,
Chris
Back to top
Profile PM 
choekstr Offline





Group: Members
Posts: 12
Joined: April 2005
Posted: May 03 2005,23:29 QUOTE

Ok, I finally figured out what I had to do to get everything out of the root directory.

First, I moved all the files into a /boot/dsl directory.
This included the linux24, minirt24.gz, and KNOPPIX file (not the directory since I didn't want it that way)

Then all I did was mount the minirt24.gz (uncompressed first) to the filesystem:
mount -o loop minirt24 /mnt
and then edited the linuxrc script to change the KNOPPIX_DIR variable from "KNOPPIX" (which resolved to /KNOPPIX) to "boot/dsl" (which then loads the file /boot/dsl/KNOPPIX).

Save the linuxrc file, unmount the minirt24, gzip -9 it, copy it back, make a new iso and all is golden.  
Single variable change and my life is great!  I now have a clean root directory on the CD/memory stick and everything (all 7 images; dsl is one of them) are all self contained under /boot!

If anyone needs further explanation, let me know.  I can explain better.

Thanks for the help/suggestions,
Chris
Back to top
Profile PM 
8 replies since April 08 2005,18:45 < Next Oldest | Next Newest >

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

Pages: (2) </ 1 [2] >/
reply to topic new topic new poll
Quick Reply: cleaning up the root directory

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