I've got a strange problem with Debian. I installed this distribution last weekend and everything went smoothly. However tonight I rebooted my Debian box to attach a second hard disk and transfer some data off it (the previous hard disk was unreliable).
The new drive is a Seagate 7200.10 320GB. I've set up a samba share so I can use this drive as an archive / backup disk. I've shared the directory /www as "www" and mapped this as H:\ in Windows. When I create files and directories from my Windows machine on the Debian box everything APPEARS to work fine but when I log in over SSH on the Debian machine and do df -h I can see no disk space has been used. For example:
I've created these two directories, and there's about 20 PDF books on Java in this directory (or so Windows would have me believe!).
However this data isn't really on the disk:
debian:/www# du /www
1 /www
debian:/www# ls -la /www
total 2
drwxrwxr-x 2 root serberus 48 2006-10-15 13:08 .
drwxr-xr-x 22 root root 584 2006-10-15 13:08 ..
debian:/www# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 297G 297M 297G 1% /
tmpfs 253M 0 253M 0% /dev/shm
Any clues as to why this is happening? Should I turn off write cache?
I just lost 90 GB of data when I reset my Debian box (now surely a 8/16MB buffer on the HDD cannot possibly hold this much info - does Windows really cache all network files written to a remote machine for the entire session? I only reset around once a week). I'm lost as to what is going on here... any help appreciated.
The new drive is a Seagate 7200.10 320GB. I've set up a samba share so I can use this drive as an archive / backup disk. I've shared the directory /www as "www" and mapped this as H:\ in Windows. When I create files and directories from my Windows machine on the Debian box everything APPEARS to work fine but when I log in over SSH on the Debian machine and do df -h I can see no disk space has been used. For example:

I've created these two directories, and there's about 20 PDF books on Java in this directory (or so Windows would have me believe!).
However this data isn't really on the disk:
debian:/www# du /www
1 /www
debian:/www# ls -la /www
total 2
drwxrwxr-x 2 root serberus 48 2006-10-15 13:08 .
drwxr-xr-x 22 root root 584 2006-10-15 13:08 ..
debian:/www# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda1 297G 297M 297G 1% /
tmpfs 253M 0 253M 0% /dev/shm
Any clues as to why this is happening? Should I turn off write cache?

I just lost 90 GB of data when I reset my Debian box (now surely a 8/16MB buffer on the HDD cannot possibly hold this much info - does Windows really cache all network files written to a remote machine for the entire session? I only reset around once a week). I'm lost as to what is going on here... any help appreciated.