HDD not visible when connected

Dear users of the forum,

i think i accidently deleted the partition of my new external HDD (so no data on it) in the KDE Partitionmanager and now it’s not visible anymore, so that i can’t access it. What can i do to get it back? When i do lsblk i can see it normally as sda1.

Thank you in advance!

Of course it will not be displayed anymore as a partition because you just deleted it.

If it was only one partition and you know exactly how large it was, you might get away with just creating the same size partition again.

Better make an image of the drive, so you have something to go back to
and then use testdisk or some other forensics tool.
Testdisk might be able to detect the previously existing partition and restore it.

1 Like

I tried it with testdisk but didn’t work, will try again now.
Here’s what i do:
So after i press “Create”, i see the drive with the exact amount of space (by the way it is a new hdd, so the data on it is not a problem).

I’m not familiar with testdisk - have used it years ago, but only to try, to see whether and how it would work.
It was in a non emergency situation - I deliberately screwed things up and then tried to rectify the situation.
It worked when only the partition was deleted, but nothing else was destroyed.

How to operate testdisk?
I have no recollection and can only refer you to the manual.

Have an image of the drive before you try stuff on it - if you value the data on it.

1 Like

Sorry, i added the information now, that the data on it isn’t a problem, because there is none.

… then just create a new partition and be done with it …

1 Like

Problem is, because it is not shown, it isn’t shown in the partition manager either?
I guess it works with the terminal?

The whole drive is not shown as being even present?

lsblk -f

should list it as /dev/sda - since the partition was on that device as /dev/sda1 as you said

It is shown there (lsblk -f), but not in the GUI of the kde partition manager. There is just my system drive with the partitions shown.

there is a refresh button or something similarly named
or simply restart the program
(I only know gparted from my own experience)

Try sudo fdisk -l /dev/sda to see more info about partitions.

Try gnome-disks, easier to use than KDE partition manager.

It is not show in the file manager, but it will be shown in a partiotion manager like gparted or kparted. Just create it a new. And if you are not using windows make it ext4 or btrfs.

1 Like

Yes, but it doesn’t work. If you mean “update devices” button in the top right corner?

1 Like

What doesn’t work?
Be as specific as you can be.

1 Like

Oh you’re right in Gparted it is shown. But i somehow cant format it as ext4. It gives me an error. I’m not sure how to insert it here.

I have saved the gparted_details file. It says me if i want to know more about the error, to look there?

This is what the warning sign of gparted tells me if i right click on information:

The file system was not recognized! Possible reasons are:

  • The file system is damaged

  • The file system is not known to GParted

  • There is no file system (not formatted)

  • The device entry /dev/sda1 is missing

Create a new partition table (prefer GPT over msdos)
Create a new partition.
Create a file system on that partition.

We have nothing concrete yet in terms of what you actually see of what is in the logs.

It should be very simple on the command line.

I mostly use cfdisk.
Have never used gdisk.

example:
sudo cfdisk /dev/sda

it’s in terminal, but menu driven, easy to use

1 Like

Hi, i found the problem, it’s a hardware problem. It’s probably my USB Hub with which i use the HDD. I read that Linux is more strict with that when it doesn’t have enough power. Sorry for taking your time. Gparted/Manjaro Kernel is not to blame.
I could describe it in more detail if wanted (which commands i used to identify the problem)

Linux — the kernel — has nothing to do with that. It’s your computer’s firmware which deals with this. :wink: