Access disk partition EXT2 / 3

Last update on March 8, 2009 08:51 AM by aakai1056
Published by aakai1056

Access disk partition EXT2 / 3




Problem


Under gnome, when it mounts a partition formatted as ext2 or ext3, you can not write without being in a session Root (Super Administrator).

And if one wants to change the rights fesant right click and select "Properties"> "Permissions", we see that we must once again be Root.

Solution


To access all the same in writing to the disc, it has 3 options:
  • Take Root in handling each file and copy commands with sudo and cp.
  • Edit / etc / fstab to allow the user to access current writable disc.
  • To change the owner of the disc easily and graphically.

The fstab file


/ Etc / fstab contains information about mount points, file systems, options ... partition of each disk connected to the computer. To access an EXT3 partition without using the root account, you must add the option "user" in the line of partition:
for example:

/ dev/hda2 / media/disque_ext3 ext3 rw, user 0 0


is the line corresponding to the disk / dev/hda2 mounted in / media/disque_ext3.
  • Is the EXT3 file system
  • Rw option is giving access read / write
  • User enables a non-root user to write on the disc.



Before any changes, we will make a backup of the file: type:

sudo cp / etc / fstab / etc / fstab.BAK


To edit the fstab file, you must be root to open it type:

sudo gedit / etc / fstab


add "user" and then save. Normally, you can access the EXT3 partition in writing!

The graphical method


This method will make your user the owner of the disc, allowing you to do what you want it.
For now, the disc is still in Root:

It will open the Disk Root:

sudo nautilus / media/disque_ext3 /

disque_ext3 where is your disk.

Now, the disc opens and everything can change, we will change the owner: right-click the empty space of the case and "properties", we see in the tab "permissions" that we can now change the rights:

put your user in "owner" and "create and delete files" in case access to the file

Then click on "Close" and exit the window of the disk (to exit the Root) and re-open the drive in normal mode ...

You can copy, read, write, etc. on the disk:

Conclusion


So, with these methods, you can normally copy on a partition in EXT2 or EXT3.
  • The method to change the fstab file is quick and allows you to change all the options for a partition of a sudden, but requires knowing the correct syntax.
  • The graphical method is easier for beginners and there is less risk: The file fstab file is important and a mistake can be dangerous for the system.
Best answers for « Access disk partition EXT2 / 3 » in :
How to resize a disk partition Show How to resize a disk partition For Windows Vista users Solution 1: Using Disk Management Solution 2: Using Command Prompt Software Download There are some simple ways to manage your disk partitions to either expand or reduce them....
Access rights to Windows partition ShowAccess rights to Windows partition Getting started Implementation Adding a user Modifying the /etc/fstab file Getting started When creating a Windows partition, it may happen that only the "root" has the necessary privileges, to have...
Partition Merge ShowPartition Merge Merge two partitions with Windows Vista Merge two partitions with a particular software If you have a partitioned hard drive and you are running out of space on one of them, you can choose to merge it with another...
Free up space on the system partition ShowFree up space on the system partition The folder "My Documents" Favorites Messages from Outlook Express Temporary files Restore points Additional things you can do Your hard drive encloses two partitions complying of:...
Download EASEUS Partition Master ShowEaseUs Partition manager Free, is software "par excellence". EaseUs Partition Manager easily and without error will resize your hard disk partition into any size you chose: Main characteristics of EaseUs Partition Free: Material support for...
Download Disk Recovery Wizard ShowDisk Recovery Wizard is a tool to backup data. It allows to restore the damaged, corrupt and inaccessible data on a hard disk and even the formatting. A wizard guides you step by step to facilitate the operations. Disk Recovery Wizard supports any...
Partition - Partitioning a hard drive ShowWhat is a partition? The partitioning of a hard drive occurs after the drive has been physically formatted but before it is logically formatted. It involves creating areas on the disk where data will not be mixed. It can be used, for example, to...
Random access memory (RAM or PC memory) ShowTypes of random access memory There are generally two broad categories of random access memory: DRAM memories (Dynamic Random Access Module), which are inexpensive. They are used essentially for the computer's main memory SRAM memories (Static...
Book disk ShowSystem disk A system disk, also sometimes called a boot disk, is a disk that will allow you to start a computer when the operating system no longer responds, as the result of a virus for example. This disk contains special information that makes it...