Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsClean PCRecommendedOne scan can reveal what keeps slowing WindowsLook for cleanup and repair opportunities.Run Scan×
Skip to content
DocumentaryTube
Disk management

How to Format and Mount a Disk on a Linux VPS

A safe, provider-neutral workflow for identifying, formatting, mounting, and persistently mounting a new Linux VPS data disk.

By DocumentaryTube Team 5 min read
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To make a newly attached VPS disk usable, first identify it from Linux’s live device information, then create a filesystem only if needed, mount it at a directory, and add a UUID-based entry to /etc/fstab if it should return after reboot. The provider-specific attachment step comes first; the commands below are generic Linux guidance. Never assume a device such as /dev/sdb is the new disk without verifying it.

Before you start: attach and identify the disk

Attach the volume through your VPS provider’s control panel or CLI, following that provider’s current instructions. Linux cannot mount a volume the host does not yet see, and providers may require particular attachment steps or device handling.

On the VPS, inspect the devices and filesystem identifiers:

lsblk -o NAME,SIZE,TYPE,FSTYPE,LABEL,UUID,MOUNTPOINTS
sudo blkid

Compare the device tree, capacity, filesystem type, UUID, and mount points. Confirm that the candidate is not the boot or root device, swap, an existing data volume, or otherwise in use. The TYPE column and parent/child relationships help distinguish a whole disk from its partitions. If a volume was just attached and does not appear, device information may not have caught up; follow the discovery steps for your distribution and provider rather than guessing a device name. The lsblk manual notes that udev information can lag recently added or changed devices.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

Choose the filesystem target and type

A simple data disk may use a filesystem directly on the whole device, or a partition table with a filesystem on a partition. Neither layout is universally right: consider whether you need multiple partitions, whether the provider or organization requires a layout, whether a filesystem already exists, and whether the volume must work with another operating system. The mkfs manual describes a partition as the usual target while allowing a block device; inspect your actual layout before choosing.

For a straightforward Linux-only data volume, ext4 is a reasonable general-purpose choice when provider rules and workload do not point elsewhere. It is not automatically the best filesystem for every workload or cross-platform requirement. See the ext4 manual and mke2fs manual.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

Create a filesystem only if the target is confirmed

Formatting writes a filesystem to the selected device or partition and can destroy existing data. Stop if the target contains anything you need. If your confirmed layout uses a new partition for ext4, the command form is:

sudo mkfs.ext4 /dev/CONFIRMED_PARTITION

Replace /dev/CONFIRMED_PARTITION with the exact partition you verified. If the confirmed layout deliberately uses the whole disk, use that verified device instead. Do not copy a guessed name such as /dev/sdb or assume every disk has a partition named /dev/sdb1. Prefer the filesystem-specific mkfs.ext4 utility to the generic mkfs frontend.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Mount the filesystem for immediate use

Create the intended mount-point directory, then mount the confirmed device there. This example uses /mnt/data; choose a path that fits your system and application layout.

sudo mkdir -p /mnt/data
sudo mount /dev/CONFIRMED_DEVICE /mnt/data
findmnt /mnt/data

Substitute the verified device or partition. Check that findmnt shows the expected source at /mnt/data, then check available space before directing applications to it. A mount attaches the filesystem at that point in Linux’s unified file tree; while mounted, the directory view underneath is covered. Plan the target path and any existing contents before mounting. To detach it later, use sudo umount /mnt/data after ensuring applications are no longer using it. See the mount manual.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2Ă— USB C male to USB A female adapters and 2Ă— USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Make the mount persistent with /etc/fstab

A manual mount is not a boot-time configuration. Get the new filesystem’s UUID with lsblk -f or sudo blkid, and confirm it belongs to this volume. Back up the existing /etc/fstab before editing; preserve its current entries.

Add an entry using the real UUID, mount point, filesystem type, options, dump field, and pass field. For a typical ext4 data volume, the pattern is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.
UUID=REPLACE_WITH_REAL_UUID  /mnt/data  ext4  defaults  0  2

This is a template, not a literal UUID or universal option set. Use the actual filesystem type and the options appropriate for your system. UUID or LABEL identifiers are preferable to kernel names such as /dev/sdX, which can change as devices are added or removed. If filesystems have been cloned or copied, check that the UUID is unique. The fstab manual documents the entry fields and identifier tags; Red Hat’s RHEL 10 documentation also describes persistent UUID-based mounts.

Validate before rebooting:

sudo mount -a
findmnt /mnt/data
lsblk -f

If mount -a reports an error or findmnt does not show the expected mount, correct the entry before rebooting. Mount options and boot handling can depend on the distribution and the installed systemd and util-linux versions. For special or network-backed volumes, check the host’s manual and provider instructions; do not assume the generic example handles every boot scenario.

Common mistakes and fixes

  • Formatting the system disk: stop before running mkfs unless the target has been positively identified. Use the device tree and mounted paths to distinguish root and boot storage from the new volume.
  • Formatting the wrong layer: check whether the intended target is the whole disk or a partition. Match the command to the observed parent/child layout.
  • Putting /dev/sdX in fstab: replace it with the confirmed filesystem UUID or LABEL to avoid relying on device enumeration order.
  • Rebooting with a broken entry: run sudo mount -a and inspect the result first. Be especially careful with devices that may not always be present and verify any provider- or distribution-specific options.
  • Expecting old directory contents to remain visible: mounting covers the directory’s previous view while the filesystem is mounted there. Choose the path deliberately and account for existing files before mounting.
  • The volume is missing from lsblk: confirm attachment in the provider environment and follow its current device-discovery procedure for your distribution. Do not try random device names.

Or let it run in the cloud

If your goal is a 24/7 YouTube channel built from uploaded videos, disk administration is separate from keeping the stream online. StreamNeo is a cloud service for looping uploaded videos and playlists to YouTube: upload a recording, add your YouTube stream key, and go live. Nothing has to stay on at home; it streams the file as uploaded up to 4K 60fps at one price per slot, and it automatically recovers if YouTube drops the stream. The first day is free with no card. Monthly: $9.99 per month. See StreamNeo or start your free day.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Screening Room

Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
Windows Errors? Fix Them Before They SpreadFree repair scan

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.