Score:0

How to fix "Folder is Empty" in one partition of external hard drive in Ubuntu 21.04?

ve flag

I have a 3TB hard drive, which has two partitions. The first partition has 1TB storage and the 2nd has 2TB storage.

My second partition(2TB) has 1.1TB data, but when I mount it on ubuntu it displays Folder is Empty.

I can see the content of the first partition(1TB) and works well.

I also opened the hard drive in Parrot OS and it opened regularly and had no issue.

I think that this issue is due to unexpectedly unplugging the hard drive from the computer.

update i checked filesystem using this command sudo lsblk -f:

sdb                                                                                
├─sdb1
│     ntfs                            
└─sdb2  // this is the partition that has issue
      ntfs 

when I run sudo fsck /dev/sbd2:

fsck from util-linux 2.36.1
PonJar avatar
in flag
If you think there might be a problem with the partition try using fsck. https://linuxhandbook.com/fsck-command/ Just remember the partition you want to check has to be unmounted
Mahdi Jafari avatar
ve flag
Thanks, @PonJar I read the article and did as per instructions. when I run `sudo fsck -p /dev/sdb2` the result is : `fsck from util-linux 2.36.1` and nothing else.
PonJar avatar
in flag
What were you expecting the -p option to do? There is a -P option that you shouldn’t really use. What was your exit code? I don’t think you allowed it to finish. What filesystem are you using on this partition?
Mahdi Jafari avatar
ve flag
as the article: `generally, you can use -p to allow fsck to automatically apply repairs.` I have updated the question and answered these questions.
Raffa avatar
jp flag
Try to manually mounting the partition to a new mount point and see if that works .... i.e. `mkdir ~/new` then `sudo mount /dev/sdb2 ~/new`
Mahdi Jafari avatar
ve flag
Thanks @Raffa, I did as your said, but still the same issue.
PonJar avatar
in flag
Ok apologies, there seems to be some misleading information in that article. There is no -p option according to the Linux manual page. There is a -P option (capital P) which doesn’t do what the article says. However fsck will be of no use to you because your problem is with an NTFS formatted partition. fsck is for Linux filesystems. I’m guessing sdb2 has been locked by Windows. Are you dual booting.
Mahdi Jafari avatar
ve flag
No, I just use Ubuntu and I have partitioned the hard disk in windows.
PonJar avatar
in flag
You need to use Windows tools to fix any issues with NTFS partitions. That is one of the reasons it’s a bad idea to use NTFS on a system with no Windows installation. You haven’t said if this is a dual boot system. If it is then use CHKDSK to check the partition. If not you need to connect it to a Windows system to do that. Either way I would focus on creating a back of all the data and then repartition. If this is standalone Linux then use a Linux filesystem like ext4. If it’s dual boot then use ExFAT. If either of these two partitions contain a Windows system I wouldn’t mount it in Linux
Mahdi Jafari avatar
ve flag
It is not dual boot. I only use ubuntu. Thank you very much.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.