"Permission denied" starting QEMU/Linux


Forum: DSL Embedded
Topic: "Permission denied" starting QEMU/Linux
started by: tawalker

Posted by tawalker on Jan. 03 2005,11:40
I'm setting up the "triple boot" version of DSL on my USB pen drive (Sandisk Mini Cruzer 256Mb), and so far I think I'm making slow but steady progress :) I can't tell whether the drive is bootable yet, as it seems none of my PCs can boot from a USB pen drive, but that's another post on its own.

The main issue right now: I can run the Windows QEMU, but not the Linux one, as the latter gives me a "Permission denied" error. < This DSL forum post > addresses the same problem, but the steps suggested there didn't solve the problem for me. The permissions on dsl-linux.sh and the QEMU executable appear to be correct, and I can't seem to change them anyway as the pen drive is formatted with FAT32.

I'm more likely to want to run QEMU on a Windows PC when I'm out and about, but it would be good to have a Linux option too. Can anyone suggest any ideas for fixing the Linux permissions problem?

Many thanks,
Tim

Posted by tawalker on Jan. 03 2005,17:52
Just to add to this: I also tried starting the Linux QEMU from my laptop running Fedora Core 3, and it gave me a "Segmentation fault" error.

Maybe it's just not my week... :p

Posted by durbnpoisn on Jan. 06 2005,20:22
I had the exact same trouble on my Mandrake Linux machine.  No matter what I do, it says permission denied.

Me = no help...

Posted by tawalker on Jan. 07 2005,19:51
Ironic, isn't it - at present, the only way I can run DSL from my pen drive is under Windows!

- Embedded on RH9 system = "Permission denied"
- Embedded on FC3 system = "Segmentation fault"
- Neither of my two PCs seem to be able to boot from USB, but that's a hardware problem

To be fair, the Embedded DSL problems look like they're more down to QEMU/Linux than DSL itself. I'm already thinking ahead to how DSL might be perfect for a Mini-ITX PC, but I've quite a while in which I can dream about that...

Tim

Posted by Hasbro35 on Jan. 09 2005,08:12
For Fedora Core 3 I installed the QEMU 0.6.1 from the dag repository at < http://dag.wieers.com/home-made/ >  These packages are specifically compiled for fedora core.

Here are the steps I used to get qemu working from FedoraCore3 using my 1GB Lexar Jumpdrive
1.  Installed QEMU for FC3 from Dag's repository using Synaptic (an apt GUI front-end).  You should be able to just install by grabbing the RPM from his site as well and using RPM to install.
2. Created a new directory on the usb pen drive called  /qemufc (for fedora core).  I created this new directory so that the default files would be untouched so I could try them on other distros.  
3. Copied the Dag version of "qemu" from my Fedora Core 3 install (located in /usr/bin/qemu) to /qemufc/
4. Made a copy of dsl-linux.sh and called it dsl-fedoracore3.sh
5. Edited dsl-fecoracore3.sh so that the command line would execute /qemufc/qemu instead of /qemu/qemu

Here is the contents of my dsl-fedoracore3.sh:
#!/bin/sh
qemufc/qemu -L qemu/ -enable-audio -kernel linux24 -initrd minirt24.gz -hda knoppix/knoppix -hdb qemu/harddisk -append "qemu frugal quiet"

That's it.  Now I run ./dsl-fedoracore3.sh and QEMU runs without a segmentation fault.  Note: A much simpler solution would be to back up the default /qemu/qemu and replace it with Dag's version.  Then, just run the default dsl-linux.sh and it should work, but I have such a large pen drive that space wasn't an issue so I did it the way I did above.  Also my way allows me to try the default dsl-linux.sh on other distros without having to make any edits to shell scripts.

Posted by Hasbro35 on Jan. 24 2005,21:15
Note:  My previous post is incorrect.  The version of qemu that ships with DSL is heavily modified.  The release version of qemu lets you boot up, but does not work with DSL 0.9.2.  I am going to submit a defect that the DSL qemu does not work with Fedora Core 3 when I get a chance.  Until then I'll just be using it embedded on Windows.

Please don't replace your qemu!  or at least back up the one that comes with DSL.

Posted by Vorgo on Mar. 14 2006,02:47
Not sure if this is still an issue for people but here was how I solved it...

I have DSL embedded installed on a USB stick that is formatted with the vfat (i.e. FAT32) file system.
I origionally was getting "permission denied" when trying to run dsl-linux.sh.

The problem:
There is an option to mount called "exec" it allows execution of files within the file system. Apparently it is not a default option to have on when mount vfat (unsurprisingly).

So to mount your usb drive:
mount -t vfat -o <your other options>,exec <your device> <your mount point>
e.g.
mount -t vfat -o rw,exec /dev/sda1 /mnt/usb

Or in fstab...
/dev/sda1 /mnt/usb vfat noauto,user,rw,exec 0 0

Then dsl-linux.sh worked!

For reference here is my applicable information:
Gentoo Linux 2006.0 (2.6.14)
DSL Embedded (the version of which is eluding me but it was put online on Feb 6th 2006)

Posted by roberts on Mar. 14 2006,05:55
Thanks for sharing.
I will add this to the readme.txt in the embedded version.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.