# ls -l /dev/loop* # mknod /dev/loop8 b 7 8 # mknod /dev/loop9 b 7 9 # chmod 660 /dev/loop8 # chmod 660 /dev/loop9 # chown root:disk /dev/loop8 # chown root:disk /dev/loop9 # ls -l /dev/loop*
Add 10 loopback devices using "MAKEDEV" command ...
# ls -l /dev/loop* # MAKEDEV -v /dev/loop8 # ls -l /dev/loop*
And finaly add up to 256 loopback devices again with the "MAKEDEV" command ...
# ls -l /dev/loop* # MAKEDEV /dev/loop # ls -l /dev/loop* | sort -gk6 | head -20 # ls -l /dev/loop* | wc -l
If you want to clean some of them ... (use carefully) ...
# for i in `seq 8 255`; do; # rm -f /dev/loop${i}; # done
Don't forget to put the "MAKEDEV" or "mknod"+"chmod"+"chown" commands in the "/etc/rc.local" file if you want to get them back after reboot.
MAKEDEV: http://www.linuxcommand.org/man_pages/MAKEDEV8.html
mknod: http://www.linuxcommand.org/man_pages/mknod1.html
No comments:
Post a Comment