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

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

reply to topic new topic new poll
Topic: Struggling to Remaster, Need DSL to completely load into RAM< Next Oldest | Next Newest >
casio Offline





Group: Members
Posts: 41
Joined: Sep. 2005
Posted: Oct. 09 2005,14:40 QUOTE

Quote (clacker @ Oct. 04 2005,13:50)
casio, I don't think it's anything you did.  I've run into things similar to this as well.  When you downloaded uucp from apt-get, it created the directory in RAM so things worked.  Then when you remastered the directory became a symbolic link to the CD to save space.

There is a script that is run to make the system writeable called /etc/init.d/mkwriteable that you can modify to add directories and files you want in RAM.  Check and see if the /etc/uucp directory in your remaster is a symbolic link (does it show up in light blue when you run ls /etc/uucp or with an "l" at the start of its line when you run ls -l /etc/uucp).

If it is a link, what I've done is to remove the link and copy the directory from /KNOPPIX.  If that works then you can modify your remaster's mkwriteable script to include those commands.

Clacker I may have done this wrong but when I entered the lines in mkwriteable file within in remastered Linux I added the following lines (copying these from other lines in the file) :

cp -srd /KNOPPIX/etc/uucp /ramdisk
ln -sf /ramdisk/etc/uucp /

Now looking at the /etc/uucp directory when booting this remastered disk it still shows a link to /KNOPPIX/etc/uucp is this still correct as it showed this last time.

Have I missed something or should have I not bothered with the ln statement and leave it within the ramdisk?.


--------------
Regards

Casio

Please fill free to visit my website : http://www.timcs.co.uk
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Oct. 10 2005,14:45 QUOTE

Quote (casio @ Oct. 09 2005,10:40)
Clacker I may have done this wrong but when I entered the lines in mkwriteable file within in remastered Linux I added the following lines (copying these from other lines in the file) :

cp -srd /KNOPPIX/etc/uucp /ramdisk
ln -sf /ramdisk/etc/uucp /


I think the paths you used might be putting the files and their links in the wrong places, try this instead:

cp -r /KNOPPIX/etc/uucp /ramdisk/etc
ln -sf /ramdisk/etc/uucp /etc/uucp
Back to top
Profile PM 
casio Offline





Group: Members
Posts: 41
Joined: Sep. 2005
Posted: Nov. 17 2005,16:55 QUOTE

Quote (clacker @ Oct. 10 2005,15:45)
Quote (casio @ Oct. 09 2005,10:40)
Clacker I may have done this wrong but when I entered the lines in mkwriteable file within in remastered Linux I added the following lines (copying these from other lines in the file) :

cp -srd /KNOPPIX/etc/uucp /ramdisk
ln -sf /ramdisk/etc/uucp /


I think the paths you used might be putting the files and their links in the wrong places, try this instead:

cp -r /KNOPPIX/etc/uucp /ramdisk/etc
ln -sf /ramdisk/etc/uucp /etc/uucp

Help again ! sorry for taking so long to respond to this thread - I didnt want to repeat/create a new one. I have tried as you suggested Clacker but the area still doesnt load into RAM to make it writeable

Any further Ideas?

I really need this to work and it must be something I am doing wrong. Please can anyone help?


--------------
Regards

Casio

Please fill free to visit my website : http://www.timcs.co.uk
Back to top
Profile PM 
casio Offline





Group: Members
Posts: 41
Joined: Sep. 2005
Posted: Nov. 20 2005,13:29 QUOTE

I have found out why it is doing this now. I decided , I now understood what clacker was refering to in a previous post, I booted the remastered cd up running it in ram as always. I then removed the /etc/uucp folder copied it from KNOPPIX to ramdisk disk. Looked at  the uucp folder in the ramdisk and found that the files still have the symbolic links back to KNOPPIX!.

Is there an easy way of removing these links without having to delete the files. The only reason for asking this is that I would be back to square one with having to install uucp which is why I am trying to do this remaster in the first place.

Scrap that , I have figured out that the -s copied the symbolic links, however when I have done this

cp -rd /KNOPPIX/etc/uucp /ramdisk/etc

The files are not place in /ramdisk/etc/uucp just /etc

So then I tried

cp -rd /KNOPPIX/etc/uucp /ramdisk/etc/uucp

but I get an error stating that uucp does not exist!. So its happy to create etc in ramdisk but not /etc/uucp! . AAAAHHHHH

Help!


--------------
Regards

Casio

Please fill free to visit my website : http://www.timcs.co.uk
Back to top
Profile PM 
clacker Offline





Group: Members
Posts: 570
Joined: June 2004
Posted: Nov. 20 2005,20:45 QUOTE

casio, did you try just plain old cp -r /KNOPPIX/etc/uucp /ramdisk/etc

Could it be that /KNOPPIX/etc/uucp is owned by root or someone else so when you try to move it it doesn't copy?  Maybe try
sudo cp -rp /KNOPPIX/etc/uucp /ramdisk/etc
to copy the directory as root, copying all of the contents as well, and maintaining the permissions (with the p switch).

Is the /KNOPPIX/etc/uucp directory a link itself?  Maybe the -d is confused by that?  If so try copying the directory the link points to.

I'm not sure what's going on.  I made a few directories to move around to play with and it looks like they behave differently than what you are seeing.  I ran the following commands and saw what I thought should happen happen:

Code Sample
mkdir test1         # makes a directory called test1
mkdir test2         # makes a directory called test2
cp -r test1 test2   # copies test1 into test2
ls test2/             # shows test1 as a subdirectory of test2
cp -r test1 test2/test3   # copies test1 into test2,
                                 #calling the new directory test3 rather than test1
ls test2/             # shows test1 & test3 as subdirectories of test2


I hope you can find your answers.
Back to top
Profile PM 
32 replies since Sep. 22 2005,13:29 < Next Oldest | Next Newest >

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

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

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