Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: Scorp1us on October 10, 2010, 11:26:44 PM
-
I'm probably missing something easy, but I followed the install instructions verbatim, and I can now boot it from my hard drive partition (sda1 = swap, sda2=ext2) I thought when I'd select "download and load" that it would put it on the ext partition, but it went poof. It looks like its' not being mounted anywhere except /mnt/sda2
What is the proper way to get stuff to persist on the partition?
I am looking to install ssh, Xorg (+nvidia), Qt 4.7.
Thanks.
-
Did you create a /tce directory as in step 5? This basically ensures persistence, along with the file mydata.tgz. which lives in /tce. Apps (also called extensions) live in /tce/optional which will be created if it does not exist.
"Download and load" only loads the extension for that session. If you want said extension to persist, use "OnBoot" which will result in the extension being reloaded every boot. "OnDemand" will result in the extension being loaded only at run time, when demanded.
-
Yes, I did make that, but for some reason my persistent storage is only being mounted to /mnt/sda2
Should /mnt/sda2 be mounted as /tce?
Shouldn't there be a step to mount /dev/hda1 (in keeping with the directions, my sda2) as / or /tce or something like that? I didn't see any directions for that.
-
No, it should only be mounted at /mnt/$dev. What is in the file /opt/.tce_dir?
-
The content of that file is:
/tmp/tce
Should this be /mnt/sda2/tce ?
-
Yes it should.
Does /mnt/sda2/tce exist?
If not, 'mkdir /mnt/sda2/tce' it and reboot.
-
I did that... and it came right back to /tmp/tce
So it looks like /mnt/sda2 isn't being mounted automatically. I manually mounted it and found the files I had made.
Also on that partition is /boot
Looks like my fstab has noauto for /dev/sda2, which is because it is a removable flash. So I change it, reboot, and its back to noauto.
I pulled tinycore.tgz apart and looked at its fstab, and its stock plain.
I am now super frustrated because I don't have a clue what is going on.
-
Your first post mentions it's a hard drive?
If it's flash, it might be too slow to start, so try adding the waitusb=5 boot option.
-
Your first post mentions it's a hard drive?
If it's flash, it might be too slow to start, so try adding the waitusb=5 boot option.
Oh, I did. Well this is the first time I am trying to use a SD card for a FS. So yes, I did mis-speak.
Thanks I'll give that a shot.
It boots off of it though. So I don't know why it would matter.
The system looks like this:
MBR on sda is the grub bootloader.
TinyCoreLinux installed on /dev/sda2 (sda1 is swap)
If it is booting, off flash, why would it need to wait longer?
-
No relation between booting from USB by BIOS versus USB support by an OS.
(If that's even USB, but similar applies to other hardware support)
-
Your first post mentions it's a hard drive?
If it's flash, it might be too slow to start, so try adding the waitusb=5 boot option.
Oh, I did. Well this is the first time I am trying to use a SD card for a FS. So yes, I did mis-speak.
Thanks I'll give that a shot.
It boots off of it though. So I don't know why it would matter.
The system looks like this:
MBR on sda is the grub bootloader.
TinyCoreLinux installed on /dev/sda2 (sda1 is swap)
If it is booting, off flash, why would it need to wait longer?
The OS needs to wait for the USB stick to be mounted. That takes some time; to make sure you are waiting long enough, iunstead of waitusb=5, you could use waitusb=20:LABEL=myUSBlabel, then it waits until the USB fs is available then immediately proceeds.
-
Thanks everyone, this worked!
Now my problem is that I installed openSSH (for SSHD) and every time it boots it loses ssh_config and sshd_config.
What am I supposed to do to keep ssd installed?
-
After configuring you need to add the following line to /opt/.filetool.lst
usr/local/etc/ssh
Then 'filetool.sh backup'
-
Thanks. I missed that last command :-/
Is there a way to have that run when I type 'reboot' ?
The docs made it look like it would do it automatically.
EDIT1: it tells me invalid device backup
EDIT2: I think you meant -b not 'backup' :-)
Final edit: I got everything working just like I wanted! (Though I did concede the filetool.sh -b on reboot part. That is not an issue any more once I got it situated)