Re: Information about partitions



On 2006-09-18, Juergen Kluth wrote:
Which tool or command can i use to determine which local harddrives and
thereon partitions -their type too- exists ?
Even if they are not mounted.

I would like to use it on a console, further in a script to un/mount these
partition at time of need.

As root (or use sudo):

fdisk -l

--
Chris F.A. Johnson, author | <http://cfaj.freeshell.org>
Shell Scripting Recipes: | My code in this post, if any,
A Problem-Solution Approach | is released under the
2005, Apress | GNU General Public Licence
.