WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: opt can not be saved persistent  (Read 4614 times)

Offline crazy_jay

  • Newbie
  • *
  • Posts: 4
opt can not be saved persistent
« on: January 30, 2012, 01:47:15 AM »
Hi,

I'm very new to TinyCore. I'm using Ubuntu and want to try TC. So I installed TC to my existing Linux partition and add to grub boot loader :

                        linux /tce/boot/vmlinuz rw quite tce=sdb2 opt=sdb2 home=sdb6

where sdb2 is my ubuntu root partition and sdb6 my ubuntu home.

But the opt folder will be delete everytime I reboot. So I have to backup to get my configs persistent.  What am I doing wrong?

Many thanks!

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: opt can not be saved persistent
« Reply #1 on: January 30, 2012, 09:06:18 AM »
Opt will not be deleted every time you boot.

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11628
Re: opt can not be saved persistent
« Reply #2 on: January 30, 2012, 11:25:37 AM »
Hi crazy_jay
You might want to mention which version of Tinycore you installed. You should be more specific
about the symptoms. Let me help you:
After I reboot
A. There is no /opt directory on my system.
B. My /opt directory is empty.
C. My /opt directory only contains the stock Tinycore files.
Please select the answer that best describes your problem, or elaborate using your own words.
I don't know if it is wise to map Tinycore directories to another Linux system. Possible permission
problems come to mind. For /home, user startup scripts may be incompatible.

Offline crazy_jay

  • Newbie
  • *
  • Posts: 4
Re: opt can not be saved persistent
« Reply #3 on: January 30, 2012, 02:25:52 PM »
Sorry, by "opt will be deleted" I mean the configurations ( bootlocal.sh) I saved in there during my session will be lost.
For example I configure my eth0 and saved. But every time I reboot, I have to do it again. The opt directory only contains the stock TC files. I'm using TinyCore Plus 4.2.1.

In the installation it says :

"If you already have a Linux System booting, then you do not need to make a partition for Tiny Core! Tiny Core can run in a single directory in your existing Linux installation."

So I guess it should not be a problem


Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: opt can not be saved persistent
« Reply #4 on: January 30, 2012, 02:42:08 PM »
Sounds to me like your sdb is not being found.
Add boot code "waitusb=5".

Offline crazy_jay

  • Newbie
  • *
  • Posts: 4
Re: opt can not be saved persistent
« Reply #5 on: January 30, 2012, 02:58:11 PM »
But I don't want to boot from usb. TinyCore is already running from my sdb2. sdb6 also exists! I only have problem with the opt directory and don't know why

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: opt can not be saved persistent
« Reply #6 on: January 30, 2012, 03:00:44 PM »
When you use the opt= boot code, you must remove opt from .filetool.lst or restore may overwrite your files.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
opt can not be saved persistent
« Reply #7 on: January 30, 2012, 03:00:52 PM »
If not a usb then shouldn't the path be sda1 etc then?   

Online Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11628
Re: opt can not be saved persistent
« Reply #8 on: January 30, 2012, 03:05:01 PM »
Hi crazy_jay
Quote
"If you already have a Linux System booting, then you do not need to make a partition for Tiny Core! Tiny Core can run in a single directory in your existing Linux installation."
That refers to having a  /tce  directory for storing extensions and your backup file. The key phrase
there was "single directory". It says nothing about using a persistent  /opt  or  /home  in an existing
Linux installation. If you want to do that, I'd recommend you put those in their own partition.

coreplayer2: Not necessarily. If he has two internal drives, they could be mapped as sda and sdb.
« Last Edit: January 30, 2012, 03:28:33 PM by Rich »

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: opt can not be saved persistent
« Reply #9 on: January 30, 2012, 03:25:30 PM »
If neither of the two "classical" issues mentioned in reply #4 and #6 are helping to resolve this, maybe it's time to share with us the output of: mount | grep /dev/sd

Offline crazy_jay

  • Newbie
  • *
  • Posts: 4
Re: opt can not be saved persistent
« Reply #10 on: January 30, 2012, 03:54:20 PM »
The output for mount | grep /dev/sd is

/dev/sdb6 on /mnt/sdb6 type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sdb6 on /home type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sdb2 on /mnt/sdb2 type ext4 (rw,relatime,barrier=1,data=ordered)
/dev/sdb2 on /opt type ext4 (rw,relatime,barrier=1,data=ordered)

I remove the line opt from .filetools and change my bootlocal.sh a little bit. then I remove my backup so it wouldn't restore. So the solution from gerald_clark works!
But my Xorg configuration is lost. Do I have to use bootcode for etc too ? 
Or I just could move the TC directories to a new partition and let see if this problem is solved automatically.
Thanks you guys so much !!!
« Last Edit: January 30, 2012, 04:01:02 PM by crazy_jay »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: opt can not be saved persistent
« Reply #11 on: January 30, 2012, 04:01:08 PM »
Do not forget to also remove home from .filetool.lst, as it is now on sdb6.

You need to add etc/X11/xorg.conf to .filetool.lst and do a backup.