Blaisorblade writes: > > Kernel command line: mem=128M ubd0=/dev/md0 ubd1=/dev/hdc9 rootfs=/dev/ubd0 > > -s > What's -s for ?
To boot single-user. > > Couldn't get the block size of "/dev/md0", errno = 13 > perror 13 gives: > Permission denied. > check the node permissions, anyway. The permissions were right. The problem was that (at least in 2.4.20), in md.c, at the beginning of md_ioctl it does: if (!md_capable_admin()) return -EACCES; which refuses to execute any ioctl when you're not root. Perhaps there's a way to configure capabilities or security bits to let a user access it, but I prefered to remove this test from the beginning and put it only in front of each "set" ioctl, letting all users to execute all "get" ioctls. So now I can boot from /dev/md0 as a normal user. > > Couldn't get the block size of "/dev/md0", errno = 13 > Where tf does this comes from? I haven't found any mention of this in the > sources... /usr/local/src/user-mode-linux/linux-2.6.8/arch/um/os-Linux/file.c:538: Thanks for your help. I'll see if this access test has changed in 2.6 and send patches to the authors of md. -- __Pascal Bourguignon__ http://www.informatimago.com/ Kitty like plastic. Confuses for litter box. Don't leave tarp around. ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user