You are not logged in.

#1 2016-11-19 21:19:07

abasel
Member
Registered: 2015-04-29
Posts: 45

[RESOLVED] Issues mounting 2nd Disk

I am working on my first install of Arch Linux. So far I have Gnome installed.

I am wanting to install a 2nd drive and have all user data stored there.

I have created a directory call /mnt/home to mount this drive to.

My fstab looks as follows.

# /etc/fstab: static file system information
#
# <file system>    <dir>    <type>    <options>    <dump>    <pass>
# /dev/sda3
UUID=26451d63-7980-47ca-90ba-eaae82004981    /             ext4          rw,relatime,data=ordered    0 1

# /dev/sda1
UUID=BBBD-EB27          /boot         vfat          rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro    0 2

# /dev/sda2
UUID=81e88961-02e7-4e4d-b201-374070a5521a    none          swap          defaults      0 0

# /dev/sdb1
UUID=f1b3d97c-73b5-4fa1-885d-9edbc1ac13c5       /mnt/home       ext4 defaults 0 1

When UUID=f1b3d97c-73b5-4fa1-885d-9edbc1ac13c5       /mnt/home       ext4 defaults 0 1 is not included, I can see the drive in the file manager. When it is included, it disappears and the avaiable space matches up wth sdb3.

In short this does not appear to be working.

Everything is done as root.

Last edited by abasel (2016-11-20 02:38:23)

Offline

#2 2016-11-19 21:30:05

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [RESOLVED] Issues mounting 2nd Disk

abasel wrote:

In short this does not appear to be working.

What evidence have you?

What is the output of mount

?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#3 2016-11-19 21:40:56

onslow77
Member
Registered: 2014-09-21
Posts: 283

Re: [RESOLVED] Issues mounting 2nd Disk

Hello!

I suggest you follow the Fstab wiki before you add any DE (Gnome for example). That way it will be easier for you to find the root cause of the issue.

Also, your "home" should be under "/home" not "/mnt/home". You use "/mnt" when you mount for example an usbstick.

Regards
Martin

Offline

#4 2016-11-19 21:44:07

abasel
Member
Registered: 2015-04-29
Posts: 45

Re: [RESOLVED] Issues mounting 2nd Disk

Hi, thanks for your replies. Ok so it is actually mounting correctly. I just assumed that it wasn't beacuse the file manager said there was only 114GB available where is the 2nd mount disk is a TB. I will change the mount point to /home

Offline

#5 2016-11-19 21:46:47

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [RESOLVED] Issues mounting 2nd Disk

abasel wrote:

I will change the mount point to /home

Only do that if you want the second disk to mount over your current /home. Otherwise, you can continue to mount it in /mnt, but it would probably be wiser to give it a different mountpoint, to avoid confusion: like /mnt/data.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2016-11-19 21:54:21

onslow77
Member
Registered: 2014-09-21
Posts: 283

Re: [RESOLVED] Issues mounting 2nd Disk

abasel wrote:

...I will change the mount point to /home...

Please, also follow the "Fstab wiki" I linked to in my first post to get for example correct "performance options" for your disk!

jasonwryan wrote:

Only do that if you want the second disk to mount over your current /home. Otherwise, you can continue to mount it in /mnt, but it would probably be wiser to give it a different mountpoint, to avoid confusion: like /mnt/data.

True about mounting over current "/home". Mounting non-temporary disks in "/mnt" is however not considered standard, see this! 

Regards
Martin

Last edited by onslow77 (2016-11-19 22:32:51)

Offline

#7 2016-11-19 22:37:22

abasel
Member
Registered: 2015-04-29
Posts: 45

Re: [RESOLVED] Issues mounting 2nd Disk

Ok so I have added the following options as per the wiki

# /dev/sdb1
UUID=f1b3d97c-73b5-4fa1-885d-9edbc1ac13c5       /home       ext4          noauto,x-systemd.automount,rw,relatime,data=ordered            0 1

As an aside, how do I see how much space I have available. Browing using the Gnome file manager only shows me the space on sda3 and not the mounted sdb1.

Last edited by abasel (2016-11-19 22:38:29)

Offline

#8 2016-11-19 22:47:54

onslow77
Member
Registered: 2014-09-21
Posts: 283

Re: [RESOLVED] Issues mounting 2nd Disk

abasel wrote:

As an aside, how do I see how much space I have available. Browing using the Gnome file manager only shows me the space on sda3 and not the mounted sdb1.

From the command line you can use "df", use "man df" to learn how to use it. Here is an example to get a human-readable output:

df -h

In Gnome, I have no clue, check the Gnome wiki.

Regards
Martin

Last edited by onslow77 (2016-11-19 22:50:59)

Offline

Board footer

Powered by FluxBB