Why won't my system now show the directories and files in /media/sda7?
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Why won't my system now show the directories and files in /media/sda7?
Summary:
Could you tell me please if there is a way to restore the directories and files
beneath /media/sda7 that are no longer being shown by my file manager or ls?
Please could you help me out of this fix. I have a spare partition on /dev/sda7
(428 Gb), and have been storing files and directories on it (mainly video
files). "mount" shows the setup as
/dev/sda7 on /media/sda7 type reiserfs (rw,nosuid,nodev,relatime)
I access /media/sda7 using my file manager (pcmanfm). Until earlier today,
pcmanfm has happily let me create new directories and files beneath
/media/sda7, such as /media/sda7/vids/horizon.mp4. But now, when I specify for
example the directory /media/sda7/vids in pcmanfm, I get the message "The
specified directory is not valid". Now, none of the directories or files beneath
/media/sda7 are displayed (the file list window is blank). Also "ls" in a terminal shows no
directories or files beneath /media/sda7.
I have an idea that the reason might be because shortly before this started
happening, I had launched the "GParted" disc partitioning utility. I did this
to try and see how much disc space I'd used up on /media/sda7. I used GParted
because du and df were showing zero and very little used disc space respectively, but I reckon
the usage should be about 10 Gb.
I didn't carry out any actions in GParted - I just looked at what it was
displaying, then exited.
The thing is, I've got about 200 video files (mostly mp4) on /media/sda7, and I
dearly don't want to lose them.
Could you tell me please if there is a way to restore the directories and files?
I'm leaving the laptop powered on in case I'll lose everything if I shut down.
Most likely the file system is not mounted. Depending on your setup, you might still see the mount point, /media/sda7, and it would look like an empty directory. The df command is one way to see what is mounted. For example, this is what I get:
If the output of df doesn't show /dev/sda7 (or /media/sda7), try what soldersplash wrote in the previous post. From what you wrote, you always see your files in /media/sda7, which means /etc/fstab has an entry for it, and with that, soldersplash's umount and mount commands should work fine.
Distribution: Cinnamon Mint 20.1 (Laptop) and 20.2 (Desktop)
Posts: 1,672
Rep:
It used to be the convention that additional external disks were mounted on /mnt but these days /media appears to be the preferred place to mount external USB drives. CD/DVD ROMS, SD and other memory cards, etc.
You haven't booted with some external media installed/attached which has caused something else to be defined as /media/sda7?
Then again, it looks like you made a mount point /media/sda7 or am I reading that wrong?
My
Like the guys say, what do you get from
Code:
$ df
Play Bonny!
I've just re-read this and I'm probably talking mince.
Last edited by Soadyheid; 06-05-2014 at 09:10 AM.
Reason: possible brain f*rt
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.