Issues with fstab-How not to screw it up?
Ok-I frequently install various distro's, and although most distro's auto-detect and auto-mount swap and whatever other partitions there are, I have found that the /etc/fstab does not "auto-update" itself.
Does anyone know why? For example, Here is my /etc/fstab for SuperUbuntu 8.10- Code:
proc /proc proc defaults 0 0 So, I need to edit it, and do it right-but I also need to fix all the others as well. This is why my swap never works. Also, are there other files I need to edit? Do I need to create mountpoints? I can access all drives by manually using point and click-but not thru xterm. Here is my HD layout- Code:
SDA-1=Slackware-12.2(27GB) |
You have many distro's and each one has its own /etc/fstab file. IMHO, it should be a static file, but Ubuntu treats it as a dynamic one. The dynamic file is /etc/mtab which lists the mounted partitions. You other partitions will do it this way. Even Ubuntu only modifies fstab for auto-mounted drives that are added. Changing your partitioning for another distro, may not be reflected when you run Ubuntu.
Consider using the UUID or Disk-by-id in your fstab and grub's /etc/boot/grub/menu.lst files. You are probably trying out different distro's and changing your partitioning scheme often. Doing so, if you delete a partition and create two partitions in it's place, the device nodes will change and you will need to make the changes in /etc/fstab. If you use the UUID of the filesystem, it will be a constant. Run: "udevinfo -q env -n /dev/sda6" for example to obtain the uuid number for the 6th partition. Select the line that looks like "ID_FS_UUID=8ad26259-a8b0-4b2e-b9d1-af4bdacea3c4" and use the part starting with UUID in the first column of your fstab file. I.E. "UUID=8ad26259-a8b0-4b2e-b9d1-af4bdacea3c4". Now even if the after repartitioning a prior partition, the fstab entry doesn't need to be changed. |
All times are GMT -5. The time now is 12:37 PM. |