Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
Linux: Partition and format new hard drive
(edit)
Revision as of 12:13, 24 March 2018
338 bytes added
,
12:13, 24 March 2018
no edit summary
Line 1:
Line 1:
+
= File System =
+
== check hard disk partitions and disk space ==
+
sudo fdisk -l
+
sudo sfdisk -l -uM
+
sudo cfdisk /dev/sdb
+
sudo parted -l
+
df -h | grep ^/dev
+
df -h --output=source,fstype,size,used,avail,pcent,target -x tmpfs -x devtmpfs
+
lsblk
+
blkid
+
hwinfo --block --short
+
+
= ext4 =
fdisk /dev/xvdN
fdisk /dev/xvdN
m show help
m show help
Line 7:
Line 20:
mkfs.ext4 /dev/xvdN#
mkfs.ext4 /dev/xvdN#
+
+
== Check ext4 file system ==
+
e2fsck -vf /dev/sda2
Rafahsolis
Bureaucrats
,
Administrators
2,306
edits
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
Variants
Views
Read
Edit
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
Special pages
Printable version