2015-10-16

[SOLVED]How to mount a new drive on startup

#6:44 26/04/2015
#nano /etc/fstab
#####################################################################
#device      mountpoint               fstype    options     dump   fsck
/dev/sdb1    /home/yourname/mydata    ext4      defaults    0      1
#####################################################################
If you are using FAT32 or NTFS file system using the following:

For NTFS:

/dev/sda3   /media/entertainment    ntfs-3g rw,auto,user,fmask=0111,dmask=0000,noatime,nodriatime   0   0
/dev/sda4   /media/other    ntfs-3g
rw,auto,user,fmask=0111,dmask=0000,noatime,nodriatime   0   0

noatime and nodriatime are some optimization. If you want you can remove them.

For FAT32 replace ntfs-3g with vfat




UBUNTU:
root@srv152bk:/disk1# cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=3e49bdf6-da13-4861-b4c5-3ef1536b6a68 /               ext4    errors=remount-ro 0       1
# /disk1 was on /dev/sda6 during installation
#UUID=34b0f6e4-b32a-4e74-b1e4-0aa14972f47b /disk1          ext4    defaults        0       2
# swap was on /dev/sda5 during installation
UUID=de9ecede-7d30-4bf7-891b-87a410818366 none            swap    sw              0       0
############################################################################################
/dev/vg_srv152/lv01 /disk1 ext4 defaults 0 1
root@srv152bk:/disk1#



No comments:

Post a Comment