You are not logged in.
Hello,
I am trying to use SSD and HDD together. I want to use /var and /tmp on my magnetic drive. When I try to edit /etc/fstab system failed.
How can I edit my fstab correctly ? What are correct options for magnetic drive(dev/sdb9 and dev/sdb10) ?
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
# /dev/sda3
UUID=7c2d4ffc-eb76-481f-acab-6ec19c72d2a6 / ext4 defaults,noatime,discard 0 1
# /dev/sda4
UUID=72bb2cab-cde2-4772-b6fb-16df655c95f2 /home ext4 defaults,noatime,discard 0 2
# /dev/sdb9
UUID=b4454847-fe89-4137-b1f8-c3014b369cee /var ext4 defaults,mode=755 0 2
# /dev/sdb10
UUID=de9bc0e0-edbb-4f25-a66f-b14bca28da8d /tmp ext4 defaults,mode=755 0 2
tmpfs /home/ytsejam/.mozilla/firefox/default/Cache tmpfs mode=1777,noatime 0 0
tmpfs /scratch tmpfs nodev,nosuid,size=7G 0 0
# /dev/sdb11
UUID=9e82aa3d-5be7-4a4b-a58c-747b97428cf6 none swap defaults 0 0
thanks.
Last edited by ytsejam (2014-01-30 12:31:51)
Offline
You don't usually use mode= options with ext4 (and other Linux) filesystems. If you want these filesystems to have a specific mode or ownership, you have to mount them, and then set the ownerships with chmod / chown. In particular check that your /tmp/ filesystem was writable (chmod 1777 /tmp/.).
Other than that there is nothing wrong with your fstab. You could use noatime for /var and /tmp as well, but that doesn't stop things from working, it's merely a performance consideration as usually no one needs atime anyway.
If you are not particularly low on RAM, it is more common to use tmpfs for /tmp. I would not put /var on magnetic drive either; I'd be more specific there, like do a HDD partition for /var/www/ if that's where you have huge stuff.
Last edited by frostschutz (2014-01-30 09:31:09)
Offline
Thank you solved my problem.
Offline