fstab when no disk?
Hi guys,
If a machine running linux doesn't have a hard disk (i.e. booting from a CD or network or something like that), what happens to the fstab? Where is it going to be stored? Who makes this fstab? linux or should I do it myself? Thanks alot guys |
Hi,
Quote:
Code:
excerpt from 'man fstab'; |
Alright! I didn't know I could use man for fstab too! Sorry!
So, I should create fstab myself right? Linux doesn't create it by itself. Then why knoppix when boots says: "Scanning for Harddisk Partitions and creating /etc/fstab..."? --> http://services.arnit.net/images_to_...1936190731.jpg Sorry if my questions are basic, but I really need to understand this. Thanks |
Some distro's dynamically edit /etc/fstab when you add an external drive. Other distro's don't and use udev/hal and helper programs instead to handle these.
If you don't have a disk, you will be loading the kernel and mounting an nfs root filesystem which will contain an /etc/fstab file. (Here I'm referring to a slim client). For a live distro, the filesystem is in ram. The live distro will examine any hard drives present and mount them somewhere, such as under /mnt/. This enables you to edit files you need to change to be able to boot your computer if you have a problem, or to work with files on the computer, such as displaying files in "My Documents" on a windows computer. |
/etc/fstab is located on whatever media you boot. If you boot a CD it is on the CD. If you boot from the network then /etc/fstab is on whatever you booted from out in the network.
In a few cases when you boot a CD or a network the Linux you boot creates a RAM disk where it creates a few files like /etc/fstab. I think knoppix is building a /etc/fstab file for you in a RAM disk. ------------------ Steve Stites |
On SuSE there is also an "mtab". It contains the really and truly mounted devices (e.g. you can umount devices contained in fstab. Then they are still in fstab, but not in mtab).
|
You can use find
You can also use the find or locate command.
I like to use find as it does not pull its information from a database. you could use something like the following; # find / -iname 'fstab' (I like to use -iname , because its insensitive to case, especially when I am having a hard time locating a file). It will search every directory, on all mounted devices. It will take a while, but its thorough. PS: Knoppix does use a ram disk if your booting it from CD as in a live CD. IF you look in the middle of screen image you posted you can see it displays "..../ramdisk." IF you want to know what the partition is that it created as a ram disk just type "mount" with no switches. |
All times are GMT -5. The time now is 01:41 AM. |