LinuxQuestions.org
Visit Jeremy's Blog.
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 11-04-2009, 06:02 AM   #1
chriswcristie
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Rep: Reputation: 0
Mounting loop device as a regular user


Hi,

I'm having a problem trying to set up /etc/fstab so I can mount any ISO file using a loop device as a regular user.

I've added:
/dev/loop0 /mnt/tmp auto user,loop,noauto 0 0

and I'm trying to mount with:
mount -oloop=/dev/loop0 /my/file.iso /mnt/tmp

This gives me:
mount: only root can do that

I don't want to use losetup, I want to be able to mount without being root.

Anyone know how I can do this?

Thanks,
Chris
 
Old 11-04-2009, 07:19 AM   #2
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
http://www.linuxquestions.org/questi...l-user-425537/

Google is your friend
 
Old 11-04-2009, 07:37 AM   #3
chriswcristie
LQ Newbie
 
Registered: Nov 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for the reply but the link refers to mounting a CD or DVD, what I want to do is mount an ISO file using a loop device.
 
Old 11-05-2009, 06:45 AM   #4
Mr-Bisquit
Member
 
Registered: Feb 2009
Distribution: FreeBSD, OpenBSD, NetBSD, Debian, Fedora
Posts: 770
Blog Entries: 52

Rep: Reputation: 68
You do the same.
http://www.cyberciti.biz/tips/how-to...der-linux.html
 
Old 06-06-2012, 02:05 AM   #5
yminus
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Mr-Bisquit seems to post answers without even reading (or understanding?) the question.

chriswcristie wanted to know how to
Loop mount ISO FILES WITHOUT BEING ROOT
.
 
Old 06-06-2012, 06:53 AM   #6
tshikose
Member
 
Registered: Apr 2010
Location: Kinshasa, Democratic Republic of Congo
Distribution: RHEL, Fedora, CentOS
Posts: 134

Rep: Reputation: 30
You should have in /etc/fstab something similar to
/path/to/the/iso_file.iso /mnt/tmp iso9660 loop,user,ro,noauto 0 0

Then try
Code:
mount /mnt/tmp
as the a normal user form a shell.
It should work if the normal user has the required access to /mnt/tmp and /path/to/the/iso_file.iso.
At least it worked fine in my Linux box.

Last edited by tshikose; 06-06-2012 at 06:54 AM.
 
1 members found this post helpful.
  


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
mounting a loop device vinaytp Linux - Newbie 5 10-05-2009 11:59 AM
No regular user access USB device from RHEL 4.0 WS dita Red Hat 2 12-18-2005 02:59 AM
Gentoo. Problems with the loop device when mounting an iso file Snerkel Linux - Software 4 11-26-2004 03:34 PM
Want regular user to have memory stick mounting rights king8 Red Hat 3 11-10-2003 06:31 PM
Problem mounting CD image (no loop device)... Slayer Linux - General 1 10-05-2003 09:30 AM


All times are GMT -5. The time now is 06:50 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration