Request fstab Help

August 10th, 2012 - 09:21 pm ET by Wildman | Report spam
I want to be able to mount a floppy disk image with rw
permissions. This command works but only gives me
read-only access...
sudo mount -o loop <image> <mount point>

From the research I have done, it looks like a correct
entry in fstab will solve my problem. However, I was
not able to find an example of an entry for a loop
device. I thought about trying something like this...
/dev/loop0 <mount point> vfat rw,user,noauto,exec 0 0

I have not tried this yet because I am uncertain of the
effects of entering something not correct into fstab.
So I will wait for some guidance, please...

Any help would be appreciated.
Bruce
email Follow the discussionReplies 13 repliesReplies Make a reply

Replies

#1 Aragorn
August 10th, 2012 - 09:47 pm ET | Report spam
On Saturday 11 August 2012 03:21, Wildman conveyed the following to
alt.os.linux.ubuntu...

I want to be able to mount a floppy disk image with rw
permissions. This command works but only gives me
read-only access...
sudo mount -o loop <image> <mount point>



Try...

sudo mount -o loop,rw /path/to/image.img /mount/point

From the research I have done, it looks like a correct
entry in fstab will solve my problem. However, I was
not able to find an example of an entry for a loop
device. I thought about trying something like this...
/dev/loop0 <mount point> vfat rw,user,noauto,exec 0 0



Try...

image.img /mountpoint auto loop,rw,user,noauto,exec 0 0

You can substitute "auto" by "vfat", if you are certain that the
filesystem in the image is indeed vfat (FAT32), as opposed to "msdos"
(which is FAT12/16).

And of course, substitute "image.img" by the path and name of the image
file, and "/mountpoint" by whatever directory you wish to mount it on -
preferably one which isn't in use as a mountpoint already. ;-)

I have not tried this yet because I am uncertain of the
effects of entering something not correct into fstab.



Incorrect records in /etc/fstab may lead to some error messages being
spit out, but nothing dramatic should happen, especially not if you
specified "noauto" in the options and left the last field as "0".

= Aragorn (registered GNU/Linux user #223157)

Similar topics