Why does files persist on mount points even after switching usb drives?

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











up vote
0
down vote

favorite












I am using a Raspberry PI as MiniDLNA server and a usb drive to store content instead of storing it locally on sd card.
So I added the usb drive in fstab to get it automatically mount on startup and made a symlink to the same in the home directory.
Symlink
So, my old usb drive was very slow, so I removed the old one and swapped it with a relatively new formatted drive and to my surprise, all files that were present in the old drive were still visible on the new drive.



usb1 -> /mnt/usb1



Both drives uses FAT32 as file system and have 8GB of space, mounted at the same mount point /mnt/usb1 and originally available at /dev/sda1



How is that even possible if I swapped the old drive with another formatted and empty drive ?







share|improve this question



















  • Do the files go away if you umount the drive?
    – Ignacio Vazquez-Abrams
    Apr 29 at 7:38










  • @IgnacioVazquez-Abrams Yes
    – Jatin Dhankhar
    Apr 29 at 12:10










  • Then the files aren't on the drive.
    – Ignacio Vazquez-Abrams
    Apr 29 at 12:11










  • Hmm, strange. It means they are on the sd card. But shouldn't it work. I am mounting the usb drive under a mount point and soft linking it to a the mount point. Dmesg doesn't show any error about the usb drive not getting mounted.
    – Jatin Dhankhar
    Apr 29 at 12:13















up vote
0
down vote

favorite












I am using a Raspberry PI as MiniDLNA server and a usb drive to store content instead of storing it locally on sd card.
So I added the usb drive in fstab to get it automatically mount on startup and made a symlink to the same in the home directory.
Symlink
So, my old usb drive was very slow, so I removed the old one and swapped it with a relatively new formatted drive and to my surprise, all files that were present in the old drive were still visible on the new drive.



usb1 -> /mnt/usb1



Both drives uses FAT32 as file system and have 8GB of space, mounted at the same mount point /mnt/usb1 and originally available at /dev/sda1



How is that even possible if I swapped the old drive with another formatted and empty drive ?







share|improve this question



















  • Do the files go away if you umount the drive?
    – Ignacio Vazquez-Abrams
    Apr 29 at 7:38










  • @IgnacioVazquez-Abrams Yes
    – Jatin Dhankhar
    Apr 29 at 12:10










  • Then the files aren't on the drive.
    – Ignacio Vazquez-Abrams
    Apr 29 at 12:11










  • Hmm, strange. It means they are on the sd card. But shouldn't it work. I am mounting the usb drive under a mount point and soft linking it to a the mount point. Dmesg doesn't show any error about the usb drive not getting mounted.
    – Jatin Dhankhar
    Apr 29 at 12:13













up vote
0
down vote

favorite









up vote
0
down vote

favorite











I am using a Raspberry PI as MiniDLNA server and a usb drive to store content instead of storing it locally on sd card.
So I added the usb drive in fstab to get it automatically mount on startup and made a symlink to the same in the home directory.
Symlink
So, my old usb drive was very slow, so I removed the old one and swapped it with a relatively new formatted drive and to my surprise, all files that were present in the old drive were still visible on the new drive.



usb1 -> /mnt/usb1



Both drives uses FAT32 as file system and have 8GB of space, mounted at the same mount point /mnt/usb1 and originally available at /dev/sda1



How is that even possible if I swapped the old drive with another formatted and empty drive ?







share|improve this question











I am using a Raspberry PI as MiniDLNA server and a usb drive to store content instead of storing it locally on sd card.
So I added the usb drive in fstab to get it automatically mount on startup and made a symlink to the same in the home directory.
Symlink
So, my old usb drive was very slow, so I removed the old one and swapped it with a relatively new formatted drive and to my surprise, all files that were present in the old drive were still visible on the new drive.



usb1 -> /mnt/usb1



Both drives uses FAT32 as file system and have 8GB of space, mounted at the same mount point /mnt/usb1 and originally available at /dev/sda1



How is that even possible if I swapped the old drive with another formatted and empty drive ?









share|improve this question










share|improve this question




share|improve this question









asked Apr 29 at 7:17









Jatin Dhankhar

1




1











  • Do the files go away if you umount the drive?
    – Ignacio Vazquez-Abrams
    Apr 29 at 7:38










  • @IgnacioVazquez-Abrams Yes
    – Jatin Dhankhar
    Apr 29 at 12:10










  • Then the files aren't on the drive.
    – Ignacio Vazquez-Abrams
    Apr 29 at 12:11










  • Hmm, strange. It means they are on the sd card. But shouldn't it work. I am mounting the usb drive under a mount point and soft linking it to a the mount point. Dmesg doesn't show any error about the usb drive not getting mounted.
    – Jatin Dhankhar
    Apr 29 at 12:13

















  • Do the files go away if you umount the drive?
    – Ignacio Vazquez-Abrams
    Apr 29 at 7:38










  • @IgnacioVazquez-Abrams Yes
    – Jatin Dhankhar
    Apr 29 at 12:10










  • Then the files aren't on the drive.
    – Ignacio Vazquez-Abrams
    Apr 29 at 12:11










  • Hmm, strange. It means they are on the sd card. But shouldn't it work. I am mounting the usb drive under a mount point and soft linking it to a the mount point. Dmesg doesn't show any error about the usb drive not getting mounted.
    – Jatin Dhankhar
    Apr 29 at 12:13
















Do the files go away if you umount the drive?
– Ignacio Vazquez-Abrams
Apr 29 at 7:38




Do the files go away if you umount the drive?
– Ignacio Vazquez-Abrams
Apr 29 at 7:38












@IgnacioVazquez-Abrams Yes
– Jatin Dhankhar
Apr 29 at 12:10




@IgnacioVazquez-Abrams Yes
– Jatin Dhankhar
Apr 29 at 12:10












Then the files aren't on the drive.
– Ignacio Vazquez-Abrams
Apr 29 at 12:11




Then the files aren't on the drive.
– Ignacio Vazquez-Abrams
Apr 29 at 12:11












Hmm, strange. It means they are on the sd card. But shouldn't it work. I am mounting the usb drive under a mount point and soft linking it to a the mount point. Dmesg doesn't show any error about the usb drive not getting mounted.
– Jatin Dhankhar
Apr 29 at 12:13





Hmm, strange. It means they are on the sd card. But shouldn't it work. I am mounting the usb drive under a mount point and soft linking it to a the mount point. Dmesg doesn't show any error about the usb drive not getting mounted.
– Jatin Dhankhar
Apr 29 at 12:13
















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
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: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
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%2funix.stackexchange.com%2fquestions%2f440687%2fwhy-does-files-persist-on-mount-points-even-after-switching-usb-drives%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f440687%2fwhy-does-files-persist-on-mount-points-even-after-switching-usb-drives%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

How to check contact read email or not when send email to Individual?

Displaying single band from multi-band raster using QGIS

How many registers does an x86_64 CPU actually have?