Linux MintThis forum is for the discussion of Linux Mint.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Typically a flash drive is automatically mounted as your user for NTFS or FAT32 so need more information. Have you checked the output of dmesg command for errors?
Have you tried deleting the files from the command line?
It is possible the drive has started to fail. Copy any important files off the drive before it becomes unreadable.
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821
Original Poster
Rep:
Quote:
Originally Posted by michaelk
What filesystem is sdb1?
Typically a flash drive is automatically mounted as your user for NTFS or FAT32 so need more information. Have you checked the output of dmesg command for errors?
Have you tried deleting the files from the command line?
It is possible the drive has started to fail. Copy any important files off the drive before it becomes unreadable.
It is a new sd card 1 terrabyte so don't know why it went into read only.
Are you using the same SD card reader when the device used to work? It is possible if using another reader that it can not access cards of that capacity.
Does the SD card have a mechanical read/write switch?
Just type dmesg in a terminal window. The sd card errors are probably at the bottom but you can also try
dmesg | grep sdb1
In a terminal window use the cd command to go to the sd card mount point, use the rm command to delete the desired file.
you type `dmesg` on the command line and hit return. Maybe `sudo dmesg` if it's debian/ubuntu/mint.
1) Is it a real 1tb card? There are fakes
2) what happens if you try to delete files from the command line
3) it could be that you need to install the exfat-fuse and exfat-utils packages (search your package manager in mint). On my slackware these weren't installed by default and it didn't like a 128gb card because it was formatted in EXfat, which it didn't understand. EXfat is used for very large files systems (large by FAT32 standards at least).
4) what's the output of `sudo lsblk` when it's plugged in.
5) if it's a new sd card what are the files that are on it???
EDIT - yes and as the post above says non micro SD cards have a write protect tab on them, which is a physical switch.
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821
Original Poster
Rep:
Quote:
Originally Posted by michaelk
Are you using the same SD card reader when the device used to work? It is possible if using another reader that it can not access cards of that capacity.
Does the SD card have a mechanical read/write switch?
Just type dmesg in a terminal window. The sd card errors are probably at the bottom but you can also try
dmesg | grep sdb1
In a terminal window use the cd command to go to the sd card mount point, use the rm command to delete the desired file.
cd /media/path_to_sd_card
sudo rm my_file
The sd card is mounted in a usb Mobile phone backup device so has no switch.
Depends on the phone and how it connects i.e communication protocol to the operating system. There are basically two ways i.e. as a mass storage device and as MTP. Android uses MTP unless you own a really old phone and not sure about IPhones. MTP is a virtual filesystem so if there is a "real mount point" I am not sure where it is located.
A mass storage device would look like a regular flash drive so I would guess it is MTP which can be problematic.
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821
Original Poster
Rep:
Tried this but did not change file systems
/media/barry/MULTIBOOT$ sudo chmod 777 "Files in Here"
[sudo] password for barry:
chmod: changing permissions of 'Files in Here': Read-only file system
barry@barry-Lenovo-ideapad-310-15ISK:/media/barry/MULTIBOOT$ ls -l
total 256
drwxr-xr-x 2 barry barry 32768 Nov 14 17:26 activate
drwxr-xr-x 2 barry barry 32768 Nov 14 14:31 boot
drwxr-xr-x 3 barry barry 32768 Nov 14 14:31 efi
drwxr-xr-x 6 barry barry 32768 Nov 14 23:16 'FILES HERE'
drwxr-xr-x 8 barry barry 32768 Nov 14 16:53 'Files in Here'
drwxr-xr-x 13 barry barry 32768 Nov 14 14:12 multiboot
drwxr-xr-x 2 barry barry 32768 Nov 14 17:10 'System Volume Information'
drwxr-xr-x 3 barry barry 32768 Nov 14 16:48 'Word 19'
you need to understand the message: Read-only file system. There is no problem with the files, the filesystem is locked no changes allowed at all. It is completely irrelevand if you are using regular user or root, if you [try to] change permissions, because you are not allowed to modify the filesystem at all (that means chmod will fail too).
You need to remount the filesystem in read/write mode, that may help you. But there is a reason to make it readonly, especially when there is a problem with that filesystem and most probably you need to fix that issue before trying to modify it.
Usually you can find some logs in /var/log about it.
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821
Original Poster
Rep:
Quote:
Originally Posted by pan64
you need to understand the message: Read-only file system. There is no problem with the files, the filesystem is locked no changes allowed at all. It is completely irrelevand if you are using regular user or root, if you [try to] change permissions, because you are not allowed to modify the filesystem at all (that means chmod will fail too).
You need to remount the filesystem in read/write mode, that may help you. But there is a reason to make it readonly, especially when there is a problem with that filesystem and most probably you need to fix that issue before trying to modify it.
Usually you can find some logs in /var/log about it.
Don't think I can fix this I tried to move it and this happened:
barry@barry-Lenovo-ideapad-310-15ISK:/media/barry/MULTIBOOT$ mv "Files in Here" /home/barry
mv: cannot stat 'Files in Here/Videos': Input/output error
mv: cannot stat 'Files in Here/.x': Input/output error
This fetches back the original problem with the input/output error in this folder. That is the reason I hid this folder and made another thinking I could delete the bad folder later.
I guess it is because of the 1 terrabyte card I am using. It did not allow me to make partitions either so I left it as a single partition.
Have ordered more Terrabyte cards so I hope I will be able to partition properly and have better look when they come.
guess you don't care for the lsblk command........
I dunno I'm bowing out of this one. I don't understand what the system is - PC with a 1tb SD card with no write tab, connected via a phone or something? I don't even know what we are talking about here. Also skeptical about it really being a 1tb card (did it come from wish.com..........?).
You need to run the mount command as well as lsblk and post it on here. There isn't much point asking for help then ignoring it. Also the output of this command `sudo grep "\sro[\s,]" /proc/mounts`
Thing is root can delete files regardless of the file permissions so as I said in the other thread the issue likely to be something else. It wouldn't get mounted read only for no reason.
N.b - rm doesn't work on directories. If you just want to remove a directory you use the rmdir command (if it's empty). Otherwise you use the command rm -rf <thedirectory> (this also deletes all the sub folders etc).
non micro SD cards all have a write protect tab that i've ever seen.
Also per my previous comment it may be that you need to install the exfat-fuse and exfat-utils packages to work with very large SD cards. I did on my system. Although I don't understand how the card is connected to the machine at this point.
Distribution: Mint 20, Kali, Peppermint, Ubuntu, MakuluFlash, Fedora 32, Windows 12 Lite, MakuluLinux
Posts: 821
Original Poster
Rep:
Quote:
Originally Posted by satinet
guess you don't care for the lsblk command........
I dunno I'm bowing out of this one. I don't understand what the system is - PC with a 1tb SD card with no write tab, connected via a phone or something? I don't even know what we are talking about here. Also skeptical about it really being a 1tb card (did it come from wish.com..........?).
You need to run the mount command as well as lsblk and post it on here. There isn't much point asking for help then ignoring it. Also the output of this command `sudo grep "\sro[\s,]" /proc/mounts`
Thing is root can delete files regardless of the file permissions so as I said in the other thread the issue likely to be something else. It wouldn't get mounted read only for no reason.
N.b - rm doesn't work on directories. If you just want to remove a directory you use the rmdir command (if it's empty). Otherwise you use the command rm -rf <thedirectory> (this also deletes all the sub folders etc).
non micro SD cards all have a write protect tab that i've ever seen.
Also per my previous comment it may be that you need to install the exfat-fuse and exfat-utils packages to work with very large SD cards. I did on my system. Although I don't understand how the card is connected to the machine at this point.
The card is in a usb card reader that can also read mobile phones. Not the large card with the switch. unless the card has another switch I do not know about?
Thanks for that command rm -rf not in my Linux book
Got this:
barry@barry-Lenovo-ideapad-310-15ISK:/media/barry/MULTIBOOT$ rm -rf "Files in Here"
rm: cannot remove 'Files in Here/Pictures/May.JPG': Read-only file system
rm: cannot remove 'Files in Here/Pictures/Rose.JPG': Read-only file system
rm: cannot remove 'Files in Here/Pictures/Sekina.PNG': Read-only file system
rm: cannot remove 'Files in Here/Pictures/Liberty.JPG': Read-only file system
rm: cannot remove 'Files in Here/Documents': Read-only file system
rm: cannot remove 'Files in Here/Everything Else/IMG_0100.PNG': Read-only file system
rm: cannot remove 'Files in Here/Downloads': Read-only file system
The SDXC specification supports cards up to 2TB and SanDisk first revealed a 1 TB SDXC card back in 2016 so it appears to be technically possible. However, it isn't listed on their website for purchase and any 1TB card listed on Amazon appears to be a fake. I would imagine the cost to be US $800+ each. Where did you find these 1TB cards?
While you can access the phones memory card connected to a computer lower level functions like partitioning and the hdparm command will probably not work. I assume you originally formatted the card on the phone itself?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.