匿名

差分

利用者:MR G

2,017 バイト追加, 2008年1月31日 (木) 10:08
mk2fsし忘れてたので追加
Calling ioctl() to re-read partition table
fdisk: WARNING: rereading partition table failed, kernel still uses old table: Device or resource busy
 
何か忘れてると思ったら初期化を忘れていた。(だから文句言われる)<BR>
この前はどうやって使えてたんだろうか(記憶にございません)<BR>
mke2fs -c /dev/hda2 と入力してみる。
# mke2fs -c /dev/hda2
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
216832 inodes, 433062 blocks
21653 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=444596224
14 block groups
32768 blocks per group, 32768 fragments per group
15488 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
Checking for bad blocks (read-only test): done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 20 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
 
テストとして、/mnt/kbあたりにマウントさせてみた。<BR>
 
# mount /dev/hda2 /mnt/kd
# mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (ro)
none on /proc type proc (rw)
none on /dev type tmpfs (rw)
none on /var type tmpfs (rw)
none on /tmp type tmpfs (rw)
none on /dev/pts type devpts (rw)
none on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/hda2 on /mnt/kd type ext2 (rw)
 
dfでもちゃんと空き表示される。<BR>
ちなみに、2GBのフラッシュメモリを使っている。
# df -m
Filesystem 1M-blocks Used Available Use% Mounted on
rootfs 248 69 179 28% /
/dev/root 248 69 179 28% /
none 1 0 1 0% /dev
none 5 1 5 3% /var
none 10 3 8 25% /tmp
/dev/hda2 1666 3 1578 1% /mnt/kd
====自動でmountさせる====