LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mount a subfolder of /hda2 (https://www.linuxquestions.org/questions/linux-software-2/mount-a-subfolder-of-hda2-254989/)

hypoglycemic 11-15-2004 03:57 AM

mount a subfolder of /hda2
 
I'm dual booting fc2 and XP. I can mount the root of these XP partitins no problem. I would however like to mount a few sub-folder (all my java and scheme files) from /dev/hda2/java and /dev/hda2/scheme to home/me/java etc.

Problem is, /hda2 is a file and not a directory so how can I mount it?

I tried to mount off another mount: /mnt/red and point it to my home folder.
red is the XP partition
mount /mnt/red/java /home/me/java
except it says the mount is not a block device

any thoughts?

abisko00 11-15-2004 04:35 AM

I am not quite sure what you mean.

It sounds to meas if /dev/hda2 is already mounted and /java and /scheme are subfolder on this partition. In that case you should try to set a link in you home directory that points to those folders (see: man ln).

If those are compressed files, however, then may might be able to mount them with the loop option of mount (mount -o loop /dev/hda2/java /home/me/java)

hypoglycemic 11-16-2004 05:27 AM

yep ln is perfect
thanks


All times are GMT -5. The time now is 07:26 PM.