--- Flavio <[EMAIL PROTECTED]> wrote:

> 2006/11/8, Brock, Anthony - NET <[EMAIL PROTECTED]>:
> > Flavio,
> >
> > First, please stop posting in HTML. It is challenging for some software
> > to deal with in a safe a proper manner.
> 
> Ok, I'm sorry. I'm using gmail, I just turned off HTML mode.
> 
> >
> > Second, do you have write permissions on the device in question? In
> > other words, assuming that you're running the UML instance as user
> > 'myuml',
> 
> I always run uml as user, on my host system. In other words I start my
> UML session
> as user... But, perhaps you want to know if I'm logging in as user in
> my UML instance, don't you?
> The answer is: NO, I always log in as root.
> 
> >do you see something similar to the following on the host:
> >
> > $ ls -lA /dev/sdc
> > brw-rw----  1 myuml disk 8, 32 Mar 14  2002 /dev/sdc
> > $
> >
> I've no /dev/sdc on my /dev host directory.
> 

Flavio:

You misunderstood what Anthony was saying.

Let's say that when you insert your usb drive in the host system, it gets 
assigned the device node
/dev/sdc, which you need to check by running the "dmesg" command on the host 
after you insert the
usb drive.

Let's also say that /dev/sdc is owned by the root user on the host, which you 
can check by running
"ls -la /dev/sdc" on the host.  Then let's say you run your uml instance from 
the user account
"umluser" on the host.  Then it makes sense that you wouldn't be able to "fdisk 
/dev/ubdc" or
mount any of the partitions like /dev/ubdc1 inside the uml instance since the 
uml kernel doesn't
have the necessary permissions to do so (it doesn't have read or write access 
to /dev/sdc).

One way to solve this problem is to change ownership of /dev/hdc (after 
inserting the usb drive)
on the host and before booting the uml instance with a chown like this:

   chown umluser /dev/sdc

At this point you should be able to run fdisk and mount from within the uml to 
access your usb
drive.

Chris Marshall


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
User-mode-linux-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user

Reply via email to