up

small note on mount 001

mount reiserfs

何でも良い理由では 無いようです

lx:~# mount /dev/sda7 /mnt/
mount: you must specify the filesystem type
lx:~# mount -t reiserfs /dev/sda7 /mnt/
lx:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   3416104   1288312  73% /
/dev/sda8              2822080   1348624   1330100  51% /var/data
/dev/sda7              5119820   2672536   2447284  53% /mnt
lx:~# umount /mnt/

要するに

-t reiserfs

# mount -t reiserfs /dev/sda7 /mnt/
# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   2705860   1998556  58% /
/dev/sda8              2822080    513248   2165476  20% /var/data
/dev/sda7              5119820   2672536   2447284  53% /mnt
# umount /mnt/
# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   2705860   1998556  58% /
/dev/sda8              2822080    513248   2165476  20% /var/data

mount freebsd

/*  抜粋  sdd の 容量は 約 20 B bytes 
$ bc -q
512*2048*19541
20490223616
20,490,223,616
G   M   K                      */

# fdisk -l
Disk /dev/sdd: 64 heads, 32 sectors, 19541 cylinders
Units = cylinders of 2048 * 512 bytes

   Device Boot    Start       End    Blocks   Id  System
/dev/sdd1             1      6676   6836208   83  Linux
/dev/sdd2          6677     13352   6836224   83  Linux
/dev/sdd3   *     13353     19541   6337536   a5  BSD/386

/*  mount するには */

# mount -t ufs -ro ufstype=44bsd /dev/sdd3 /mnt/
# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   2705928   1998488  58% /
/dev/sda8              2822080    513248   2165476  20% /var/data
/dev/sdd3               128990     38564     80122  33% /mnt
# umount /mnt/
# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   2705932   1998484  58% /
/dev/sda8              2822080    513248   2165476  20% /var/data

注意 kernel が freebsd の 場所を mount する場合は

Module                  Size  Used by    Not tainted
ufs                    47136   1  (autoclean)

の様に ufs モジュールを 可能な様に 作成されていなくては ならない 今回は モジュールとして 対応させている。

lx:~# lsmod
Module                  Size  Used by    Not tainted
snd-es18xx             16688   0 
snd-pcm                55616   0  [snd-es18xx]
snd-pnp                 3360   0  [snd-es18xx]
isa-pnp                27812   0  [snd-es18xx snd-pnp]
snd-opl3-lib            5700   0  [snd-es18xx]
snd-timer              14340   0  [snd-pcm snd-opl3-lib]
snd-hwdep               4480   0  [snd-opl3-lib]
snd-mpu401-uart         3008   0  [snd-es18xx]
snd-rawmidi            12544   0  [snd-mpu401-uart]
snd-seq-device          3912   0  [snd-opl3-lib snd-rawmidi]
snd                    31620   0  [snd-es18xx snd-pcm snd-opl3-lib \
                snd-timer snd-hwdep snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               3428   0  [snd]
snd-page-alloc          4548   0  [snd-pcm snd-timer snd-hwdep snd-rawmidi snd-seq-device snd]
lx:~# mount -t ufs -ro ufstype=44bsd /dev/sdd3 /mnt/
lx:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   3416092   1288324  73% /
/dev/sda8              2822080   1348592   1330132  51% /var/data
/dev/sdd3               128990     38564     80122  33% /mnt

lx:~# lsmod
Module                  Size  Used by    Not tainted
ufs                    47136   1  (autoclean)
snd-es18xx             16688   0 
snd-pcm                55616   0  [snd-es18xx]
snd-pnp                 3360   0  [snd-es18xx]
isa-pnp                27812   0  [snd-es18xx snd-pnp]
snd-opl3-lib            5700   0  [snd-es18xx]
snd-timer              14340   0  [snd-pcm snd-opl3-lib]
snd-hwdep               4480   0  [snd-opl3-lib]
snd-mpu401-uart         3008   0  [snd-es18xx]
snd-rawmidi            12544   0  [snd-mpu401-uart]
snd-seq-device          3912   0  [snd-opl3-lib snd-rawmidi]
snd                    31620   0  [snd-es18xx snd-pcm snd-opl3-lib \
                snd-timer snd-hwdep snd-mpu401-uart snd-rawmidi snd-seq-device]
soundcore               3428   0  [snd]
snd-page-alloc          4548   0  [snd-pcm snd-timer snd-hwdep snd-rawmidi snd-seq-device snd]
lx:~# umount /mnt/
lx:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/sda5              4960464   3416100   1288316  73% /
/dev/sda8              2822080   1348592   1330132  51% /var/data

kernel の 状態を確認すると このように なって入るでしょう

lx:~# cd /usr/src/linux-2.4.22/
lx:/usr/src/linux-2.4.22# make menuconfig
    ================
Linux Kernel v2.4.22 Configuration

 File systems
< > UDF file system support (read only) 
<M> UFS file system support (read only) 
Network File Systems  --->  
    ========================

にゃんたろう 拝!

2007年 5月 4日 (金) 21:51:25 JST 作成


up

Copyright © 2007. nyantarou All Rights Reserved.