Re: customizing disk: free sectors problem
Tom Oehser <[email protected]> Tue, 6 May 2003 11:40:40 -0400 (EDT)
| Newsgroups | gmane.linux.tomsrtbt |
|---|---|
| Message-ID | <[email protected]> |
You need to learn how hard links work. Consider: ls -li /rb/2/bin/gzip /rb/2/bin/ifconfig 2441750 -rwxr-xr-x 42 tom users 114716 Feb 2 17:12 /rb/2/bin/gzip 2441750 -rwxr-xr-x 42 tom users 114716 Feb 2 17:12 /rb/2/bin/ifconfig Note the column that says "42". This means there are 42 files that are the SAME FILE. Deleting either one frees *nothing*! The 2441750 is the *inode* of the file. There is a file which is internally called "2441750". There are *2* directory entries that point to it! You must delete *all 42* of them before you free *anything*! (PS: tomsrtbt won't work if you do...). -Tom On Tue, 6 May 2003, Agora wrote: > Date: Tue, 6 May 2003 17:28:31 +0200 > From: Agora <[email protected]> > To: [email protected] > Subject: [tomsrtbt] customizing disk: free sectors problem > > Hello everyone! > > I'm trying to customize tomsrtbt 2.0.103 to > add SMB support using the unpack.s/buildit.s > method described in FAQ question 7. > > So, I unpack.s the diskette, and put in 2/bin > smbmount, smbmnt and smbumount files > and smbfs.o in 2/lib/modules. All the four files > were downoladed and bunzip2ed from tombsrtbt > addons webpage. > > These files takes all together 725.328 bytes, > so I deleted some files that I don't need in > the diskette (in particular, nc, zcat, gzip, > gunzip, traceroute, telnet and wget binaries). > The deleted files free 767.711 bytes, > so the copied files should fit in the > diskette, aren't they? > > ...But when trying buildit.s I get an > ugly error message: > > ... > Cannot build, -439 sectors free! > > I would like to know: > > - What is the rule to calculate the > disk space that copying/deleting a > file takes? > > - How can I free space to copy > the files that I need (in general, > any add-on that would be needed)? > Deleting more files? > > Any help is welcome. Thanks very > much in advance! > > -------- > FermÃn > > PD. Sorry for the duplicated mail :( >