LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Auto mount a HD (https://www.linuxquestions.org/questions/linux-software-2/auto-mount-a-hd-427225/)

sunhui 03-22-2006 05:03 AM

Auto mount a HD
 
I have newly add a HD to the RH server , I use mount /dev/sdc5 /vol1 that is successfully mount the HD , but however , if I add this entry to the /etc/fstab, it can't boot , the error messages is can't mount the volumn , could advise what is wrong ? thx.

abisko00 03-22-2006 05:04 AM

Your /etc/fstab would be helpful to analyse the problem.

rahulk 03-22-2006 05:12 AM

hi,

please paste us the contents of your fstab file.

-Rahul.

shawnbishop 03-22-2006 05:49 AM

Hi

add this to your /etc/fstab file

/dev/sdc5 /vol1 "filesystemtype" defaults 0 0

An example is an enntry from my /etc/fstab file

# /dev/hdb6 /ftp/sales reiserfs defaults 1 2

Cheers

sunhui 03-22-2006 07:20 PM

Quote:

Originally Posted by shawnbishop
Hi

add this to your /etc/fstab file

/dev/sdc5 /vol1 "filesystemtype" defaults 0 0

An example is an enntry from my /etc/fstab file

# /dev/hdb6 /ftp/sales reiserfs defaults 1 2

Cheers


thx reply,

what is difference of "defaults 1 2" and "defaults 0 0" ?

thx

rahulk 03-23-2006 01:42 AM

what is difference of "defaults 1 2" and "defaults 0 0" ?



defaults 1 2

here 1 indicates dump It means that this partition or drive needs to be backed up via dump facility in Linux.

2 indicates fsck check. The value of "1" is used for the first drive (generally a root partition) to be checked via fsck. 2 means those drives which are checked by fsck after the root partition.

hence defaults 0 0 means that there will be no dumping or backup of the data on this drive by linux and there will be no fsck check. Read some more on this topic on linux websites or documentation.

-Rahul.


All times are GMT -5. The time now is 07:38 PM.