WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: version 2.7 fstab error  (Read 4582 times)

Offline JoXo009

  • Full Member
  • ***
  • Posts: 152
version 2.7 fstab error
« on: December 21, 2009, 05:13:20 AM »
Installing TC 2.7 following the installation guide as VirtualBox guest system I experienced a behaviour, which might be a small bug and can be reproduced with following steps:

1. Start VirtualBox 3.1.2 with TC 2.7 iso
2. Install cfdisk and open Root Shell
3. Create Partition with command:  cfdisk /dev/hda (= guide Top3)
4. Format that partition with command:  mkfs.ext3 /dev/hda1

5. Try to mount with command:  mount /mnt/hda1

and you get the error: 'can't find /mnt/hda1 in /etc/fstab'

See following screenshot


Only rebooting helps. After rebooting fstab contains a hda1 line and mounting is possible.

Never experienced such strange behaviour with prior TC versions including version 2.6 (version 2.6.1 not tested).


-------------- edited:
I should mention that I used the prior TC versions (including version 2.6) as guest system in VirtualBox version 3.0.12.

Thus TC 2.7 is the first version I use with VirtualBox version 3.1.2.

I it's important I could test TC 2.7 with prior versions of VirtualBox too.


« Last Edit: December 21, 2009, 05:45:01 AM by JoXo009 »

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: version 2.7 fstab error
« Reply #1 on: December 21, 2009, 08:22:25 AM »
This is perfectly normal behavior.  /etc/fstab isn't traditionally touched by anything but the administrator.  If you tried a distro such as Debian or Slackware, you'd find that you need to manually add all new partitions to fstab.  The fact that TC helps you out by searching for partitions during init is a distro-specific feature.  This feature is a once-per-session deal, though....it doesn't constantly wait for changes to your partion table.  That would be, in my opinion, a waste of resources, considering how seldom it would be needed.  If you want to create a partition and have it in fstab without a reboot, you'll need to add it to fstab yourself.

EDIT: on second thought, I guess that's the purpose of things like automount...to constantly keep track of partition changes, like removable media.  I still believe it is a waste of resources, though.
In any case, it's still not a bug, just a feature some distros have that TC does not.
« Last Edit: December 21, 2009, 08:27:18 AM by mikshaw »

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: version 2.7 fstab error
« Reply #2 on: December 21, 2009, 09:56:27 AM »
If you change partitions then type rebuildfstab.
10+ Years Contributing to Linux Open Source Projects.

Offline JoXo009

  • Full Member
  • ***
  • Posts: 152
Re: version 2.7 fstab error
« Reply #3 on: December 21, 2009, 10:55:19 AM »
Quote from: JoXo009
Installing TC 2.7 following the (official) installation guide (failes) ...

Quote from: mikshaw
This is perfectly normal behavior ...
??????????

--------------------------

If you change partitions then type rebuildfstab.
Thanks, roberts.

The point is, that the official Installation Guide doesn't mention it, as typing 'rebuildfstab' wasn't necessary till TC version 2.6.

Thus after dropping this feature in TC the installation guide probably needs to be updated.

My suggestion, change top 4 of installation guide as follows:

------------------------------------
4. Rebuild and Formatting

Rebuild the fstab file

rebuildfstab

and format the new partition. This demonstration will use ext3. You may format other partitions here as preferred.

mkfs.ext3 /dev/hda1


------------------------------------
The added parts (= first two lines + 'Rebuild and' in heading) are formatted blue.

Offline roberts

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 7361
  • Founder Emeritus
Re: version 2.7 fstab error
« Reply #4 on: December 21, 2009, 11:07:49 AM »
Thanks! Updated! But rebuild should be after formatting, as fstab needs to know the file system.
http://www.tinycorelinux.com/install.html
« Last Edit: December 21, 2009, 11:15:41 AM by roberts »
10+ Years Contributing to Linux Open Source Projects.

Offline ^thehatsrule^

  • Retired Admins
  • Hero Member
  • *****
  • Posts: 1726
Re: version 2.7 fstab error
« Reply #5 on: December 21, 2009, 02:50:43 PM »
mikshaw: rebuildfstab is called automatically via udev.

Previously, before 2.6.1, unknown fs would be added as "auto" (which would be the result after partitioning a new drive).  Now it will only have auto for certain removable disk devices afaik, and only add other block devices if there is a valid filesystem.

Offline mikshaw

  • Sr. Member
  • ****
  • Posts: 368
Re: version 2.7 fstab error
« Reply #6 on: December 22, 2009, 11:37:39 AM »
Thanks for that info; I wasn't aware.  My other system (Debian) doesn't do that, at least not as it is currently configured, and I haven't been in a situation in TC where I would see it happen.  I was assuming again =op