You are not logged in.

#1 2021-09-18 16:19:43

ohgodmanyo
Member
Registered: 2021-07-02
Posts: 18

Hard drive not mounting after dd command

I tried to wipe an hdd and then mount the freshly wiped hdd to my machine, but it gives me the error


[ohgodmanyo@archlinuxpc ~]$ sudo mount /dev/sdb3 ~/daharddrive
[sudo] password for ohgodmanyo:
mount: /home/ohgodmanyo/daharddrive: wrong fs type, bad option, bad superblock on /dev/sdb3, missing codepage or helper program, or other error.

Also, I do think that this might have stemmed from running the dd command incorrectly.
I ran

sudo dd if=/dev/zero of=/dev/sdb3 count=1

Instead of:

dd if=/dev/zero of=/dev/sdb3 bs=512 count=1

Yep, I forgot the bs parameter. I'm not sure if this has anything to do with it but that's my guess. Is there any way to restore this or is it broken forever?

Last edited by ohgodmanyo (2021-09-18 16:20:21)

Offline

#2 2021-09-18 16:22:23

Ammako
Member
Registered: 2021-07-16
Posts: 267

Re: Hard drive not mounting after dd command

You wiped the filesystem on the partition... of course you're not going to be able to mount it!

Write a new filesystem to the partition ("mkfs.ext4 /dev/sdb3" for example), and then mount it.

Last edited by Ammako (2021-09-18 16:24:02)

Offline

#3 2021-09-18 16:34:36

ohgodmanyo
Member
Registered: 2021-07-02
Posts: 18

Re: Hard drive not mounting after dd command

Ammako wrote:

You wiped the filesystem on the partition... of course you're not going to be able to mount it!

Write a new filesystem to the partition ("mkfs.ext4 /dev/sdb3" for example), and then mount it.

Thx man it worked!

Offline

Board footer

Powered by FluxBB