Subject: Re: [GRLUG] Is the list still up? From: Godwin Date: Tue, 26 Apr 2005 21:07:52 -0400 To: Grand Rapids Linux User Group - Mailing List Whooaah weee!! Now I see it (kinda). I deal with this in a very minute manner every day in moving files between Linux and OpenVMS. Yuk! A little DCL translates stuff like this (OpenVMS 7.2-1): $ show device dra0 Device Device Error Volume Free Trans Mnt Name Status Count Label Blocks Count Cnt SEI$DRA0: Mounted 0 ALPHASYS 3880556 368 1 Into prettier stuff like this: $ @[.temp]disk_space Physical Name Volume Name Type Err Size Free Used Cap _SEI$DRA0: ALPHASYS DRX0 0 4091mb 1894mb 2197mb 53% Thanks indeed! G- On 4/26/05, Roberto Villarreal wrote: >> Looks like I have some man page reading to see what you did; my >> knowledge seems to be lacking in this area. This also seems like >> something that could come in handy down the road. Thanks again for >> clearing up the issue! >> >> Roberto >> >> Jeff DeFouw wrote: > >>> > On Tue, Apr 26, 2005 at 01:15:15AM -0400, Roberto Villarreal wrote: >>> > >> >>>> >>I don't have any partitions ot spare to try this, but would you suppose >>>> >>that if I had formatted my partition (ext2) to use 1k blocks (instead of >>>> >>the 4k that my system defaulted to), that 'stat' would report that 2 >>>> >>blocks were allocated (for the 726b file)? >> >>> > >>> > >>> > Yes. You don't need a partition, you can make and mount a filesystem >>> > within a file using a loop device: >>> > >>> > # dd if=/dev/zero of=/root/test.ext2 bs=512k count=1 >>> > 1+0 records in >>> > 1+0 records out >>> > 524288 bytes transferred in 0.021101 seconds (24846468 bytes/sec) >>> > # mke2fs -b 1024 -F /root/test.ext2 >>> > mke2fs 1.37 (21-Mar-2005) >>> > Filesystem label= >>> > OS type: Linux >>> > Block size=1024 (log=0) >>> > Fragment size=1024 (log=0) >>> > 64 inodes, 512 blocks >>> > 25 blocks (4.88%) reserved for the super user >>> > First data block=1 >>> > 1 block group >>> > 8192 blocks per group, 8192 fragments per group >>> > 64 inodes per group >>> > >>> > Writing inode tables: done >>> > Writing superblocks and filesystem accounting information: done >>> > >>> > This filesystem will be automatically checked every 34 mounts or >>> > 180 days, whichever comes first. Use tune2fs -c or -i to override. >>> > # mount -o loop /root/test.ext2 /mnt >>> > # echo blah > /mnt/blah >>> > # stat /mnt/blah >>> > File: `/mnt/blah' >>> > Size: 5 Blocks: 2 IO Block: 4096 regular file >>> > Device: 700h/1792d Inode: 12 Links: 1 >>> > Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) >>> > Access: 2005-04-26 01:36:38.000000000 -0400 >>> > Modify: 2005-04-26 01:36:38.000000000 -0400 >>> > Change: 2005-04-26 01:36:38.000000000 -0400 >>> > > >> _______________________________________________ >> grlug mailing list >> grlug@grandrapids-lug.org >> http://linux.emich.edu/mailman/listinfo/grlug >> -- Ubber::Geek http://grlug.org/ _______________________________________________ grlug mailing list grlug@grandrapids-lug.org http://linux.emich.edu/mailman/listinfo/grlug