You are not logged in.

#1 2016-03-20 23:31:02

twenty3andaspie
Member
Registered: 2016-03-08
Posts: 12

moving /home to a new drive results in read-only / locking failed

Currently / and /home are separate partitions on a single drive:

/dev/sdb1      206293688  63933032 131858512  33% /
/dev/sdb2      274165096 202186768  58028428  78% /home

I am trying to move my /home partition onto a newly installed secondary hard drive to allow for more storage. The new drive has been partitioned (just 1 partition) and formatted with

mkfs.ext4 /dev/sda1

.

I copied the contents of the /dev/sdb2 onto /dev/sda1 booting into the terminal through the installation media. Updated fstab so that it now contains

# <file system>	<dir>	<type>	<options>	<dump>	<pass>
# /dev/sdb1
UUID=b8ba68ca-6a7e-4f40-b3f8-bc6ac5499213	/         	ext4      	rw,noatime,data=ordered,errors=remount-ro	0 1

# /dev/sdb2
#UUID=c9ea631e-20f4-4825-938c-f1aa719089a7	/home     	ext4      	rw,noatime,data=ordered,errors=remount-ro	0 2
# /dev/sda1 
UUID=d20b6eb9-185d-4245-aa8d-415429d8b4be	/home     	ext4      	rw,noatime,data=ordered,errors=remount-ro	0 2

It mounts properly at /home, and I can see all my files in the home directory, but I can't login through the graphical interface, and if I login to the terminal I get the following error:

locking failed for /home/nick/.zsh_history: permission denied:

It appears the files in /home are mounted but are read only. Please help.

Offline

#2 2016-03-21 01:29:04

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: moving /home to a new drive results in read-only / locking failed

Welcome to the forums. smile

How did you copy? What is the entry in /proc/mounts? Are the files in /home/nick owned by your user?


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2016-03-21 03:02:25

twenty3andaspie
Member
Registered: 2016-03-08
Posts: 12

Re: moving /home to a new drive results in read-only / locking failed

Thanks for the reply.  My bad, I should've figured it was a permissions issue. All I had to do was run

sudo chown -R nick:nick /home/nick

But for the record, I booted from install media and mounted the partitions manually and used 'cp -rf' on the home directory to the new disk/partition, then made the aforementioned changes in /etc/fstab.

Offline

#4 2016-03-21 06:06:47

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,475

Re: moving /home to a new drive results in read-only / locking failed

Kindly mark this thread solved, by adding [solved] in the title by editing your first post.

Offline

#5 2016-03-21 13:19:07

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: moving /home to a new drive results in read-only / locking failed

cp -a would have been better. (And even better, rsync, but that's another story for another thread.)

As Docbroke said, please mark this thread as solved. Thanks.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

Board footer

Powered by FluxBB