Fdisk: Difference between revisions
Jump to navigation
Jump to search
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" |
(No difference)
|
Revision as of 14:04, 10 September 2025
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