×
Login Register an account
Top Submissions Explore Upgoat Search Random Subverse Random Post Colorize! Site Rules
4

Can anyone help? When I format my USB drive as ext4, it automatically gets write-protected.

submitted by MonkeysSmarterThanNiggers to technology 2.6 yearsSep 23, 2021 16:45:57 ago (+4/-0)     (technology)

Edit: my problem is now solved
It doesn't get write-protected when I format it as ntfs or fat32, but I specifically need it to be ext4 (and write-enabled). Also I'm on Debian, and my other computer has Mint.


13 comments block


[ - ] MrPancake 2 points 2.6 yearsSep 23, 2021 17:05:31 ago (+2/-0)

I think you have to take ownership of it.

https://askubuntu.com/questions/12009/solving-permission-problems-when-using-external-ext4-hard-disk-with-multiple-lin

Commands should be similar you will just enter "su" then run them without sudo. Unless you enabled sudo on Debian and then I like you more.

[ - ] mikenigger 1 point 2.6 yearsSep 23, 2021 17:23:18 ago (+1/-0)

this, try creating a file as root before you assume it's mounted readonly

[ - ] MonkeysSmarterThanNiggers [op] 0 points 2.6 yearsSep 23, 2021 17:31:07 ago (+0/-0)

Thanks for helping, but it didn't work

[ - ] mikenigger 1 point 2.6 yearsSep 23, 2021 18:05:59 ago (+1/-0)*

sudo chown -R user:user /root-directory/of/filesystem

"user" should be your username and the path should be where the drive is mounted, don't run that anywhere else.
That will let you use it as a regular user.

[ - ] MrPancake 0 points 2.6 yearsSep 23, 2021 17:36:09 ago (+0/-0)

Try @mikenigger 's suggestion. See if you can write to it from a root terminal. In other distro's you can sudo "nautilus" or "thunar" and get root access to drives in the file manager; but if you have not installed "sudo" on Debian I don't think it will let you, but you could always try. Also; did you try unmounting the drive and remounting after taking ownership? (or rebooting)

[ - ] MonkeysSmarterThanNiggers [op] 0 points 2.6 yearsSep 23, 2021 17:40:07 ago (+0/-0)

it worked! thanks (also i do have sudo installed, but i used the method of writing "admin://" at the beginning of the path in nautilus)

[ - ] MrPancake 0 points 2.6 yearsSep 23, 2021 17:46:08 ago (+0/-0)

Cool, I sort of remember this happening to me at one point. I think how I got around it was to create a directory on the disk/volume and gave permission of that folder to my account. I was a lot newer with Linux back then so if I got it to work I stopped thinking about it.

[ - ] CPU 0 points 2.6 yearsSep 23, 2021 18:39:22 ago (+0/-0)

What was the problem, and how did you fix it OP?

Sounds like it has something to do with 'permissions' or maybe the wrong user?

[ - ] MonkeysSmarterThanNiggers [op] 1 point 2.6 yearsSep 24, 2021 12:23:50 ago (+1/-0)

the problem: the usb drive was write protected

how did i fix it: i ran the file manager as root

[ - ] Cantaloupe 0 points 2.6 yearsSep 23, 2021 17:38:18 ago (+0/-0)*

Basically
sudo hdparm -r0 /dev/sbd

It can also be broken soldered joints.

[ - ] account deleted by user 0 points 2.6 yearsSep 23, 2021 17:14:08 ago (+0/-0)

account deleted by user

[ - ] Tallest_Skil 0 points 2.6 yearsSep 23, 2021 17:12:39 ago (+0/-0)

Is it too small? I lost access to an 8 megabyte SD card by reformatting it from its ancient size format to fat32. I’ll need to use a *NIX installation to get it back again now.

[ - ] MonkeysSmarterThanNiggers [op] 0 points 2.6 yearsSep 23, 2021 17:16:20 ago (+0/-0)

32 GB, but I probably won't need more than 8GB