이상한 /etc/fstab

webterror의 이미지

제 하드디스크 2개가 sata하드입니다.
분명..
부팅후..
mount -t ext3 /dev/sda1 /mnt/XXX로 하면 마운트가 됩니다..

그런데
fstab파일에 아래와 같이
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

#

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext2 noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0
/dev/hdd1 /home/webterror/www/data/data01 ext3 defaults 0 0
/dev/sda1 /home/webterror/www/data/data02 ext3 defaults 0 0
/dev/sdb1 /home/webterror/www/data/data03 ext3 defaults 0 0

# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0

===========================================================================
로 설정하면...
인식을 못하네요.. 왜그런거죠??

ydhoney의 이미지

정확하게 어떻게 인식을 못하신다는 말씀이신가요? 인식이 안되는 경우의 messages 파일을 확인하세요.

그리고 영 잘 모르겠으면 ext3 대신에 auto 로 값을 주고 umount 후 mount -a 로 마운트 해 보세요.

==
아 씨끄러 씨끄러~ 조용해!!
레드햇 9 이하 사용금지!

webterror의 이미지

/etc/fstab에 다음과 같이

/dev/sda1 /home/webterror/www/data/data02 ext3 defaults 0 0
이라고 써 넣으면.. ㅠㅠ

mount : spcial device /dev/sda1 does not exist
mount : spcial device /dev/sdb1 does not exist
부팅중 Some Local filesystem failed mount 라고 나옵니다....

어찌해야 하나요.... 휴...

ydhoney의 이미지

dmesg | grep sd

하셔서 결과를 뿌려주세요.

그리고 어떤 배포판을 사용하시는지도 함께..:-)

==
아 씨끄러 씨끄러~ 조용해!!
레드햇 9 이하 사용금지!

webterror의 이미지

SCSI device sda: 160086528 512-byte hdwr sectors (81964 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
SCSI device sda: 160086528 512-byte hdwr sectors (81964 MB)
sda: Write Protect is off
sda: Mode Sense: 00 3a 00 00
SCSI device sda: drive cache: write back
sda: sda1
sd 0:0:0:0: Attached scsi disk sda
SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write back
SCSI device sdb: 312581808 512-byte hdwr sectors (160042 MB)
sdb: Write Protect is off
sdb: Mode Sense: 00 3a 00 00
SCSI device sdb: drive cache: write back
sdb: sdb1
sd 1:0:0:0: Attached scsi disk sdb

ydhoney의 이미지

fstab의 ext3를 auto로 바꾼 후 그 안되는 두개를 umount 하신 후 다시 mount -a 해보신 후 결과를 알려주실순 없으신가요?

==
아 씨끄러 씨끄러~ 조용해!!
레드햇 9 이하 사용금지!

webterror의 이미지

말씀하신대로.. auto로 수정후에...
mount -a 자동하면 역시나 잘됩니다... 이상없는데요..

부팅할때는.. 꼭 이렇게 나오네요....... ㅡ;ㅡ
mount : spcial device /dev/sda1 does not exist
mount : spcial device /dev/sdb1 does not exist
부팅중 Some Local filesystem failed mount

부팅할때는 마운트가 안되요..ㅠㅠ

나참 환장 하것네. ㅠㅠ; 도와주세요~

ydhoney의 이미지

auto로 바꾸신 후 리부팅을 해보세요. =_=

전 젠투는 몰라요~ 랄라~ sd* 하드 인식 시간과 mount time이 반대로 되어있을지도 모를 일이죠. =_= (젠투는 원래 제각각인데 알게 뭔가요~ =3=33)

부팅하시면서 부팅 순서가 어떻게 되는지 확인하시고 boot.log 파일이 혹시 생성이 되시면 boot.log 파일 보시고 부팅 순서 과정중 뭐가 문제가 되는지 확인하세요. 레드햇 계열은 /var/log/boot.log 파일에 부트 로그가 남는데 젠투는 어디에 남는지 모르겠네요. :-)
==
아 씨끄러 씨끄러~ 조용해!!
레드햇 9 이하 사용금지!

webterror의 이미지

예~~ 아까 재부팅 하고 말씀 드렸던 거에요..
도데체 왜그런건지...

그럼 그게 반대로 되어있다면.. 어떻게 해야 하지..ㅠㅠ

webterror의 이미지

레드햇의 /etc/rc.local은...
젠투에서는 어디에 있나요...

ydhoney의 이미지

젠투 사용자분이 답변을 주셔야..=_=

만약 부팅 순서에 문제가 있다면 기본 init 및 rc를 확인하세요 :-)

우선 부트 순서 확인하고 부트로그같은게 남는다면 해당 로그를 확인하시는게 순서겠네요.

/var/log/messages 에도 sd 등으로 grep 해서 로그가 남는것이 있는지 확인하세요. :-)

==
아 씨끄러 씨끄러~ 조용해!!
레드햇 9 이하 사용금지!

nike984의 이미지

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

#

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext2 noatime 1 2
/dev/hda3 / ext3 noatime 0 1

#/dev/fd0 /mnt/floppy auto noauto 0 0
/dev/hdd1 /home/webterror/www/data/data01 ext3 defaults 0 0
/dev/sda1 /home/webterror/www/data/data02 ext3 defaults 0 0
/dev/sdb1 /home/webterror/www/data/data03 ext3 defaults 0 0

/dev/hda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0

# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0

이렇게 함 바꿔 보시죠?

위에 fstab파일에서 마운트 위치가 알파벳 순서로 리스트업되어야 제대로 인식 된다는 걸 어디서 들은적이 있는거 같아서요.

nike984의 이미지

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

#

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/hda1 /boot ext2 noatime 1 2
/dev/hda3 / ext3 noatime 0 1
/dev/hdd1 /home/webterror/www/data/data01 ext3 defaults 0 0
/dev/sda1 /home/webterror/www/data/data02 ext3 defaults 0 0
/dev/sdb1 /home/webterror/www/data/data03 ext3 defaults 0 0

#/dev/fd0 /mnt/floppy auto noauto 0 0

/dev/hda2 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0

# NOTE: The next line is critical for boot!
proc /proc proc defaults 0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
shm /dev/shm tmpfs nodev,nosuid,noexec 0 0

이렇게 함 바꿔 보시죠?

위에 fstab파일에서 마운트 위치가 알파벳 순서로 리스트업되어야 제대로 인식 된다는 걸 어디서 들은적이 있는거 같아서요.

webterror의 이미지

그래도 안되네요........ 흐미.. 참.. 어이가 없어서..

부팅할때는 안되는데..
부팅후에...
/etc/runlevels/boot/localmount restart
하면... 인식이 됩니다... 환장하긋네... ㅠㅠ

warpdory의 이미지

제 기억이 대충 맞다면 ..
/etc/rc.d/rc.local.start 였나 그쯤일 겁니다.

거기에 적어 주세요.

저 비슷한 파일 이름이 있는지 찾아 보세요... 젠투 쓴지가 1년은 넘어가서 가물 거리는군요.

---------
귓가에 햇살을 받으며 석양까지 행복한 여행을...
웃으며 떠나갔던 것처럼 미소를 띠고 돌아와 마침내 평안하기를...
- 엘프의 인사, 드래곤 라자, 이영도

즐겁게 놀아보자.
http://akpil.egloos.com


---------
귓가에 햇살을 받으며 석양까지 행복한 여행을...
웃으며 떠나갔던 것처럼 미소를 띠고 돌아와 마침내 평안하기를...
- 엘프의 인사, 드래곤 라자, 이영도

즐겁게 놀아보자.

ydhoney의 이미지

남들은 그냥 해 주는걸 젠투는 꼭 뭘 넣어줘야 하는건가요? =_= 슬랙웨어도 저렇진 않은데 =_=

대충 보니 sd* 쪽 디바이스만 안되시는것 같아서 뭔가 이상하다 라고 생각하고 있긴 합니다만, 기본적으로 마운트 작업은 장치 인식 이후에 해야 당연하다고 믿는지라..젠투에서 만약 이것이 꼬인 상황이라면? 역시 젠투 사용자 분들이 좋은 답변을 주리라고 믿습니다. :-) 설마 마운트 작업 이후에 sd묘듈이 올라온다거나 하는 불상사라도 벌어지면 좀 난감하겠군요 =_=

어쨌거나 부트 로그 좀 보세요 그 사용자분!! =_= 다른것보다 부트 로그 좀 보셔야 답이 나올거같은데;;

==
아 씨끄러 씨끄러~ 조용해!!
레드햇 9 이하 사용금지!

bus710의 이미지

저는 커널에서 뭔가 잘 못 설정해줘서 그런지 sata가 sda 가 아니라 hdg 로 뜨더군요.

/dev 를 검색해 보시고 sd* 와 hd* 가 어떤 것이 뜨는지 확인해 보시고...
만약 coldplug 나 udev 가 webterror 님이 예상한 것과 다른 이름으로 생성해 줬다면 그에 맞춰서 fstab을 수정해 줘야 할 것 같습니다;

akudoku.net

life is only one time

hys545의 이미지

그런 경우라면
부팅할땐 당연히 마운트 안됩니다.
장치가 인식안되는데
부팅한 다음엔 당연히 잘되고
이런경우에 굳이 하려면 커널에 집어넣거나
init 이미지에 넣는수 밖에

즐린