Fedora 18 useful optimalization and packages

Setting up automount of filesystems

In terminal become a root and edit fstab:
fdisk -l
and you get all filesystems in partition table:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x76692ca8

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    30716279    15357116    c  W95 FAT32 (LBA)
/dev/sda2        30716280   274904279   122094000    7  HPFS/NTFS/exFAT
/dev/sda3       274905086   937306111   331200513    f  W95 Ext'd (LBA)
/dev/sda4       937306112   976771071    19732480   83  Linux
/dev/sda5       274905088   897837632   311466272+   7  HPFS/NTFS/exFAT
/dev/sda6       897855488   898244607      194560   83  Linux
/dev/sda7       898246656   937306111    19529728   83  Linux
If you don't know what type is your Linux filesystems under System column, just type:
mount
and you get all mounted filesystems with their types (ext2/ext3/ext4/btrfs/...).

In my case /dev/sda2 is filesystem with Windows OS, and /dev/sda5 is DiskD, both are NTFS. Now I would like to setup DiskD to automount after system starts. To do so I must edit file /etc/fstab.

Firstly, create directory where your filesystem will be mounted, in my case I call it DiskD:
mkdir /mnt/DiskD
Secondly, you need to use utility blkid which prints block device attributes:
blkid /dev/sda5
Sample output:
/dev/sda5: LABEL="Disk D" UUID="B886C76A86C72828" TYPE="ntfs"
Now copy only UUID number. Then open file /etc/fstab in vi:
vi /etc/fstab
and add line:
UUID=B886C76A86C72828                     /media/DiskD            ntfs-3g defaults        0 0
at the end of file and replace UUID=B886C76A86C72828 by UUID of filesystem which you picked from your blkid output and /mnt/DiskD by directory you want the filesystem to be mounted. After editing /etc/fstab save it. Then reboot your system and the filesystem you added into your /etc/fstab should be mounted automatically.

Install script

I have created an install script which does the installation of packages and libs: fedora_install.sh

Also here is a script which can mask some services which start at boot of system and they are not needed for desktop so it makes boot faster: fedora_systemctl_mask.sh

Both scripts must be run as root and also you need to set rights to run them:
chmod u+x fedora_install.sh fedora_systemctl_mask.sh
sudo ./fedora_install.sh
sudo ./fedora_systemctl_mask.sh


Author: Matus Marhefka. Last modification: 6.2.2013

/Fedora