tail -20 /var/log/messagesDisplay list of the partition tables
fdisk -lDisplay device parameters
hdparm /dev/sdaMore detailed information
hwbrowser
more /etc/sysconfig/hwconfRun fdisk
fdisk /dev/sdaGet list of existing partitions
Command (m for help): pDelete partition which exist on the drive
Command (m for help): dCreate new partition
Command (m for help): nVerification before save
Command (m for help): pSave new table to drive
Command (m for help): wUpdate partition table in system
partprobeAlternative to partprobe is hdparm -z
hdparm -z /dev/sdaFormat created partition to ext3 file system
mkfs.ext3 /dev/sda1Verification if partition is not mounted
df -hTMount new-created partition to directory /mnt/usb. If directory is not exist, first created it.
mkdir /mnt/usb
mount /dev/sda1 /mnt/usb
df -hTDisplay disk partitions
parted /dev/sda unit GB print freeWas this information helpful to you? You have the power to keep it alive.
Each donated € will be spent on running and expanding this page about UNIX Shell.
We prepared for you video course Marian's BASH Video Training: Mastering Unix Shell, if you would like to get much more information.
Thank you. Marian Knezek