fstabをどのように修正するのですか?

fstabをどのように修正するのですか?

マウントするパーティションが2つあります。

sdb1 which uses ext2 file system
sdc1 which uses ext4 file system

fstabにこの2行を追加しました

/dev/sdb1 /home2 auto auto,noatime,default 0 0
/dev/sdc1 /home3 auto auto,noatime,noload,data=ordered,commit=10,default 0 0

私がインストールできなかったので間違っているようです。それを修正する方法?

ただし、いくつかのエラーのためインストールできません。

ここに私のfstabと表示するいくつかのコマンドがあります。

root@host [/etc]# cat fstab
#
# /etc/fstab
# Created by anaconda on Tue Jan 8 10:16:53 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=eb3b9431-7964-47fd-a497-e4ddcd3f9d05 / ext4 defaults 1 1
UUID=ed11681c-9343-41ac-ac8b-a29bf4d13fbd /boot ext4 defaults 1 2
#UUID=191a3af4-c48a-4779-974a-c55dc290543d /home1 ext4 defaults 1 2
#UUID=eca46a9a-6666-40d0-bbe5-e35b54295264 /home2 ext4 defaults 1 2
UUID=475f3ba3-6459-42ac-b441-1daa95acb2b3 swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/usr/tmpDSK /tmp ext3 defaults,noauto 0 0
/dev/sdb1 /home2 auto auto,noatime,default 0 0
/dev/sdc1 /home3 auto auto,noatime,noload,data=ordered,commit=10,default 0 0
root@host [/etc]# parted -l
Model: ATA WDC WD15EADS-00R (scsi)
Disk /dev/sda: 1500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 525MB 524MB primary ext4 boot
2 525MB 34.4GB 33.8GB primary linux-swap(v1)
3 34.4GB 1500GB 1466GB primary ext4


Model: ATA SAMSUNG SSD 830 (scsi)
Disk /dev/sdb: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 256GB 256GB primary ext2


Model: ATA M4-CT256M4SSD2 (scsi)
Disk /dev/sdc: 256GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 256GB 256GB primary ext4


root@host [/etc]# mount /home2
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

root@host [/etc]# mount /home3
mount: wrong fs type, bad option, bad superblock on /dev/sdc1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

root@host [/etc]#

ベストアンサー1

この試み:

/dev/sdb1 /home2 ext2 auto,noatime,defaults 0 0
/dev/sdc1 /home3 ext4 auto,noatime,noload,data=ordered,commit=10,defaults 0 0

"auto"(元の/ etc / fstabエントリで使用されているように)は有効なファイルシステムタイプではありません。

おすすめ記事