cancel
Showing results for 
Search instead for 
Did you mean: 

Write permission in linux

Former Member
0 Kudos

Hi,

As i am trying to copy of my sap bakup to my External Hardisk. But showing write permission problem.

my External harddisk path is /media/Expansion_Drive/

Also gave permission #Chmod -R 777 /media/Expansion_Drive/

after that iam also not able to copy

Any idea

Regads

Subham

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Which Linux version you are using ?

Check and try below things :

1. Check ownership on /media/Expansion_Drive/

(is the current user owner of this path ?)

2. Make sure that USB disk doesn't have NTFS filesystem.

(You need to install NTFS driver for linux to access NTFS partition.)

Solutions:

1. Unmount /media/Expansion_Drive/

2. Create directory for example /USB_DISK

3. Change Owner to current user (# chown -R /USB_DISK )

4. Change Permissions (#chmod -R 777 /USB_DISK )

5. Mount USB_DISK as current user (# mount /dev/sda1 /USB_DISK )

(Change /dev/sda1 as per your actual usb disk...)

Then try to write / copy on /USB_DISK parition...

Let us know the result...

Regards.

Rajesh Narkhede

Former Member
0 Kudos

Hi Rajesh,

As i am new to Linux, how can mount or unmount i dont know.

As per ur question:

1. Linux version--> Suse Linux 10 sp1

2. Ownership on /media/Expansion_Drive/----> root

(is the current user owner of this path ?)------>yes

Plz guide me step by step

Regards

Subham

Former Member
0 Kudos

Hi,

As i am new to Linux, how can mount or unmount i dont know.

You can find it on google as "How to mount usb disk in linux"

Here are the steps to mount USB with RW permissions...

(For example if your USB disk device is "/dev/sda1" and you want to mount it for USER1 as RW)

Login as ROOT

First Unmount the automatically mounted USB drive
# umount /media/Expansion_Drive

Then remount it with below command
# mount -t vfat -o uid=xxx /dev/sda1 /media/Expansion_Drive

The -o uid=xxx sets the ownership to whoever you want it to be. You can get the uid of USER1or other user you want from the /etc/passwd file. Another option "-t vfat" indicate the filesystem on USB Drive which is FAT.

Please note, if the filesystem of USB drive is NTFS, you can't access it normally. For that you need to have NTFS filesystem driver installed on your system.

You can check the filesystem of USB drive in any windows system.

My Computer --> Select USB drive --> Right Click and select Properties

Hope, it will help you.

Regards.

Rajesh Narkhede

Former Member
0 Kudos

Hi,

I once faced a similar problem with a USB disk. I could solve the problem by formatting the disk with an ext3 or ext4 file system. Linux just didn't accept the FAT32 file system if I mounted the disk and wanted to write something to it.

If you want to give this a try please make sure that ALL data on that disk has been backed up somewhere else beforehand because formatting the disk will erase all data.

Regarding the format process itself it should be no big deal if you use a newer linux distribution. They all come with easy to handle graphic tools for that purpose (e.g. YAST if you use SUSE Linux).

Kind regards.

Answers (2)

Answers (2)

nelis
Active Contributor
0 Kudos

A common problem when using external drives formatted with a linux file system is that you find people don't disconnect the external drive correctly so the file system gets marked as dirty. In such cases, the next time the person connects the drive it mounts it as read only(ro).

To fix, unmount the file system and run fsck on the device. Once it is marked clean again you will be able to mount it with write permissions.

Nelis

Former Member
0 Kudos

Check how your disk if formatted. NTFS or FAT32 and use special mount options for this when mounting your drive..

Kind regards,

Mark