On Friday 28 April 2006 17:33, Johan Arens wrote: > Hi I'm trying to activate the swap on my umls. > > My start commands are ubd0=root_fs ubd1=swap_fs > My UML kernel is 2.6.16.9-bs2, downloaded from > http://www.user-mode-linux.org/~blaisorblade/binaries/ > > My system boots normally, I can see the first disk mounted as /dev/ubda.
From the mount output? That's the content of /etc/mtab, please compare with /proc/mounts. > First question, if I do a ls -l /dev/ubd* it doesn't find any devices, > how is it working ? There's a little chance you have still the /dev/ubd/ folder. > To mount the swap area, swapon /dev/ubdb /dev/ubd/1 do not work > (device not found), It's possible that since the kernel mounts the root_fs, it's working anyway. What you likely need to do is to recreate the devices you need like: mknod /dev/ubd0 b 98 0 mknod /dev/ubd1 b 98 16 mknod /dev/ubd2 b 98 32 ... and so on (till ubd7) and/or (depending on your taste) mknod /dev/ubda b 98 0 mknod /dev/ubdb b 98 16 mknod /dev/ubdc b 98 32 ... this can be scripted, but it seems I lost the script, however it's like for ((i=0; i < 8; i++)); do mknod /dev/ubd$i b 98 $[16*$i] done the second can be done too (with tr '0-9' 'a-i' to convert $i to the right letter) but I'm too hurried to do it. Bye -- Inform me of my mistakes, so I can keep imitating Homer Simpson's "Doh!". Paolo Giarrusso, aka Blaisorblade (Skype ID "PaoloGiarrusso", ICQ 215621894) http://www.user-mode-linux.org/~blaisorblade Chiacchiera con i tuoi amici in tempo reale! http://it.yahoo.com/mail_it/foot/*http://it.messenger.yahoo.com ------------------------------------------------------- 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&kid0709&bid&3057&dat1642 _______________________________________________ User-mode-linux-user mailing list User-mode-linux-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/user-mode-linux-user