• Linux
  • FreeBSD
  • Networking
  • Python
  • AWS
  • WebDev
  • About Us
Tech Tips and Tutorials
Menu
  • Linux
  • FreeBSD
  • Networking
  • Python
  • AWS
  • WebDev
  • About Us
Home  /  FreeBSD  /  How to list and mount an external USB disk in FreeBSD

How to list and mount an external USB disk in FreeBSD

Written by
FreeBSD Leave a Comment

Once the USB disk is connected , you can run the geom command to list all the available disk.

geom disk list

In my case ada0 is my internal ssd , da0 is a card reader and da1 is the external USB disk .

If you want to see more details about the disks including its sub partitions , filesystems etc , you can run the gpart show command .

gpart show

Here , you can see the sub partitions and the types of file systems . The da1 has FreeBSD based files , so you can see the freebsd-ufs . If you are using ntfs based disks, you need to mount it using the ntfs commands

Now, to list all the subdisks associated with the main da1 disk , run the following command :

 ls /dev/da1*

Now you need to find the correct partition/slice to mount , here its /dev/da1s2a .Create a mount point directory /data

mkdir /data 

Now the command to mount is :

mount /dev/da1s2a /data/

Its mounted and you can navigate to that mount point directory , cd /data and if you do a ‘ls’ you will be able to see the contents .

If you want to unmount , first you need to navigate out of the mount point directory /data and run the command

umount /data/

Share On
Share on Facebook
Share on Twitter
Share on Google+
Share on Whatsapp

 Previous Article Nagios showing different outputs while running plugins locally and from remote server
Next Article   How to increase the disk size in FreeBSD

Related Posts

  • How to run tcpdump as a process for pcap capture in FreeBSD

  • How to increase the disk size in FreeBSD

  • How to install and connect OpenVPN client in FreeBSD

Leave a Reply

Cancel reply

  • Popular Posts
  • Recent Posts
  • Linux Shell Scripts for System Administrators
  • Cacti 1.1.38 ERROR Opening .rrd No Such file or directory
  • Apache configuration for Cacti
  • How to create RAM disk in Ubuntu 18.04
  • Linux Shell Scripts for System Administrators
  • SOCKS PROXY
  • How to install XAMPP and access phpMyAdmin in MAC OS
  • How to increase the root volume in a Linux ec2 instance

Linux

  • Linux Shell Scripts for System Administrators
  • SOCKS PROXY
  • How to grep IP addresses from log files in Linux
  • How to empty or delete a large file in Linux

Categories

  • AWS (5)
  • FreeBSD (12)
  • Linux (29)
  • Networking (3)
  • Python (5)
  • Uncategorized (4)
  • WebDev (1)
  • Connect on Facebook
  • Connect on YouTube
© Copyright 2020.TechieNix. All Rights Reserved.
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.

Non-necessary

Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.