WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Noob installed to sda2, boots, but I lose everything every boot [SOLVED]  (Read 2912 times)

Offline Scorp1us

  • Newbie
  • *
  • Posts: 34
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.
« Last Edit: October 13, 2010, 08:29:32 AM by Scorp1us »

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #1 on: October 10, 2010, 11:34:23 PM »
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.

Offline Scorp1us

  • Newbie
  • *
  • Posts: 34
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #2 on: October 11, 2010, 10:48:05 AM »
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.


Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #3 on: October 11, 2010, 11:07:20 AM »
No, it should only be mounted at /mnt/$dev. What is in the file /opt/.tce_dir?
The only barriers that can stop you are the ones you create yourself.

Offline Scorp1us

  • Newbie
  • *
  • Posts: 34
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #4 on: October 11, 2010, 06:29:22 PM »
The content of that file is:
/tmp/tce

Should this be /mnt/sda2/tce ?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #5 on: October 11, 2010, 07:09:04 PM »
Yes it should.
Does /mnt/sda2/tce exist?
If not, 'mkdir /mnt/sda2/tce' it and reboot.

Offline Scorp1us

  • Newbie
  • *
  • Posts: 34
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #6 on: October 11, 2010, 07:25:22 PM »
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.



« Last Edit: October 11, 2010, 11:24:21 PM by Scorp1us »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11044
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #7 on: October 12, 2010, 08:50:51 AM »
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.
The only barriers that can stop you are the ones you create yourself.

Offline Scorp1us

  • Newbie
  • *
  • Posts: 34
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #8 on: October 12, 2010, 10:19:59 AM »
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?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #9 on: October 12, 2010, 10:37:22 AM »
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)
« Last Edit: October 12, 2010, 10:39:26 AM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jur

  • Hero Member
  • *****
  • Posts: 863
    • cycling photo essays
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #10 on: October 12, 2010, 04:13:37 PM »
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.

Offline Scorp1us

  • Newbie
  • *
  • Posts: 34
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #11 on: October 12, 2010, 05:56:27 PM »
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?

« Last Edit: October 12, 2010, 06:08:59 PM by Scorp1us »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #12 on: October 12, 2010, 06:32:28 PM »
After configuring you need to add the following line to /opt/.filetool.lst

usr/local/etc/ssh

Then 'filetool.sh backup'

Offline Scorp1us

  • Newbie
  • *
  • Posts: 34
Re: Noob installed to sda2, boots, but I lose everything every boot
« Reply #13 on: October 12, 2010, 06:58:04 PM »
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)
« Last Edit: October 13, 2010, 08:29:03 AM by Scorp1us »