LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-01-2009, 02:33 PM   #1
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Rep: Reputation: 23
"Inappropriate ioctl for device" on loopback after rebuild


I had to rebuild my kernel in order to get ATI's proprietary drivers to work (there were unresolved symbols in the fglrx module to do with ACPI, which I don't use).

No big deal, I have built the kernel hundreds and hundreds of times in the last ten years.

However, now it will not mount anything via loopback:

[root/] mount -o loop -t iso9660 /backup.iso /mnt/fedora
ioctl: LOOP_SET_FD: Inappropriate ioctl for device

I diff'd my config with my old config, but the loopback choices are all there, and loop.ko loads.

I googled around for this error and found a few threads here and there going back some years, but they are all unresolved.

FC10-64 kernel 2.6.29.2
 
Old 12-02-2009, 07:14 AM   #2
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
Quote:
I had to rebuild my kernel in order to get ATI's proprietary drivers to work (there were unresolved symbols in the fglrx module to do with ACPI, which I don't use).

However, now it will not mount anything via loopback:

[root/] mount -o loop -t iso9660 /backup.iso /mnt/fedora
ioctl: LOOP_SET_FD: Inappropriate ioctl for device
Strange.
Does /dev/loop* still point to the same device?

Quote:
I diff'd my config with my old config, but the loopback choices are all there, and loop.ko loads.
What are the differences?
 
Old 12-02-2009, 06:11 PM   #3
mk27
Member
 
Registered: Sep 2008
Distribution: fedora, gentoo, ubuntu
Posts: 148

Original Poster
Rep: Reputation: 23
Quote:
Originally Posted by cladisch View Post
What are the differences?
Well, I can tell you what fixed it. I recompiled again, this time I thot I'd try and make the ACPI stuff a module; you can't, but I noticed that most of the things included by default with ACPI cannot apply to desktops (AC adapter, battery, et. al) so I unchecked those and went for a more minimal ACPI set-up.

Now the loop device is okay. Go figure.
 
  


Reply



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
Weird Perl error with "Inappropriate ioctl for device" bnutting Programming 9 03-12-2012 07:25 AM
chat and "inappropriate ioctl for device" MattFunke Linux - Software 3 01-29-2007 10:25 PM
inappropriate ioctl for device praetorrian Linux - Software 1 05-09-2006 12:11 AM
kismet "channel get ioctl failed...no such device" fatblueduck Linux - Software 0 01-03-2006 01:51 AM
Inappropriate ioctl for device(25) why1957 Linux - Networking 0 08-03-2003 04:45 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 01:34 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
Open Source Consulting | Domain Registration