Files on external HDD not showing....

Quick to answer questions about finding your way around Linux Mint as a new user.
Forum rules
There are no such things as "stupid" questions. However if you think your question is a bit stupid, then this is the right place for you to post it. Stick to easy to-the-point questions that you feel people can answer fast. For long and complicated questions use the other forums in the support section.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
newbie-ish

Files on external HDD not showing....

Post by newbie-ish »

Hi all. Having a problem - I just did a clean install over my old Mint 17 partition with 18.1 because of some internet-related troubles I was having.

Before I formatted the partition to start over I copied my entire user/root folder to HDD so I'd have all my files and could just paste them into the fresh install.

The problem is that when I click into the external HDD, the folder is there, and the properties say it's the size it's supposed to be, but when you click into it there's nothing there, hidden or otherwise, and the properties tab of the folder also says "no contents". I booted up the Windows partition to check it on another OS, and all the files were there...so they're just not showing up in Mint. Can anyone help me to work out how to make them appear so I can get all my stuff back on to my new installation?

Cheers!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
WharfRat

Re: Files on external HDD not showing....

Post by WharfRat »

With the external HDD attached paste back the results of mount|grep ^/dev
newbie-ish

Re: Files on external HDD not showing....

Post by newbie-ish »

Hey WharlRat, thanks for your reply :)

The output I get from that (with the "TOSHIBA" one being the extrernal hard drive in question) is:

/dev/sda6 on / type ext4 (rw,relatime,errors=remount-ro,data=ordered)
/dev/sdb1 on /media/user/TOSHIBA EXT type fuseblk (rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)
WharfRat

Re: Files on external HDD not showing....

Post by WharfRat »

Do you see any files with ls -lh "/media/user/TOSHIBA EXT" :?:
newbie-ish

Re: Files on external HDD not showing....

Post by newbie-ish »

Just the one folder still unfortunately :-/
avihai

Re: Files on external HDD not showing....

Post by avihai »

just thinking out loud.

if i recall correctly "nodev" flag means you can't mount the device, isn't it ?
WharfRat

Re: Files on external HDD not showing....

Post by WharfRat »

avihai wrote:j
if i recall correctly "nodev" flag means you can't mount the device, isn't it ?
That's not quite right, nodev means character or block special devices will not be interpreted.

Does df -h show any used space for that partition :?:
newbie-ish

Re: Files on external HDD not showing....

Post by newbie-ish »

Yeah it shows it as ~half full which is about right
WharfRat

Re: Files on external HDD not showing....

Post by WharfRat »

newbie-ish wrote:Yeah it shows it as ~half full which is about right
Try unmounting the partition and mounting it with your credentials sudo umount /dev/sdb1

Then create a mountpoint sudo mkdir/media/external

Then mount it with sudo mount -t ntfs-3g -o uid=1000,gid=1000,dmask=002,fmask=111 /dev/sdb1 /media/external

Then check it with ls -lh /media/external
newbie-ish

Re: Files on external HDD not showing....

Post by newbie-ish »

Thanks for your detailed suggestions WharlRat, much appreciated. Unfortunately after doing that it still only shows the one folder, same as before :|
WharfRat

Re: Files on external HDD not showing....

Post by WharfRat »

newbie-ish wrote:Thanks for your detailed suggestions WharlRat, much appreciated. Unfortunately after doing that it still only shows the one folder, same as before :|
Again with the drive connected using /media/external paste back the results of df -h|egrep 'File|sdb1'
newbie-ish

Re: Files on external HDD not showing....

Post by newbie-ish »

That returns:

Code: Select all

Filesystem           Size  Used Avail Use% Mounted on
/dev/sdb1            466G  235G  232G  51% /media/external
WharfRat

Re: Files on external HDD not showing....

Post by WharfRat »

OK, can you now paste back ls -lh /media/external
newbie-ish

Re: Files on external HDD not showing....

Post by newbie-ish »

Yep, that gets:

Code: Select all

total 24K
drwxrwxr-x 1 user user   0 Jun 28 14:40 System Volume Information
drwxrwxr-x 1 user user 24K Jun 27 19:45 user
WharfRat

Re: Files on external HDD not showing....

Post by WharfRat »

And what's in ls -lh /media/external/user :?:
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Files on external HDD not showing....

Post by Spearmint2 »

Have you tried accessing the HDD as root? Notice the user mode of file manager shows nothing in the root folder, but when I use the file manager in superuser mode, then I can see items in that root folder. If you are going to run commands to access a root owned folder, need to be root, use sudo or gksu where appropriate, or set terminal to sudo su, and then be very careful. Click on image to view full size.
root_superuser_mode.jpg
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
newbie-ish

Re: Files on external HDD not showing....

Post by newbie-ish »

Code: Select all

ls: reading directory '/media/external/user': Input/output error
total 0
...looks like still nothing?
newbie-ish

Re: Files on external HDD not showing....

Post by newbie-ish »

Spearmint2 wrote:Have you tried accessing the HDD as root? Notice the user mode of file manager shows nothing in the root folder, but when I use the file manager in superuser mode, then I can see items in that root folder.
Thanks Spearmint, unfortunately that was one of the first things I tried, didn't change anything.
WharfRat

Re: Files on external HDD not showing....

Post by WharfRat »

Are you sure it was plugged in when you backed-up the files :?:

The other possibility with that Input/output error is that the drive is flying south or the file system is corrupted.
User avatar
Spearmint2
Level 16
Level 16
Posts: 6900
Joined: Sat May 04, 2013 1:41 pm
Location: Maryland, USA

Re: Files on external HDD not showing....

Post by Spearmint2 »

how did you move the folder and files over? Why did you move the /root folder? Were you running your system as root? Was that your user name? You installed 18 already on the same partition you previously had 17 on? If you can't find your files eventually on the HDD, maybe you can find some or all of them using the TestDisk program that's in GParted under the Devices header using it's recovery option.

Upgrade Wharf's suggested command to superuser mode.

Code: Select all

sudo ls -lh /media/external
All things go better with Mint. Mint julep, mint jelly, mint gum, candy mints, pillow mints, peppermint, chocolate mints, spearmint,....
Locked

Return to “Beginner Questions”