LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-22-2006, 05:03 AM   #1
sunhui
Member
 
Registered: Jan 2006
Location: taiwan
Posts: 156

Rep: Reputation: 30
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.
 
Old 03-22-2006, 05:04 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Your /etc/fstab would be helpful to analyse the problem.
 
Old 03-22-2006, 05:12 AM   #3
rahulk
Member
 
Registered: Mar 2006
Posts: 110

Rep: Reputation: 16
hi,

please paste us the contents of your fstab file.

-Rahul.
 
Old 03-22-2006, 05:49 AM   #4
shawnbishop
Member
 
Registered: Dec 2005
Location: South Africa
Distribution: CentOS,Ubuntu,Fedora
Posts: 249

Rep: Reputation: 30
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
 
Old 03-22-2006, 07:20 PM   #5
sunhui
Member
 
Registered: Jan 2006
Location: taiwan
Posts: 156

Original Poster
Rep: Reputation: 30
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
 
Old 03-23-2006, 01:42 AM   #6
rahulk
Member
 
Registered: Mar 2006
Posts: 110

Rep: Reputation: 16
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
This is how to Auto Mount Crypticus Linux - Newbie 6 03-28-2005 02:48 PM
Auto mount. non root mount canyon289 Linux - Hardware 1 02-21-2005 10:05 PM
mount permmissions and auto mount mokojin Slackware 3 02-28-2004 10:47 AM
autofs enabled in kernel but auto.mount and auto.master are NOT in /etc! Alybyzrp Linux - General 0 11-11-2003 12:26 PM
SCRIPT: check if auto-mount mount-points are still mounted markus1982 Linux - Software 0 05-25-2003 05:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration