views:

73

answers:

2

I have a linux device (proprietary embedded device) that has the following mount points (when I type "mount") for two key directories.

/dev/sda1 on /home/user/Personal type ufsd (rw,nls=utf8,uid=60,gid=144,fmask=0,dmask=0,force)
/dev/sda1 on /home/user/Backup type ufsd (rw,nls=utf8,uid=60,gid=144,fmask=0,dmask=0,force)

I want to create another directory alongside those two called "Downloads" that also mounts to the same device (/dev/sda1)

The problem I have is that I want to create another directory under /home/user, the contents are not on /dev/sda1 but on another device (the system NAND) So I guess the directories "Personal" and "Backup" are seperately mounted to the /dev/sda1 device. If I simply create a directory e.g.

/home/user/downloads

the downloads folder is actually in the devices NAND flash and not the large hard drive (/dev/sda1) where it should be.

I looked through /etc/fstab but that was no help, no reference to the mount points in there.

How would I go about creating the "Downloads" folder under /home/user and mounting it to the device /dev/sda1 as the other two directories are (using the same settings the default ones have given above).

Any suggestions please?

A: 

I'd suggest you make one of those read only (unless you're into filesystem corruption), alternately mount /home/user instead (or mount a different directory and create symlinks for Personal and Backup that point into your mount point).

Hasturkun
+1  A: 

Personally, I would do this

ln -s firstMountPoint secondDesiredMountPoint

where either are absolute unix paths. This will create a soft link, allow writing to both, and no file corruption.

Dr. Zim
symlinks in Hasturkun's answer are the same as this answer ;)
Dr. Zim