Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: pythonscript on January 03, 2010, 05:10:11 PM

Title: stop automatic fstab creation?
Post by: pythonscript on January 03, 2010, 05:10:11 PM
I've installed Tiny Core on my local hard drive (to use a the primary distro for this low end system) and I'm trying to stop the system from automatically creating the fstab file. Whenever I change it, it's simply recreated when I reboot. All of my apps are persistent, however. I'd like to have my home partition mounted on a separate partition (in this case, /dev/hda5) while tiny core is installed on /dev/hda7. How would I write the /etc/fstab file and stop it from being overwritten every time? Thanks!
Title: Re: stop automatic fstab creation?
Post by: gerald_clark on January 03, 2010, 05:21:05 PM
You can append to /etc/fstab in /opt/bootlocal.sh.
You also might try adding /etc/fstab to /opt/.filetool.lst and do a backup.
Title: Re: stop automatic fstab creation?
Post by: pythonscript on January 03, 2010, 05:25:38 PM
So what command would I add to /opt/bootlocal.sh? Something like:

Code: [Select]
echo my_fstab_entry >> /etc/fstab
I'm still a bit lost on exactly what I would add to the /etc/fstab file. Thanks!
Title: Re: stop automatic fstab creation?
Post by: Jason W on January 03, 2010, 05:47:04 PM
The nofstab boot code will prevent fstab from being created on boot.
Title: Re: stop automatic fstab creation?
Post by: ^thehatsrule^ on January 03, 2010, 07:10:58 PM
If you just want to mount /home, the home= boot option is probably a better way.
Title: Re: stop automatic fstab creation?
Post by: pythonscript on January 03, 2010, 09:45:18 PM
When I add nofstab to the boot options, it removes all my extensions from tiny core, and even though I have home=hda5 specified, tiny core is still mounting hda5 under mount. I can't change this in /etc/fstab using nofstab, either, because of the aforementioned reason. Is there something I'm missing here? I'm hoping to eventually set this up for multiple users, so having a dedicate home partition where all the config files are stored, separate from the root one, would be very useful. Thanks again!
Title: Re: stop automatic fstab creation?
Post by: roberts on January 04, 2010, 12:48:52 AM
What is the output from showbootcodes?
Without using nofstab, and with using home=hda5
what is the output of mount?
What is the output of cat /etc/fstab?
Title: Re: stop automatic fstab creation?
Post by: markotitel on April 20, 2010, 11:50:33 AM
I have similar problem.

I scattered microcore to hard, and it works ok, from fstab I removed tempfs.

Now when I run df -h I see
Code: [Select]
/dev/root  mounted on /
and
/dev/hda1 mounted on /mnt/hda1

this is the same drive why it is mounted twice.

bootcodes are
Code: [Select]
root=/dev/hda1