Portál AbcLinuxu, 13. května 2024 19:03
Proč vůbec složka "lost+found" vznikla na nově vytvořené partition? K čemu slouží?
JFS
[root@centos /]# mkfs.jfs /dev/sda1 mkfs.jfs version 1.1.12, 24-Aug-2007 Warning! All data on device /dev/sda1 will be lost! Continue? (Y/N) y \ Format completed successfully. 8385898 kilobytes total disk space. [root@centos /]# mount /dev/sda1 /mnt/ [root@centos /]# ls -la /mnt total 8 drwxr-xr-x 2 root root 256 Jan 3 18:40 . drwxr-xr-x 23 root root 4096 Jan 3 18:38 ..
XFS
[root@centos /]# mkfs.xfs /dev/sda1 -f meta-data=/dev/sda1 isize=256 agcount=8, agsize=262059 blks = sectsz=512 attr=0 data = bsize=4096 blocks=2096472, imaxpct=25 = sunit=0 swidth=0 blks, unwritten=1 naming =version 2 bsize=4096 log =internal log bsize=4096 blocks=2560, version=1 = sectsz=512 sunit=0 blks, lazy-count=0 realtime =none extsz=4096 blocks=0, rtextents=0 [root@centos /]# mount /dev/sda1 /mnt [root@centos /]# ls -la /mnt total 8 drwxr-xr-x 2 root root 6 Jan 3 18:44 . drwxr-xr-x 23 root root 4096 Jan 3 18:38 .. [root@centos /]#
Fakt tam není.
ext3
[root@centos /]# mkfs.ext3 /dev/sda1 mke2fs 1.39 (29-May-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 1048576 inodes, 2096474 blocks 104823 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=2147483648 64 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 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 24 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. [root@centos /]# mount /dev/sda1 /mnt [root@centos /]# ls -la /mnt total 28 drwxr-xr-x 3 root root 4096 Jan 3 18:45 . drwxr-xr-x 23 root root 4096 Jan 3 18:38 .. drwx------ 2 root root 16384 Jan 3 18:45 lost+found
Je tam
Tato ukázka je z CentOS 5.2, totéž platí pro Ubuntu 8.10 a JFS. Fakt je to jinde jinak?
fsck
se zeptá na její vytvoření. Což je nemilé v případě, že se tak stane během bootu.
Tiskni Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.