LinuxAnswers DiscussionThis forum is to discuss articles posted to LinuxAnswers.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The /etc/fstab file is used by some programs to determine file system types and mount points. If you are new to linux, configuration files can seem cryptic and intimidating. This tutorial contains an example /etc/fstab file broken down and thoroughly explained. Keep in mind that the sample that is broken down and explained is larger than your typical /etc/fstab so that this tutorial can be applicable to a wider audience. I also included the /etc/fstab from my personal computer. EXAMPLE: 1 #device mount point file system options dump check 2 3 /dev/hda1 / reiserfs defaults 0 1 4 /dev/hdb1 /home ext2 auto,notail 1 1
Your option chart mentions defaults but what does defaults really mean?
No mention of umask option. How to write to a vfat partition is one of the most asked questions on the site.
No mention of samba mount points.
Quote:
While not mandatory, it is highly recommended to define a swap partition in /etc/fstab. You should ALWAYS define a swap partition.
Your statements will be somewhat confusing to the newbie. Using swap and its size would be beyond the scope of your document. However, it depends on the amount of RAM and what applications are being used on the PC.
USB, Firewire, SATA and SCSI devices use /dev/sda type device ID.
Hi , As i can understand, the etc/fstab file is the blueprint for the basic components in the pc,?? right, well, i tried to check it out using MC and the terminal but to no avail, it just shows the HDD I've installed SuSE 10 on, the root the swap and the etc etc partitions..... but the other three stata 500gb disks are missing, there is no mention of them anywhere??
If i do have to manipulate the disks thru this file , how do i name them so that the 10th chameleon recognizes them? and how do I add it there if it ain't detected?
Since there is a detection problem, I can't mount them (Obviously) and cos of that I can't make use of em at all....
A hint would be of gr8 Help
Thanx
It would be better to create a new thread for your questions instead of replying to one that is almost a year old. fstab is a static file that describes filesystems. It is not a blueprint of the components in your PC and may not contain an entry for every hard drive or partition connected to your computer. Some linux distributions will add an entry for all filesystems found and some do not. I believe that SuSE does not. You will need to manually add an entry for the partitions on the other disk drives. Use any text editor but you must be root to edit files in the /etc directory. It is still possible for root to mount any filesystem on any drive even though there might not be an entry in fstab.
What do you mean by 10th chameleon?
Are the other SATA drives partitioned and formatted? Are you using them for a RAID?
Well??? The 10th Chameleon....... is the SuSE 10.1 Obviously...
Are the other SATA drives partitioned and formatted? Are you using them for a RAID?[/QUOTE]
The other drives are all SATA, formatted and being used to store data in a VISTA Environment. Work fine in the Win-Lows environment(Which is absolutely of no use to me) But they are Single Partion Drives with a lotta data that I can't get onto my SuSE Environment.
No, I'm not using them in a RAID Array
To read/write to a NTFS file system you need to install ntfs-3g. Install the driver and add an entry to the fstab file like:
/dev/sds1 /mnt/windows ntfs-3g users 0 0
The output of the following comand will display the partition information for all of the drives in your computer.
fdisk -l (that is a small L and you must be root)
What effect on this tutorial will the addition of uuid's have?
Can I just replace the partition details with the uuid or is it more sinister than that?
Perhaps;
/dev/sda10 /BackupStore ext3 defaults 0 2
could become
UUID=fd228948-c977-4365-a683-664b9507f52b /BackupStore ext3 defaults 0 2
This code has proved to be successful.
Column 4 'defaults' is reputed to control mounting activity.
If I address a file as /BackupStore/BackupStore/file.x the file is presented as mounted.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.