helpful_ubuntu_commands
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
helpful_ubuntu_commands [2024/12/27 20:47] – mike | helpful_ubuntu_commands [2025/03/20 11:05] (current) – mike | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Helpful Ubuntu/ | ====== Helpful Ubuntu/ | ||
---- | ---- | ||
+ | === Disable Ubuntu Pro " | ||
+ | <color red> | ||
+ | sudo pro config set apt_news=false | ||
+ | |||
=== List hard drive serial numbers === | === List hard drive serial numbers === | ||
lsblk --nodeps -o name,serial | lsblk --nodeps -o name,serial | ||
Line 77: | Line 81: | ||
Restart apache. | Restart apache. | ||
+ | |||
+ | === Create new GPT disk partition === | ||
+ | sudo into an elevated shell and then perform the following: | ||
+ | parted /dev/sdX (where X is the letter of the drive to be manipulated) | ||
+ | mklabel gpt | ||
+ | Acknowledge the warning if one is given | ||
+ | unit TB | ||
+ | mkpart primary 0.00TB 2.00TB (or 3.00TB, 4.00TB, etc. depending on the size to be created) | ||
+ | print (to view the new partition) | ||
+ | quit (to exit parted) | ||
+ | |||
+ | Then proceed to format the new drive, i.e. **mkfs -t ext4 /dev/sdb1** | ||
+ | |||
helpful_ubuntu_commands.1735361248.txt.gz · Last modified: 2024/12/27 20:47 by mike