Recovering files from an external hard disk...
Hi.
A few days ago I installed Ubuntu 10.04 on a friend's laptop, I didn't realise that my 320GB external hard disk was plugged and disaster happened: I formatted the device from FAT32 to Ext4 to get /home on it! (I know I'm stupid!)
Now I'm trying to use foremost the way is explained in some posts of this site and in https://help.ubuntu.com/community/DataRecovery#Foremost
I downloaded Ubuntu Rescue Remix version 10.04 and started Live CD in my desktop. I realised that foremost is included in it because when I tried to install it I got a "0 packages to be installed" message. Anyway I did "dpkg -l | grep fore" to get sure of this.
Then I identified the external hard disk (/media/usb0) and mounted the desktop's hard disk (/dev/sda1):
sudo mount /dev/sda1 /recovery
Then I created a directory in which I would like the data to be recovered (if possible):
sudo mkdir /recovery/foremost
Now I'm using foremost this way:
sudo foremost -w -i /media/usb0 -o /recovery/foremost
The screen says:
Processing: stdin
| <--------------------- (pipe symbol)
and nothing seems to happen... I'm doing it the correct way? Should I wait for HOURS or DAYS even the screen says nothing?
Thanks.

/media/usb0 is a mount
/media/usb0 is a mount point. You do not want to run foremost on a mounted filesystem, but on a block device.
You would need to use /dev/sdb1 or whatever the device is.
I would boot the Rescue Remix, run
tail -f /var/log/messages
and then plug in the device. As the kernel detects the usb drive, the device will be displyed on the screen.
Hit CTRL-C to exit the tail and then run foremost on that device.