Skip to content

u/dear_dev1l

In this archive from Mar 2016 to Jun 2016

0
posts
17
comments
0
media
29
score

Top comments

For a temporary mount (since you don't add the mount to fstab it won't be there if you reboot)

Mount the drive by typing:

mount /dev/sda1 /mnt/xyx

For a permanent mount

Step 1 - Find the unique identifier of the partition in the output of the blkid command

sudo blkid

Copy the part 'UUID="......"' of the line that starts with /dev/sda1 to the clipboard. You will use it in your /etc/fstab.

Step 2 - Open the file /etc/fstab as root for editing with the command:

sudo nano /etc/fstab

You can use any editor here, I use nano. Other alternatives are vi or gedit

Append a new line for your sda1 partition, which looks like

UUID="....."  /mnt/xyx ext4   defaults   0   2

Paste the 'UUID=..' part from the clipboard: this is specific for your partition.

OBS!!! Make sure you have the right format when adding line to fstab (ext2/ext3/ext4/ntfs etc)

This is it. Mount the drive and check if all is OK with the command:

sudo mount -a

The -a parameter means all drives mentioned in fstab will be mounted.

There should be no output. If you made a mistake, an error message will appear.

If indeed there is no output, all is well and the data on the partition will be accessible when you navigate to /mnt/xyx.

[Source: http://ubuntuforums.org/showthread.php?t=1683098 - Post #3 by vanadium]

2 points

Subreddits

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.