Directory structure as seen from Telnet?

May contain traces of nut

I'm having a bit of a problem understanding what I am seeing via Telnet. I want to copy some files from the external Ext3 drive to the external NTFS drive, and although the SUI lets me press the copy button nothing actually happens when I do.

So I thought I would set the Humax into non-auto-powerdown mode and do the copy via cp command in Telnet. The trouble is I have explored "ls -l" and "ls -l mnt", "ls -l mnt/hd1(2,3,4)" but can't see anything I recognise as being the external drives.

Perhaps somebody can explain what's in the directory structure we see with "ls -l /"?

Well-Known Member

What you see when you type "ls -l /" is the root file system (i.e. the flash memory). However, you can mount other drives anywhere in that filesystem. To get a list of these "mount points", just type mount, you we see something like this:

The three hard disk partitions are /dev/sda1, /dev/sda2 & /dev/sda3 and you can access them form /mnt/hd1 to /mnt/hd3. The Humax GUI normally looks for things under the directory /media. This is a temporary directory (it uses the tmpfs - see above) and is recreated on boot. Within that directory are symbolic links to point My Video etc to their actual locations (see 'ls -l /media').

The ntfs-3g filesystem uses a user-space driver which is type fuseblk in the mount listing above.

Hard disks are usually labelled as /dev/sda, /dev/sdb etc. Partiitions on those drives are /dev/sda1, /dev/sda2 etc.

To copy a file from one drive to anther you just need to copy it from/to the appropriate directories under /media.

May contain traces of nut

May contain traces of nut

I've just discovered that when I put my PC to sleep the Telnet sessions dropped the line and the copy operation terminated (I had the copy running in one session and I was monitoring progress in another).

Is there some magic incantation I can use to "cp *" without repeating the files that have already been copied? Is there a way to keep the copy process active without having to keep the Telnet session open??

May contain traces of nut

Something's gone seriously wrong. A .ts file which should be 4.4GB is now up to 18GB on the copy.

Update: I stopped the process, then tried it again and similar happened. A clue is that the copy which normally was taking 20 minutes for a 4GB file was suddenly clocking up at the destination at 2GB/min. I tried it with one .ts and another .*, the non-ts files were not a problem but the second .ts didn't terminate (the same as the first). I don't think the sources were broken. I'm going to try rebooting and have another go.