#!/bin/sh - # # Copyright (c) 1980 Regents of the University of California. # All rights reserved. The Berkeley software License Agreement # specifies the terms and conditions for redistribution. # # @(#)mklost+found.sh 5.1 (Berkeley) 5/28/85 # # modified for MAXNAMLEN of 63 - 'fsck' can grow lost+found by up to NDADDR # blocks now. mkdir lost+found cd lost+found echo creating slots... for i in 1 2 3 4 5 6 7 8 9 0 a b c d e f do cat ${i}XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX done echo removing dummy files... for i in 1 2 3 4 5 6 7 8 9 0 a b c d e f do rm ${i}X* done cd .. echo done ls -ld `pwd`/lost+found