losetup

Programming, for all ages and all languages.
Post Reply
Edward
Posts: 13
Joined: Wed Oct 18, 2006 1:12 pm

losetup

Post by Edward »

Hello. I'm new to Linux and have previosly been using M$. I'm trying to create and mound a floppy disk image as describerd here:

http://www.osdev.org/osfaq2/index.php/D ... er%20Linux

However when I try to execute the losetup command bash returns with:
bash: losetup: command not found
I'm using Red Hat 9.
is there a solution to this problem?
Please help. Thankyou.
User avatar
Brynet-Inc
Member
Member
Posts: 2426
Joined: Tue Oct 17, 2006 9:29 pm
Libera.chat IRC: brynet
Location: Canada
Contact:

Post by Brynet-Inc »

A Similar situation was discussed Here..

Apparently in Redhat linux the losetup command is an optional package, You likely need to find the RPM for it.

This might be it, http://rpmfind.net//linux/RPM/redhat/9/ ... .i386.html
Last edited by Brynet-Inc on Tue Oct 31, 2006 3:07 pm, edited 1 time in total.
Image
Twitter: @canadianbryan. Award by smcerm, I stole it. Original was larger.
User avatar
gaf
Member
Member
Posts: 349
Joined: Thu Oct 21, 2004 11:00 pm
Location: Munich, Germany

Post by gaf »

bash: losetup: command not found
You must have root privileges to use losetup. Either use 'su' to login as root or execute just this command as "sudu losetup".

regards,
gaf
Edward
Posts: 13
Joined: Wed Oct 18, 2006 1:12 pm

Post by Edward »

Thankyou. It works when I am logged in as root. But is doesn't if i just use su on a terminal when i am logged in as normal. Is there any way to get arround this?

edit:

I fixed it. it was a problem with the bash path.
Post Reply