Skip to main content

Mounting Drives In Linux

In this post, we will look at different mounting options.

Mounting external drives in read-write mode
[pre class="brush:bash"]
# source: http://www.cyberciti.biz/datacenter/linux-unix-bsd-osx-cannot-write-to-hard-disk/
mount -o remount,rw /media/"disk_name" #replace disk name with the drive name
[/pre]
Mount a drive in Ubuntu Mate
[pre class="brush:bash"]
# if the disk is formatted in NTFS, then list the disk with NTFS
#format using the following command
fdisk -l | grep NTFS
# to mount
sudo mount -t ntfs-3g /dev/NTFS_PARTITION /mount/DIRECTORY
# NTFS_PARTITION is the partition of the drive you want to mount not the device
# DIRECTORY is the the location where you want to mount
[/pre]
Rename USB drive in Ubuntu (source)
[pre class="brush:bash"]
# Firstly unmount the device
sudo unmount /dev/sdb1
sudo ntfslabel /dev/sdb1 my_external
# Now remove the device and put back again and mount it.
[/pre]
Unmount a busy drive
[pre class="brush:bash"]
sudo umount -l /PATH/OF/BUSY-DEVICE
[/pre]
List block devices
[pre class="brush:bash"]
lsblk
#with some additional parameters
sudo lsblk --output NAME,FSTYPE,LABEL,UUID,MODE
[/pre]

[pre class="brush:bash"]
[/pre]

Comments

Popular posts from this blog

Advantages and Disadvantages of Electro-oculography (EOG)

In the previous post we looked at what is EOG? In this post we will look at the advantages and disadvantages of EOG.

How to Convert Excel Charts into High Resolution Images

Microsoft Excel is widely used to generate graphs and to analyse data due to its simple graphical user interface. Have you ever tried to convert the charts into images? If yes, you might have used "Print Screen" feature to easily convert the charts into images. However most of the scientific journals require the images in high resolution TIFF format. So in this post we will look at how to convert Microsoft Excel Charts/Graphs easily into high resolution images.

Online Radio Stations

Some of the popular Tamil radio stations are listed here. You can listen to those radios here.