LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 08-03-2004, 06:03 AM   #1
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Rep: Reputation: 15
un/mounting loop devices


hi,

two things really.

1) can an .iso be mounted as read/write not just read only? if not how do i edit an .iso?

2) i have a file that i mount as a loop device but when i try to umount it tells me busy and does not empty the file(mount point)

this is my script

mv linux.2 linux.gz
gzip -d linux.gz
mount -o loop linux New
echo "please do whatever you need to,"
echo "then press any key to continue..."
read $JUNK
echo "copy menu file"
echo "Press any key to continue..."
read $JUNK
cp /home/lawrenb/Documents/linux.2/menu.sh /home/lawrenb/Documents/linux.2/New/bin
echo "menu.sh copied!"
echo "Press any key to continue..."
read $JUNK
umount New
gzip -9c linux > linux.gz
mv linux.gz linux.2

i do close any browser windows etc. before trying to umount so it should not be active.

regards

BoX
 
Old 08-03-2004, 06:21 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
"2) i have a file that i mount as a loop device but when i try to umount it tells me busy and does not empty the file(mount point)"

I think that you have to allocate the loop device with the losetup command just before you mount it and deallocate the loop device with the losetup command just before you umount it. See:
man losetup

---------------------
Steve Stites
 
Old 08-04-2004, 08:15 AM   #3
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Original Poster
Rep: Reputation: 15
thanks,
have tried that now.
but i does not work for me i just get an error.

the problem with the loop not unmounting correctly only happens if i have used konqueror or similar to browse the files.

is the loop being held open in some kind of browser history maybe?

??

BoX
 
Old 08-04-2004, 10:48 AM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,593

Rep: Reputation: 188Reputation: 188
"the problem with the loop not unmounting correctly only happens if i have used konqueror or similar to browse the files.

is the loop being held open in some kind of browser history maybe?"

Yes, but konqueror should release the files when you close konqueror.

--------------------------
Steve Stites
 
Old 08-05-2004, 10:03 AM   #5
box_l
Member
 
Registered: Jul 2003
Location: Hereford,England
Distribution: mandrake 10 , Novell Desktop Linux (suse) , knoppix
Posts: 85

Original Poster
Rep: Reputation: 15
ah, you say 'close'.
i have just been going up to levels above the mounted file, with other browser windows open too.
i will try closing all browser windows first.

Ta


BoX
 
  


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
Maximum mounted loop devices? dplazz Linux - General 6 07-21-2005 06:52 PM
fstab and loop devices MBH Linux - Hardware 3 10-21-2004 09:58 AM
compiling kernel, initrd can't make image, 'loop devices busy' infamous41md Linux - Newbie 2 06-02-2004 12:59 PM
new kernel installation & loop back devices? fbarre Linux - Newbie 5 10-21-2003 02:40 PM
Problem mounting CD image (no loop device)... Slayer Linux - General 1 10-05-2003 10:30 AM


All times are GMT -5. The time now is 04:35 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration