LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   From Windows to Ubuntu and I can't write to second driver. (https://www.linuxquestions.org/questions/linux-newbie-8/from-windows-to-ubuntu-and-i-cant-write-to-second-driver-4175634668/)

Cofyka 07-22-2018 01:34 PM

From Windows to Ubuntu and I can't write to second driver.
 
I've been using Windows for almost my whole life and now I switched to Ubuntu because of its flexibility. I have 2 drives, one is for OS and the second where all my work is and important files. But here is the problem, in Ubuntu the second drives doesn't work properly I think. I can't create any new folders and if I try to change permissions from 'create and delete files' to 'access files' the message pops up saying "Sorry, could not change the permissions of 'New Volume":Error setting permissions: Read-only file system".
I came up to this problem when I tried to load an old android project with the android studio, the IDE said it doesn't have permission to access the file :(. Maybe all this is because of my poor knowledge of permissions, idk. Any help would be great :)! Thanks.

jsbjsb001 07-22-2018 01:55 PM

You'll need to mount it read-write, or you will not be able to change permissions or write to it.

AwesomeMachine 07-22-2018 02:42 PM

Your data drive might be NTFS format, which Linux mounts read-only by default. You can remount it like so:
Code:

mount -o remount rw /dev/sdb1
where sdb1 is the device file for the drive. It might be different. You can type 'mount' to see all the mount points and figure out which is the correct drive.

ArazelEternal 07-22-2018 06:09 PM

Quote:

Originally Posted by AwesomeMachine (Post 5882367)
Your data drive might be NTFS format, which Linux mounts read-only by default. You can remount it like so:
Code:

mount -o remount rw /dev/sdb1
where sdb1 is the device file for the drive. It might be different. You can type 'mount' to see all the mount points and figure out which is the correct drive.

Every Linux distro I have used mounts ntfs as read/write. Ive used CentOS, RHEL, OpenSUSE, Oracle, Fedora. Maybe Ubuntu is different, but every distro Ive used mounts ntfs as read/write by default. Anyway, follow the advice given here as it does sound like its mounted as read-only which I find a little odd. However I am still fairly new to linux.

yancek 07-22-2018 06:26 PM

Ubuntu and other Linux systems are designed as multi-user systems so the default is to allow any normal user read-write access only to the /home/user directory and sub-directories so if you are logged in as a user, that is expected behavior. You need to do some reading on using sudo in Ubuntu to give yourself permissions and/or change ownership. See the link below. Also the type of filesystem you are using will make a difference.

https://help.ubuntu.com/community/RootSudo?

mrmazda 07-22-2018 10:04 PM

NTFS is a proprietary filesystem format whose performance suffers in diverse ways when used in Linux. Long term you should probably make plans to either backup the data on that disk, reformat it with a native Linux format (e.g. EXT4 or XFS), then restore the data, or, get another disk to use instead, and convert the old one to use as a backup device.


All times are GMT -5. The time now is 10:37 AM.