I want to make a script to mount an external device to a particular mount point e.g say /mnt. Let me elaborate my question,
suppose I run fdisk -l in terminal I would get this output
Disk identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 493 3956672 6 FAT16
so I want to write a script so that when I run that script it checks for where external device is mounted(in my case sdb1) and automatically takes that partition and mount it to /mnt
I have scientific linux 6.4(32 bit) .
fdiskoutput, you also havesdaN. Will it always besdbN? Will it always be an external device? What else defines it? What if you have an external device with multiple partitions?