Tiny Core Base > TCB Bugs
version 2.7 fstab error
JoXo009:
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.
mikshaw:
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.
roberts:
If you change partitions then type rebuildfstab.
JoXo009:
--- Quote from: JoXo009 ---Installing TC 2.7 following the (official) installation guide (failes) ...
--- End quote ---
--- Quote from: mikshaw ---This is perfectly normal behavior ...
--- End quote ---
??????????
--------------------------
--- Quote from: roberts on December 21, 2009, 06:56:27 AM ---If you change partitions then type rebuildfstab.
--- End quote ---
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.
roberts:
Thanks! Updated! But rebuild should be after formatting, as fstab needs to know the file system.
http://www.tinycorelinux.com/install.html
Navigation
[0] Message Index
[#] Next page
Go to full version