Fdisk

From CLONWiki
Revision as of 14:04, 10 September 2025 by Boiarino (talk | contribs) (Created page with "'''How to add new disk to Linux machine''' As root: fdisk /dev/sdb Press 'n', then 'p' and follow instructions. In the end, press 'w'. To format: mkfs -t ext4 /dev/sdb1 Add new entry to ''/etc/fstab'': /dev/sdb1 /data ext4 defaults 0 0 Mount new partition: mount -a")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

How to add new disk to Linux machine

As root:

fdisk /dev/sdb

Press 'n', then 'p' and follow instructions. In the end, press 'w'.

To format:

mkfs -t ext4 /dev/sdb1

Add new entry to /etc/fstab:

/dev/sdb1 /data	ext4	defaults     0   0

Mount new partition:

mount -a