질문&답변
클라우드/리눅스에 관한 질문과 답변을 주고 받는 곳입니다.
리눅스 분류

[질문]하드디스크 일부만을 포멧했을때 기존영역 인식못함

작성자 정보

  • 이선재 작성
  • 작성일

컨텐츠 정보

본문

[질문]하드디스크 일부만을 포멧했을때 기존영역 인식못함?

사용리눅스 REDHAT 7.3
/, /boot, 스왑을 포멧하고 새로 설치했더니
/data1 과 /data2 를 인식하지 못하네요
경험 있으신 분의 조언 부탁드립니다.

<포멧전>
[root@w02 backup]# df -h
Filesystem        Size  Used Avail Use% Mounted on
/dev/ida/c0d0p3   15G  2.3G   11G  17% /
/dev/ida/c0d0p1   96M   14M   77M  15% /boot
/dev/ida/c0d1p1   9.6G  5.1G  4.1G  55%  /data1
/dev/ida/c0d1p2   7.1G  4.9G  1.8G  73%  /data2
none              1008M     0 1008M   0% /dev/shm

<포멧후>
[root@w02 lib]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/ida/c0d0p3        15G  5.1G  8.8G  37% /
/dev/ida/c0d0p1        96M   14M   77M  15% /boot
none                 1008M     0 1008M   0% /dev/shm


<제가 한 방식입니다>

[root@w02 lib]# cat /etc/fstab
LABEL=/                 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /proc                   proc    defaults        0 0
none                    /dev/shm                tmpfs   defaults        0 0
/dev/ida/c0d0p2         swap                    swap    defaults        0 0
/dev/cdrom              /mnt/cdrom              iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0                /mnt/floppy             auto    noauto,owner,kudzu 0 0

[root@w02 lib]# df -k
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/ida/c0d0p3       15332696   5319688   9234136  37% /
/dev/ida/c0d0p1          98747     13862     79786  15% /boot
none                   1032600         0   1032600   0% /dev/shm

[root@w02 lib]# mount
/dev/ida/c0d0p3 on / type ext3 (rw)
none on /proc type proc (rw)
/dev/ida/c0d0p1 on /boot type ext3 (rw)
none on /dev/pts type devpts (rw,gid=5,mode=620)
none on /dev/shm type tmpfs (rw)


[root@w02 lib]# fdisk /dev/ida/c0d0

The number of cylinders for this disk is set to 4357.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/ida/c0d0: 255 heads, 32 sectors, 4357 cylinders
Units = cylinders of 8160 * 512 bytes

         Device Boot    Start       End    Blocks   Id  System
/dev/ida/c0d0p1   *         1        25    101984   83  Linux
/dev/ida/c0d0p2            26       539   2097120   82  Linux swap
/dev/ida/c0d0p3           540      4357  15577440   83  Linux


[root@w02 lib]# fdisk /dev/ida/c0d1

The number of cylinders for this disk is set to 4357.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/ida/c0d1: 255 heads, 32 sectors, 4357 cylinders
Units = cylinders of 8160 * 512 bytes

         Device Boot    Start       End    Blocks   Id  System
/dev/ida/c0d1p1   *         1      2510  10240784   83  Linux
/dev/ida/c0d1p2          2511      4357   7535760   83  Linux

-- 이렇게 보이기는 하는데 막상 mount 하면 에러가 뜨네요

[root@w02 /]# mke2fs /dev/ida/c0d1
mke2fs 1.27 (8-Mar-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2223872 inodes, 4444140 blocks
222207 blocks (5.00%) reserved for the super user
First data block=0
136 block groups
32768 blocks per group, 32768 fragments per group
16352 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Writing inode tables: done
Writing superblocks and filesystem accounting information:
done

This filesystem will be automatically checked every 23 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.

----------mkdir /data1


[root@w02 /]# mount -t ext3 /dev/ida/c0d1p1 /data1
mount: wrong fs type, bad option, bad superblock on /dev/ida/c0d1p1,
       or too many mounted file systems

관련자료

댓글 0
등록된 댓글이 없습니다.

공지사항


뉴스광장


  • 현재 회원수 :  60,133 명
  • 현재 강좌수 :  36,172 개
  • 현재 접속자 :  242 명