LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2009, 12:13 AM   #1
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Rep: Reputation: 15
Question Which dump and fsck option to use in a second hard disk?


Hi,

I mounted a second hard drive in my computer as /second_disk.

I edit the /etc/fstab to include this drive and make the mounting permanent.

Which dump and fsck options to use in a second hard disk?

/dev/sdb1 /second_disk ext3 acl,user_xattr ? ?

dump: should i use 0 or 1?

fsck: should i use 0 or 1 or 2?

Thanks!
 
Old 07-17-2009, 06:08 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
http://www.linuxquestions.org/linux/..._and_explained though note he switched things: the 6th or last field is the fsck order.
 
Old 07-17-2009, 06:14 AM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

Quote:
excerpt from 'man fstab';

The fifth field, (fs_freq), is used for these filesystems by the
dump(8) command to determine which filesystems need to be dumped. If
the fifth field is not present, a value of zero is returned and dump
will assume that the filesystem does not need to be dumped.

The sixth field, (fs_passno), is used by the fsck(8) program to deter-
mine the order in which filesystem checks are done at reboot time. The
root filesystem should be specified with a fs_passno of 1, and other
filesystems should have a fs_passno of 2. Filesystems within a drive
will be checked sequentially, but filesystems on different drives will
be checked at the same time to utilize parallelism available in the
hardware. If the sixth field is not present or zero, a value of zero
is returned and fsck will assume that the filesystem does not need to
be checked.
The fine 'man' is useful!
 
Old 07-17-2009, 10:26 AM   #4
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by unSpawn View Post
http://www.linuxquestions.org/linux/..._and_explained though note he switched things: the 6th or last field is the fsck order.
Thank you, it's very helpful.
 
Old 07-17-2009, 10:26 AM   #5
jollibee
Member
 
Registered: Jul 2009
Distribution: Red Hat EL 5
Posts: 34

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by onebuck View Post
Hi,



The fine 'man' is useful!
Thank you, the explanation is so clear.
 
  


Reply



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
[SOLVED] Help Edit the /etc/fstab specifically the dump and fsck options jollibee Linux - Newbie 3 07-16-2009 11:30 PM
Cannot make fsck --rebuild-tree option to work stilita Linux - Laptop and Netbook 4 06-30-2009 07:58 AM
Grub boot Hard disk- make 'root=' option a variable (/dev/sda1 keeps changing), carl0ski Linux - General 4 02-03-2007 08:55 PM
GRUB's hard disk option unable to boot kernel 2.6.15 cvelasquez Linux - Software 2 03-10-2006 03:18 PM
fsck -t option Linuxuser_81 Linux - Newbie 4 10-03-2005 06:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:09 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