Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: manit123 on September 04, 2012, 08:34:21 AM

Title: installing tiny core on second partition of USB
Post by: manit123 on September 04, 2012, 08:34:21 AM
I have been able to install tiny core on second partition(ext2) of my USB stick(16GB , first being fat 32 to be read on windows and linux OS).

Here is what I did
Code: [Select]
mounted coreplus.iso to /tinycorecd
gave /tinycorecd/boot folder for core.gz
selected frugal , existing partition , install boot loader , mark partition active bootable
waitusb=9 option
core and x desktop - nothing else selected

When I boot from USB , I get a 'tiny core' entry which on entering drops me to a prompt with $. no X window.
Title: Re: installing tiny core on second partition of USB
Post by: Juanito on September 04, 2012, 09:00:01 AM
Is the tce folder present and populated with extensions on your second partition?

What happens when you enter "startx"?
Title: Re: installing tiny core on second partition of USB
Post by: ananix on September 04, 2012, 10:12:06 AM
try do a df and see if any real disks are mounted presumably not sounds like it cant find the tce directory, try adding boot code tce=sda2  or what ever partition you installed it on
Title: Re: installing tiny core on second partition of USB
Post by: bmarkus on September 04, 2012, 10:26:16 AM
This is an example how I'm using my USB sticks.

Partitions:

1) Small, 64MByte FAT - primary 1

2) 1-2GByte LINUX Ext4 - primary 2 - Yes, journaling. USB stick is cheap and last long enough. YOr lost data and time due to non-journaling (ext2) file system is more valuable

3) Depending on the size, additional Ext4 partion(s)

First, TC installed on the FAT partition with core2usb, than tce directory is moved from the first partition to the LINUX partition. Reboot.

That's all. No any change in config files needed. Make sure no other tce directories on other TC readable partitions.



Title: Re: installing tiny core on second partition of USB
Post by: gerald_clark on September 04, 2012, 10:53:55 AM
Make sure you don't forget the 'waitusb=5' ( Or one of the LABEL/UUID versions ) boot option.
Title: Re: installing tiny core on second partition of USB
Post by: manit123 on September 11, 2012, 07:36:07 AM
'waitusb=9' helped

bmarkus  , you don't have any bigger partition of fat or fat32 .
You cannot copy much from computer with windows OS (hosting your USB) ?


Can I have multiple onboot.lst on same partition ?
Because I want one with ALSA while other with OSS .
I know , there is alsa-oss oss_alsa for emulating one over another .
Title: Re: installing tiny core on second partition of USB
Post by: Rich on September 11, 2012, 09:52:34 AM
Hi manit123
Quote
'waitusb=9' helped
Don't just use the lowest value that works. Add a couple of seconds to allow for variations in boot time. Or better
yet, use one of the following:
Code: [Select]
waitusb=30:LABEL= or
Code: [Select]
waitusb=30:UUID= and identify your device by label or UUID.
Title: Re: installing tiny core on second partition of USB
Post by: curaga on September 11, 2012, 02:12:36 PM
Yes, you can have multiple extension lists, use the lst bootcode.
Title: Re: installing tiny core on second partition of USB
Post by: manit123 on September 12, 2012, 08:19:53 AM
if i write lst=with-oss.lst
where the mentioned file is present in tce folder of USB . Will that work ?
Title: Re: installing tiny core on second partition of USB
Post by: manit123 on September 12, 2012, 08:26:52 AM
that worked.
Title: Re: installing tiny core on second partition of USB
Post by: manit123 on September 12, 2012, 09:17:07 AM
i wonder , is it  possible to add an entry in onboot.lst that says 'alsa/alsa.tcz' ?
I mean , will it take that file from 'alsa' folder present in 'folder containing onboot.lst'
Title: Re: installing tiny core on second partition of USB
Post by: Rich on September 12, 2012, 09:22:06 AM
Hi manit123
No, extensions are loaded from the tce directory.
Title: Re: installing tiny core on second partition of USB
Post by: tinypoodle on September 12, 2012, 11:15:54 AM
Having a distinct "tce=" dir altogether would be a valid approach.
Title: Re: installing tiny core on second partition of USB
Post by: manit123 on September 16, 2012, 08:32:29 AM
In my case , I have all tcz files in tce/optional  folder on USB stick which get loaded as written in tce/onboot.lst

I meant , can I create folder inside 'optional' and write entry in onboot.lst as 'something/something.tcz' and expect tiny core to load files by going into folders present in tce/optional .
Will that work ?
Also , I will try it myself ASAP. 
Title: Re: installing tiny core on second partition of USB
Post by: Rich on September 16, 2012, 09:53:11 AM
Hi manit123
That might work since tc-config calls tce-load which uses a path to load the extension. Make sure the entry
does not contain a leading /
Title: Re: installing tiny core on second partition of USB
Post by: manit123 on September 16, 2012, 10:15:37 AM
I will try that and report 'whatever happens' here.

EDIT

That went well .
I created a folder named 'orig' in optional and added to onboot.lst entries like
orig/something.tcz
ALSo , OS used the dep file in 'orig' to load dependency .
Title: Re: installing tiny core on second partition of USB
Post by: gerald_clark on September 16, 2012, 12:15:24 PM
That is not a good idea.
The auditing scripts will not look for these files.