when parent directory is mounted on to new volume, i cannot see the sub directory which was existing earlier

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
4
down vote

favorite












After mounting /yesh onto a new volume, I cannot see the sub directory /yesh/data001 which was existing before mounting.



If the sub directory is existing where can I find it?










share|improve this question























  • Can you elaborate a bit more? Are you saying that the directory /yesh/data001 was present before mounting a new volume onto /yesh?
    – Mr Shunz
    6 hours ago







  • 1




    That's how it is supposed to work. Always mount on an empty directory.
    – Soren A
    6 hours ago










  • @Mr Shunz yes /yesh/data001 was present before mounting
    – yeswanth
    5 hours ago














up vote
4
down vote

favorite












After mounting /yesh onto a new volume, I cannot see the sub directory /yesh/data001 which was existing before mounting.



If the sub directory is existing where can I find it?










share|improve this question























  • Can you elaborate a bit more? Are you saying that the directory /yesh/data001 was present before mounting a new volume onto /yesh?
    – Mr Shunz
    6 hours ago







  • 1




    That's how it is supposed to work. Always mount on an empty directory.
    – Soren A
    6 hours ago










  • @Mr Shunz yes /yesh/data001 was present before mounting
    – yeswanth
    5 hours ago












up vote
4
down vote

favorite









up vote
4
down vote

favorite











After mounting /yesh onto a new volume, I cannot see the sub directory /yesh/data001 which was existing before mounting.



If the sub directory is existing where can I find it?










share|improve this question















After mounting /yesh onto a new volume, I cannot see the sub directory /yesh/data001 which was existing before mounting.



If the sub directory is existing where can I find it?







command-line permissions mount bashrc bash-history






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 5 hours ago









Ten-Coin

54.6k82211298




54.6k82211298










asked 6 hours ago









yeswanth

304




304











  • Can you elaborate a bit more? Are you saying that the directory /yesh/data001 was present before mounting a new volume onto /yesh?
    – Mr Shunz
    6 hours ago







  • 1




    That's how it is supposed to work. Always mount on an empty directory.
    – Soren A
    6 hours ago










  • @Mr Shunz yes /yesh/data001 was present before mounting
    – yeswanth
    5 hours ago
















  • Can you elaborate a bit more? Are you saying that the directory /yesh/data001 was present before mounting a new volume onto /yesh?
    – Mr Shunz
    6 hours ago







  • 1




    That's how it is supposed to work. Always mount on an empty directory.
    – Soren A
    6 hours ago










  • @Mr Shunz yes /yesh/data001 was present before mounting
    – yeswanth
    5 hours ago















Can you elaborate a bit more? Are you saying that the directory /yesh/data001 was present before mounting a new volume onto /yesh?
– Mr Shunz
6 hours ago





Can you elaborate a bit more? Are you saying that the directory /yesh/data001 was present before mounting a new volume onto /yesh?
– Mr Shunz
6 hours ago





1




1




That's how it is supposed to work. Always mount on an empty directory.
– Soren A
6 hours ago




That's how it is supposed to work. Always mount on an empty directory.
– Soren A
6 hours ago












@Mr Shunz yes /yesh/data001 was present before mounting
– yeswanth
5 hours ago




@Mr Shunz yes /yesh/data001 was present before mounting
– yeswanth
5 hours ago










1 Answer
1






active

oldest

votes

















up vote
4
down vote



accepted










You can use mount --bind for seeing old mount you have on same mount point.



Create any directory in your filesystem, ex: /mnt/data001, then



command: mount --bind /yesh/data001 /mnt/data001



This is tricky case, you cannot see old mount and you cant umount your old mount. Generally restart is kind of solution but with out restart if you want to access /yesh/data001 I believe you can achieve via above command.






share|improve this answer




















  • thanks @Ten-Coin
    – yeswanth
    24 mins ago










Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1075932%2fwhen-parent-directory-is-mounted-on-to-new-volume-i-cannot-see-the-sub-director%23new-answer', 'question_page');

);

Post as a guest






























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes








up vote
4
down vote



accepted










You can use mount --bind for seeing old mount you have on same mount point.



Create any directory in your filesystem, ex: /mnt/data001, then



command: mount --bind /yesh/data001 /mnt/data001



This is tricky case, you cannot see old mount and you cant umount your old mount. Generally restart is kind of solution but with out restart if you want to access /yesh/data001 I believe you can achieve via above command.






share|improve this answer




















  • thanks @Ten-Coin
    – yeswanth
    24 mins ago














up vote
4
down vote



accepted










You can use mount --bind for seeing old mount you have on same mount point.



Create any directory in your filesystem, ex: /mnt/data001, then



command: mount --bind /yesh/data001 /mnt/data001



This is tricky case, you cannot see old mount and you cant umount your old mount. Generally restart is kind of solution but with out restart if you want to access /yesh/data001 I believe you can achieve via above command.






share|improve this answer




















  • thanks @Ten-Coin
    – yeswanth
    24 mins ago












up vote
4
down vote



accepted







up vote
4
down vote



accepted






You can use mount --bind for seeing old mount you have on same mount point.



Create any directory in your filesystem, ex: /mnt/data001, then



command: mount --bind /yesh/data001 /mnt/data001



This is tricky case, you cannot see old mount and you cant umount your old mount. Generally restart is kind of solution but with out restart if you want to access /yesh/data001 I believe you can achieve via above command.






share|improve this answer












You can use mount --bind for seeing old mount you have on same mount point.



Create any directory in your filesystem, ex: /mnt/data001, then



command: mount --bind /yesh/data001 /mnt/data001



This is tricky case, you cannot see old mount and you cant umount your old mount. Generally restart is kind of solution but with out restart if you want to access /yesh/data001 I believe you can achieve via above command.







share|improve this answer












share|improve this answer



share|improve this answer










answered 4 hours ago









Ten-Coin

54.6k82211298




54.6k82211298











  • thanks @Ten-Coin
    – yeswanth
    24 mins ago
















  • thanks @Ten-Coin
    – yeswanth
    24 mins ago















thanks @Ten-Coin
– yeswanth
24 mins ago




thanks @Ten-Coin
– yeswanth
24 mins ago

















 

draft saved


draft discarded















































 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1075932%2fwhen-parent-directory-is-mounted-on-to-new-volume-i-cannot-see-the-sub-director%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What does second last employer means? [closed]

List of Gilmore Girls characters

One-line joke