LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-17-2008, 01:00 AM   #1
kaushikakali
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Rep: Reputation: 0
Trouble in opening file fron read only disk


Hi

I am a newbie of ubuntu linux. The problem i am facing is that When I am trying to open the directories(hda5, hda6 or hda1) in the desktop logging as other user, an error message is displayed saying as:

You do not have permissions to access.

I logged in as root and tried to change the permissions for other user by right clicking that directory(hda5)but it has thrown an error message
saying that " the file is on a read only disk and its permission cnnot be changed".

I also tried " chmod 777 /media/hda5" and "chmod 777 /dev/hda5". But it didn't work. Is there any problem with the mount point or the device????
Plz help.
 
Old 07-17-2008, 01:05 AM   #2
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,629

Rep: Reputation: Disabled
You could have probably mounted it read-only. Hence this problem.
If you have entry in fstab to auto mount the devices, specify rw in options.
Or you may remount it with rw options manually.
Try if this works.
 
Old 07-17-2008, 11:05 AM   #3
kaushikakali
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Ok i will do that.Let's see. Thanks...
 
Old 07-18-2008, 08:25 AM   #4
FranDango
Member
 
Registered: Jun 2008
Posts: 101

Rep: Reputation: 15
If you need only temporary write access to those devices than use 'mount -o remount rw ...' (see 'man mount' for proper syntax and details) to remount the drive with the new options.

The problem is due to read-only mounting. No way to change any setting (like ownership) that needs to be written back to the device without having write access.

Linux Archive

Last edited by FranDango; 09-20-2008 at 06:49 AM.
 
Old 07-21-2008, 10:30 AM   #5
kaushikakali
LQ Newbie
 
Registered: Jul 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Hi

I did all that u mentioned but its stil not working.Even I changed the umask value to 000 in fstab. But even if it only permits me to Read and Execute. It does not give me write permission.

I also chnged the options by including rw,user in fstab but of no avail.

Plz help
 
Old 07-21-2008, 06:49 PM   #6
FranDango
Member
 
Registered: Jun 2008
Posts: 101

Rep: Reputation: 15
Is your mounted device a Windows NTFS file system? Without a proper ntfs kernel module you will be able to read it, but no way to write to it.

Linux Archive

Last edited by FranDango; 09-20-2008 at 06:27 AM.
 
Old 07-21-2008, 07:17 PM   #7
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
do you have ntfs-3g installed
the OLD UNSUPPORTED ntfs kernel mod is read only and right only to an existing file IF you do not change the file size .
install ntfs-3g and change all the ntfs in fstab to ntfs-3g
example: my windows drive
Code:
/dev/sda1      /mnt/windows       ntfs-3g  defaults      0 0
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to install debian fron dard disk with win xp? asparagus Linux - Newbie 3 12-23-2007 01:20 AM
Having trouble opening a disk from program running in WINE mrzack Linux - Software 2 08-08-2006 12:52 AM
Read-only file system usb-disk pavodive Linux - Newbie 11 05-25-2005 11:17 PM
Trouble opening index.php file to install eZ publish jedson Linux - Software 2 11-01-2004 08:22 AM
Windows XP opening Samba file as "READ ONLY"? core_sa Red Hat 0 08-28-2004 02:55 PM


All times are GMT -5. The time now is 04:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration