WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: stop automatic fstab creation?  (Read 5852 times)

Offline pythonscript

  • Newbie
  • *
  • Posts: 3
stop automatic fstab creation?
« 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!
Registered Linux User 495790
Ubuntu Karmic 9.1 / Windows 7 Professional / Arch
HP Pavilion dv2700 laptop, Intel 2.4Ghz Core2Duo 4 GB RAM
nVidia GeForce 8400M GS

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: stop automatic fstab creation?
« Reply #1 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.

Offline pythonscript

  • Newbie
  • *
  • Posts: 3
Re: stop automatic fstab creation?
« Reply #2 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!
Registered Linux User 495790
Ubuntu Karmic 9.1 / Windows 7 Professional / Arch
HP Pavilion dv2700 laptop, Intel 2.4Ghz Core2Duo 4 GB RAM
nVidia GeForce 8400M GS

Offline Jason W

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 9730
Re: stop automatic fstab creation?
« Reply #3 on: January 03, 2010, 05:47:04 PM »
The nofstab boot code will prevent fstab from being created on boot.

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: stop automatic fstab creation?
« Reply #4 on: January 03, 2010, 07:10:58 PM »
If you just want to mount /home, the home= boot option is probably a better way.

Offline pythonscript

  • Newbie
  • *
  • Posts: 3
Re: stop automatic fstab creation?
« Reply #5 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!
Registered Linux User 495790
Ubuntu Karmic 9.1 / Windows 7 Professional / Arch
HP Pavilion dv2700 laptop, Intel 2.4Ghz Core2Duo 4 GB RAM
nVidia GeForce 8400M GS

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: stop automatic fstab creation?
« Reply #6 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?
10+ Years Contributing to Linux Open Source Projects.

Offline markotitel

  • Newbie
  • *
  • Posts: 13
Re: stop automatic fstab creation?
« Reply #7 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