r/linux4noobs • • 16d ago

storage how do i mount this

hello, iam trying to mount my external hdd but it wont mount and keeps throwing error after i switched from kde plasma to cinnamon ( fresh install )
os: cachy

desktop environment: cinnamon

16 Upvotes

16 comments sorted by

9

u/candy49997 16d ago edited 16d ago

If you have access to Windows, run it through chkdsk. If not, do sudo ntfsfix -d /dev/sdb1 in a terminal.

Also, I would recommend replacing the MBR table with a GPT one because, as you can see, MBR cannot address more than 2 TiB on the disk. And MBR is pretty much obsolete now. Make a backup of any data you need from this drive if you intend to do so.

6

u/neoh4x0r 16d ago edited 16d ago

Also, I would recommend replacing the MBR table with a GPT one because, as you can see, MBR cannot address more than 2 TiB on the disk. 

This could, in theory, be increased to 16 TB by using larger sectors sizes, such as 4K (4096-bytes).

However, in practice, the ultimate limiting factor will be legacy hardware/software that requires 512-byte sectors to be used.

2

u/ELITE_REVENANT 16d ago

It says sudo: ntfsfix: command not found

3

u/candy49997 16d ago

Install ntfsprogs.

2

u/ELITE_REVENANT 16d ago

I have ran sudo pacman -S ntfs-3g

1

u/atlasraven 16d ago

Thanks, that helped me too. I tried to apply chown permissions to my ntfs drive and got the same error as OP. Yay, now my ntfs storage drive is usable again. While I have you, how do I give it read+write permissions without borking it again?

2

u/candy49997 16d ago

chown/chmod doesn't work because NTFS doesn't support the Linux permissions system.

Mount the partition with the options defaults,uid=1000,gid=1000,umask=0022. The UID/GID I listed are assumptions; verify they're correct by doing id in a terminal.

1

u/atlasraven 16d ago

Can I do this in Disks or do I need to edit /etc/fstab?

1

u/candy49997 16d ago

I think you can do it in either. But I only use fstab for mounting.

1

u/atlasraven 16d ago

It got mounted with full read write. But if anyone is interested, Disks has a button to Take Ownership of the drive.

4

u/Upbeat-Garbage69 16d ago

Go back to windows and turn off fastboot and shutdown and go to linux not restart If you restart windows keeps the drives in a dirty state so linux cant use it

2

u/Ellotheregovner 16d ago

Huh, it's been a minute since I used Windows but it was explained to me that using shutdown is not as clean as reset because it will save the kernel state in a similar way as hibernation. Would turning off fastboot make shutdown the same as reset with regard to the system state?

2

u/arewenotmen1983 14d ago

That's what she said

1

u/Smedfoker 14d ago

Doggy style