Just install Ubuntu 10.04 on my friends machine. I keep two more partition on her 80 GB harddisk to store various files and folders. Both of them are formated as ext3 file system. After completing install we found that there is no any option to create new file or new folder/ directory on these two partitions. Actually this kind of activity options are disabled on right click drop down menu. Look at the screen-shot below.
![Can not create file folder on newly installed ubuntu. right click menu options are disabled](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6v3VVAO84SHZrBHQXADyLUwFrpg3Y-r60LKCbVrOYw3NoeJkqLFxLPToJ-7sc2yw3Zod8zI4m5cQwrDJMMWvevJbnlCdxbWEXYkwbFIMOywLW0rNYtVrRxZAWTsyHFzJpbIXHFWW2DKJH/s320/cannotcreatfile.png)
This is happen for permission problem. This kind of function made to ensure critical secure environment. In this situation nobody (unauthorized user) can create new file or new folder/ directory or paste anything on that ext3 partition. Normally you can write on those partitions if you login as root. It also can happen on ext4 file system too. Now if you want to write anything on this partition then you must change permission to access that drive.
Solution:![change permission using terminal and drive name](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEirqqk5tmwPeG0KlSM8mGzv6R0q37xts7U-ocwnd-Mp3G0f4sA4qkCtLyKMfYW2UQqA6r9oO3XQwULv3QUUhC-3j1lLDgWw-W04ivephN3Y9YmZbenGSpBJDSRrkLogD-JWZLd_zU4h57Y/s320/change-permission-drive-name.png)
Changing permission on any specific drive or partition is very easy. Just run the command below on terminal. Before doing it don't forget to mount all of your partition.
sudo chmod -Rf 777 /media/name
Here change the red word name with the specific drive name. The drive name can be
sda1 or
sda2 or anything in this way/ order or you can get the drive name from the title bar or a opened window of a specific drive. Look at the image below.
![Linux partition drive name or number on opened window title bar](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3ysy82yohIuPKYXtrcmbtwNrwIByrMi7FRipYtZKN0unz21E8_2DmWYg5mga4tNmLOeIWfhQWZZSV01GC0YEuvN4tgo5_c8-BKIbtPTVrkqX7S3CKCkbnURCNVGcwPDUVxmPvizRKuLA/s320/linux-drive-partition-name.png)
Write the drive name or number instead of red color word '
name' and press enter. You can get drive name pressing tab after the end of command
media. That means type
sudo chmod -Rf 777 /media/ and press tab button on keyboard. In my case after entering drive name, the whole line look like:
user@ubuntu:~$ sudo chmod -Rf 777 /media/45bd262c-2c1f-4219-a094-7ceca6313d82
Just run the command once, writing permission will change instantly. You wouldn't need to do anything again later. Oh, yes, you have to enter password to active the command.
Great, it solve my prob. thanks
ReplyDelete