Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: grandma on June 26, 2021, 08:07:31 PM

Title: HELP ??? SYMLINKS to OPTIONAL folder
Post by: grandma on June 26, 2021, 08:07:31 PM
p.s. I just realized MAAAYBE this needs to be moved to TCE
================================================

Currently I have tested the following which may solve the problem and make it stable:

1. I created 2 partitions on a USB - small 80 MB as /mnt/sdb1 and larger 7.2 gig as /mnt/sdb2

2. I put grldr and menu.lst on /mnt/sdb1 - normal place

3.  I made a folder on /mnt/sdb2 to hold the 3x install as

/mnt/sdb2/v3x/tce

4. Put files and folders there, such as

/mnt/sdb2/v3x/tce/optional/AllTheTCZfiles.tcz .tcz.md5.txt .tcz.dep etc.

for 3x and

/mnt/sdb2/v3x/tce/ver3x/bzImage and tinycore.gz for booting and

/mnt/sdb2/v3x/tce/onboot.lst


(cont)
Title: Re: HELP ??? SYMLINKS to OPTIONAL folder (part 2)
Post by: grandma on June 26, 2021, 08:09:00 PM
4. Then I edited /mnt/sdb1/menu.lst to be:

# timeout=5
# default=0
 
# title 3X ON 2ND PARTITION
# find --set-root /v3x/tce/ver3x/bzImage
# kernel /v3x/tce/ver3x/bzImage tce=UUID=B4BE-097E quiet  waitusb=10 norestore xvesa=1024x768x32
# initrd /v3x/tce/ver3x/tinycore.gz

5. Then I booted it and it worked - whoo whoo!

6. BUT the boot process created a folder;

# /mnt/sdc2/tce

which was completely empty.

7. I checked /tmp/tcloop and JWM was not there, even though it jwm.tcz was in the file

# /mnt/sdc2/v3x/tce/onboot.lst

Hmmm....

Title: Re: HELP ??? SYMLINKS to OPTIONAL folder (part 3)
Post by: grandma on June 26, 2021, 08:09:57 PM
7. I checked /opt/.tce_dir and it points to /mnt/sdb2/tce

8. So I figured TCE "THINKS" /mnt/sdb2/tce is valid, so I went there and made

# /mnt/sdb2/tce/optional

9. then changed directories to

# /mnt/sdb2/tce/optional

10. then tried this prayer

# ln -s /mnt/sdb2/v3x/tce/optional/leafpad.tcz

which bombs - denied

and

# ln -s /mnt/sdb2/v3x/tce/optional/leafpad.tcz leafpad.tcz

denied

and

# ln -s /mnt/sdb2/v3x/tce/optional/leafpad.tcz /mnt/sdb2/tce/optional/leafpad.tcz

denied

Hmmm...

I figure if I can get the /mnt/sdb2/tce/optional folder to fill with symlinks then I can run

# tce-load -i leafpad

without having to copy all the files from

# cp /mnt/sdb2/v3x/tce/optional /mnt/sdb2/tce/optional

Does this make sense?

What am I doing wrong?

Why won't symlinks work/are denied.
Title: Re: HELP ??? SYMLINKS to OPTIONAL folder (part 4)
Post by: grandma on June 26, 2021, 08:11:25 PM
11. If I can get this to work then I can create

# /mnt/sdb2/v8x/tce/onboot.lst
# /mnt/sdb2/v8x/tce/ver8x/vmlinuz
# /mnt/sdb2/v8x/tce/ver8x/core.gz
# /mnt/sdb2/v8x/tce/ver8x/optional/leafpad.tcz (and all the others)

and then create a menu.lst

# timeout=5
# default=0
 
# title 3X ON 2ND PARTITION
# find --set-root /v3x/tce/ver3x/bzImage
# kernel /v3x/tce/ver3x/bzImage tce=UUID=B4BE-097E quiet  waitusb=10 norestore xvesa=1024x768x32
# initrd /v3x/tce/ver3x/tinycore.gz

# title 8X ON 2ND PARTITION
# find --set-root /v8x/tce/ver8x/vmlinuz
# kernel /v3x/tce/ver8x/vmlinux tce=UUID=B4BE-097E quiet  waitusb=10 norestore xvesa=1024x768x32
# initrd /v3x/tce/ver8x/core.gz

Is this clear?

Is there a better way?

Thank you.

p.s. I broke this up bc server kept spitting error - until I figured out to add the # sign in front of commands.
Title: Re: HELP ??? SYMLINKS to OPTIONAL folder
Post by: Rich on June 26, 2021, 08:20:55 PM
Hi grandma
Assuming that UUID is for  sdb2 , try changing this:
Code: [Select]
tce=UUID=B4BE-097Eto this:
Code: [Select]
tce=UUID="B4BE-097E"/v3x/tce