LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-17-2005, 03:06 PM   #1
decaf
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Rep: Reputation: 0
unable to write to mounted .img file


I have mounted my .img file using a loop device. the .img file contains a Fat32 filesystem. I am using it to transfer data between windows running under qemu and my host linux system. Qemu can read and write to the image fine. However under linux I have to be root to write to the .img file when it is mounted. (qemu uses the .img file directly without it being mounted). I have tried several .img files all with the same problem, even when qemu is not running. Any ideas?
 
Old 03-17-2005, 03:23 PM   #2
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
Hello and Welcome to LQ!

You need to change the permissions.
Sorry I can't think of it off the top of my head, but you should be able to right click on the file and choose to allow everyone the ability to write.
chmod (I think) is the command.

google for permissions.

titanium_geek
 
Old 03-17-2005, 03:31 PM   #3
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
PS it helps if you fill out things like the distro in your profile...
 
Old 03-18-2005, 12:33 PM   #4
decaf
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
I use SimplyMepis 3.3. I have tried changing the permissions and they will not change. What other information would be helpful in figuring this out?
 
Old 03-19-2005, 12:34 PM   #5
titanium_geek
Senior Member
 
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
try changing the permissions as root.

titanium_geek
 
Old 03-19-2005, 01:51 PM   #6
decaf
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
I did try to change them as root.
 
Old 03-19-2005, 07:11 PM   #7
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
su
chmod ugo=rwx file.whatever

(that should work, its been a while since I've been doing any UNIX) :-P
And if there is an error, tell me what it is.
 
Old 03-19-2005, 09:28 PM   #8
decaf
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
I have tried that. No errors but the permissions do not change. I have tried changing them on the image file on the directory I mount the file to and the files in the image. None of them will change.
 
Old 03-19-2005, 09:31 PM   #9
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
You're going to have to change the way you mount it.

Linux is very very bitchy about letting me mount my NTFS drive, it will only let root read it. Christ....I forget what i had to chuck in the fstab to get it to work. Check in search for how to mount a NTFS drive or whatnot with proper permissions.

I think that may be it, but I'm not positive.
 
Old 03-21-2005, 12:30 PM   #10
decaf
LQ Newbie
 
Registered: Aug 2003
Posts: 8

Original Poster
Rep: Reputation: 0
this isn't an ntfs drive it is a drive image formatted with fat32 aka vfat. My other users can read it but only root can write to it. I have mounted it manually and through fstab with the same result. I have tried changing ownership and permissions as root and other users but they do not change. I am running Debian based SimplyMepis 3.3. I have an NTFS drive that works just fine. Any user can read it. I can use a physical drive formatted as fat32 just fine. I am just having issues with the image file.
 
Old 03-21-2005, 05:15 PM   #11
Pauli
Member
 
Registered: Feb 2004
Location: Montreal
Distribution: Gentoo/Debian
Posts: 365

Rep: Reputation: 30
I've had fat32 drives give me the same problem. IMO something is wrong with your mounting.

If you disagree, then I can't offer you any help, sorry.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to write to mounted partitions Kamikazee MEPIS 6 06-03-2005 02:59 PM
how to write an .img file to floppy? ghostboarder Linux - Newbie 7 09-11-2004 10:31 PM
mounted but no write permission varunk123456 Red Hat 1 03-31-2004 02:54 PM
How do you write to a mounted iso file? jschiwal Mandriva 2 08-27-2003 02:33 PM
unable to write file to vfat partition from Linux techsarge Linux - Software 5 04-25-2003 04:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 09:00 AM.

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