Re: Disk mounten
On 13.Dec 2004 - 17:51:05, Andreas Pakulat wrote:
> war ein Kreuz), aber die zugrundeliegenden Tools sind diesselben wie
> bei Debian und mount interessiert es nicht ob das zu mountende FS auf
> einem Device existiert welches ein Partition darstellt oder nicht.
Um das nochmals zu untermauern:
neo:/mnt>fdisk -l /dev/hdd
Disk /dev/hdd: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
neo:/mnt>mke2fs -j /dev/hdd
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
7520256 inodes, 15012900 blocks
750645 blocks (5.00%) reserved for the super user
First data block=0
459 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
Writing inode tables: done
Creating journal (8192 blocks): 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.
neo:/mnt>mount /dev/hdd /mnt/temp
neo:/mnt>mount
/dev/hdd on /mnt/temp type ext3 (rw)
neo:/mnt>touch /mnt/temp/file1
neo:/mnt>echo "Das ist ein Test" >> /mnt/temp/file1
neo:/mnt>cat /mnt/temp/file1
Das ist ein Test
neo:/mnt>fdisk /dev/hdd
neo:/mnt>fdisk -l /dev/hdd
Disk /dev/hdd: 61.4 GB, 61492838400 bytes
255 heads, 63 sectors/track, 7476 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 7476 60050938+ 83 Linux
neo:/mnt>mount /dev/hdd /mnt/temp/
neo:/mnt>mke2fs /dev/hdd1
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
7520256 inodes, 15012734 blocks
750636 blocks (5.00%) reserved for the super user
First data block=0
459 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 35 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
neo:/mnt>mount /dev/hdd /mnt/temp
mount: wrong fs type, bad option, bad superblock on /dev/hdd,
or too many mounted file systems
neo:/mnt>mount /dev/hdd1 /mnt/temp
neo:/mnt>ls /mnt/temp/
lost+found
hdd ist ne ganz normale IDE-Platte.
Andreas
--
Your life would be very empty if you had nothing to regret.
Reply to: