mount all harddisks
Sometimes its necessary to mount all harddisks. Mostly when you boot a live-CD and look for a certain partition.
the following one-liner will mount all available harddisks/partitions. You can ignore the errors that occures when it tries to mount swap-partitions or other useless stuff
fdisk -l |grep sd | perl -ne 'print `mkdir /mnt/$1 && mount /dev/$1 /mnt/$1` if m,/dev/(sd.\d),'
yeah its dirty. but on the other hand its copy/paste :)
knowwiki/shorties/mount_all_devices.txt · Last modified: 2011/06/21 16:43 by peter



