Shows all Partitions
Tagged with: command, df, fdisk, hdd, Linux, partition
Thursday, November 6th, 2008 12:12 AM
Shows all partitions on the HDD
fdisk -l
Shows all partitions on the HDD
fdisk -l
Search files with ‘.rpm’ extension ignoring removable partitions as cdrom, pen-drive, etc.
find / -xdev -name \*.rpm
Shows all mounted file systems in Linux
cat /proc/mounts
Mount a Windows FAT partition. If it is an NTFS partion, use ‘ntfs’ instead of ‘fat’. Make sure that the kernel support ntfs if you want to do that.
mount -t vfat /dev/hda5 /mnt/d
<p class=”intro”>If you have many IDE harddisks connected to the system(but not mounted), this command will find it. This will work for sata HDD as well if you use ’sd’ instead of ‘hd’</p>
<pre><code class=”cli”>
ls /dev/hd*
</code></pre>
<p>Simple, is it not? To find the mounted drives just use the command ‘dh’.</p>
[tags]hda,harddisk,ide,sata,linux,command,hdd,partition[/tags]