Why doesn't 'mount --bind' command work?

Using applications, configuring, problems
Post Reply
Message
Author
Eky
Posts: 2
Joined: Thu 06 Apr 2006, 12:55

Why doesn't 'mount --bind' command work?

#1 Post by Eky »

Hi.
Can somebody explain me, why following command doesn't work.
"mount --bind /mnt/hda6 /home/user1/my-documents"

Is there any other way to succeed. My target is to have /dev/hda6 in /mnt/hda6 and /home/user1/my-documents

Thanks in advanced
Eky

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#2 Post by sunburnt »

The mount command in /bin is a link to BusyBox, this may be the problem.
Try using a REAL mount exec. file from Debian or Red Hat, etc.
I don't know if this will fix it, but it's the only thing I can think of.

Eky
Posts: 2
Joined: Thu 06 Apr 2006, 12:55

Re: Why doesn't 'mount --bind' command work? [solved]

#3 Post by Eky »

Eky wrote:
Is there any other way to succeed. My target is to have /dev/hda6 in /mnt/hda6 and /home/user1/my-documents
OK
I found a solution:
(1) mount /dev/hda6 /mnt/hda6
(2) mount -o bind /mnt6/hda6 /home/user1/my-documents

User avatar
sunburnt
Posts: 5090
Joined: Wed 08 Jun 2005, 23:11
Location: Arizona, U.S.A.

#4 Post by sunburnt »

Eky; wouldn't a link in place of: my-documents pointing to: /mnt/hda6 have done the same thing?

Post Reply