[완료]우분투에서 강제 디스크검사 안할려면 어떻게 해야하나요?

OpenSnake의 이미지

가끔씩 우분투로 부팅할때 fsck 을 자동 실행하더군요..
제 하드가 500기가입니다... -_-;; 한번 시작하면 시간 많이 잡아먹습니다.

그래서 이걸 제가 하고 싶을때 하게 바꾸고 싶거든요..
어디을 맞춰줘야 하나요??

랜덤여신님 블로그을 보니깐
http://barosl.com/blog/entry/autofsck-review

autofsck 에 대해서 애기해주셨는데요..
이거 대체 어떻게 설정하는지 모르겠군요...입력이 더블클릭밖에 없습니다..-_-;

tune2fs 을 다루면 된다고 적혀있지만 검색해보니 ext2 을 ext3 로 바꾸어줄때 사용한다고
적혀있더군요...이거 잘못하면 파티션 날리거같아서 안해보고있습니다..

강제 디스크검사(fsck) 안할래면 어떻게 해야하죠?

절차탁마의 이미지

/etc/fstab에 마지막 필드를 0으로 바꾸는 방법이 있습니다.
http://www.superuser.co.kr/lecture/lec_linux_01/lec-data/07data.pdf
(우분투는 가능한지 어떤지 모르겠네요)

ext2 쓰시나요?
그렇다면 ext3나 다른 journaling file system으로
바꾸시는게 좋습니다. fsck에 시간 얼마 않걸리고요.

ext2를 tune2fs로 ext3로 바꾸는거 괜잖습니다.

결론 : tune2fs를 이용해서 ext2를 ext3로 변경

OpenSnake의 이미지

/etc/fstab 이 방법 좋네요..

0 이면 안하고 1 이면 부팅시 검사한다는거죠?
제가 하고 싶을때 해야겠습니다.... :)

그리고 ext3 파티션 쓰고있습니다.

--------------------------------------------
혼자있고 싶습니다. 모두 지구밖으로 나가주세요.

--------------------------------------------
혼자있고 싶습니다. 모두 지구밖으로 나가주세요.

atie의 이미지

hardy의 부트 스플래쉬에는 fsck 때 건너뛰라고 esc를 누르는 것이 추가되어 있습니다. (그런데 저는 한 번도 눌러본 적은 없어요...)
----
I paint objects as I think them, not as I see them.
atie's minipage

----
I paint objects as I think them, not as I see them.
atie's minipage

랜덤여신의 이미지

tune2fs를 쳐보면 이런 메시지가 나옵니다.

Quote:
tune2fs 1.40.2 (12-Jul-2007)
Usage: tune2fs [-c max_mounts_count] [-e errors_behavior] [-g group]
[-i interval[d|m|w]] [-j] [-J journal_options]
[-l] [-s sparse_flag] [-m reserved_blocks_percent]
[-o [^]mount_options[,...]] [-r reserved_blocks_count]
[-u user] [-C mount_count] [-L volume_label] [-M last_mounted_dir]
[-O [^]feature[,...]] [-T last_check_time] [-U UUID] device

이 중에서 -c max_mounts_count 가 몇 번 마운트된 후에 검사할지를 결정합니다. man 페이지를 보면 좀 더 자세히 나와있습니다.

Quote:
-c max-mount-counts
Adjust the number of mounts after which the filesystem will be
checked by e2fsck(8). If max-mount-counts is 0 or -1, the num‐
ber of times the filesystem is mounted will be disregarded by
e2fsck(8) and the kernel.

따라서 tune2fs -c 0 /dev/sda[번호] 라고 써주면 됩니다.

이렇게 해도 120일인가에 한 번씩은 확인이 이루어지는데, 이것도 끄고 싶다면 -i 를 쓰면 됩니다.

이 설정은 파티션 자체에 기록되므로, 한 번 설정하면 파티션이 삭제되기 전까지 유효합니다.

그런데 가급적이면 안 끄길 권장합니다. 제 경험으로는 가끔 오류가 수정될 때가 있던데요...

ps: ext2 -> ext3 변환은 -j 옵션을 써야 이루어지므로 상관 없습니다. 또한 ext2와 ext3의 차이는 단순히 저널이 있느냐 없느냐이므로 데이터 손실도 일어나지 않습니다.
----
블로그 / 위키 / 리눅스 스크린샷 갤러리

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.