Tuesday, October 09, 2012

to mount a partition automatically in centos.

change the file /etc/fstab add the following line: /dev/sde /data ext4 defaults 1 0 where /dev/sde is the device name which can be found with the command "df -h" (I noticed that df command can only be used to check the device name for the mounted partition, not for the unmounted one. To check the device name, please check another blog about "mount windows-ntfs disk in linux".) /data is the mounting point. For the meaning of last two numbers, please refer to the link https://help.ubuntu.com/community/Fstab where 0 means no check to the disk.

No comments: