You are not logged in.

#1 2012-09-10 17:55:17

rvc
Member
From: India
Registered: 2012-09-09
Posts: 42
Website

shifting of home directory possible ?

i went through a lot of reading before i ventured into installation of arch. i installed from the august release and have successfully upgraded to current september 7 release.


mistakes i commited....
i wanted to install home on a seperate partition and i had mounted so in usb as instructed. but some how my home directory is residing in the same root partition and the /dev/sda7 which i allocated for /home is empty. further more, i am unable to access that partition from my home as it say i dont have permissions....

how to make the partition accessible. and is it possible to shift the home directory from current / partition to /home ? [ in my case it is /dev/sda5 for / and /dev/sda7 for home.

finally, i wish to access the widnows partition in read/write mode. i am able to just open files as read only and i cant save any file there. the other ntfs partion which is empty is also not accesible from arch. how to make that accesible ? both in read/write modes.


Associated with
VEDGOO.COM
For Wallpapers, Articles, Blogs, Media and much more...
To Browse Arch Specific Wallpapers, feel free to follow this LINK

Offline

#2 2012-09-10 18:15:56

bws
Member
Registered: 2011-12-05
Posts: 33

Re: shifting of home directory possible ?

Have a look at your /etc/fstab file and follow the example listed here https://wiki.archlinux.org/index.php/Fstab.  If I'm undstanding you correctly, you have a seperate partition set up and I'm assuming formatted for /home already, but it's just not configured/mounting correctly.  That link should hlelp.

As far as the windows partition, you could try chaning permissions while logged in as root to allow your everyday username read/write capabilities, but I don't run a dual boot set up and don't know how this would impact the windows side of things.  I've tried dual botting in the past numerous times and they've all ended in lots of headaches.

Last edited by bws (2012-09-10 18:16:21)


All the best people in life seem to like Linux.
  ~ Steve Wozniak

Offline

#3 2012-09-10 23:29:02

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,958

Re: shifting of home directory possible ?

The kernel only has read-only support for NTFS, for read/write support you need to install ntfs-3g .

You'll likely want to add both ntfs partitions in fstab.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#4 2012-09-11 00:22:16

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,136

Re: shifting of home directory possible ?

If you *just* edit fstab, your current home directory will be masked by the home partition when you reboot.

One easy way to avoid this would be:
1) edit fstab appropriately
2) boot the live install media
3) mount / and /home but mount home somewhere different. For example:

mkdir /mnt/root
mount /dev/sdaX /mnt/root
mkdir /mnt/home
mount /dev/sdaY /mnt/home

4) move /mnt/root/home/<username> to /mnt/home/<username>
5) reboot

That way, the ownership and permissions on your home directory will just be moved along with the directory itself and you shouldn't find anything mysteriously disappearing.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#5 2012-09-11 03:23:24

rvc
Member
From: India
Registered: 2012-09-09
Posts: 42
Website

Re: shifting of home directory possible ?

cfr wrote:

If you *just* edit fstab, your current home directory will be masked by the home partition when you reboot.

One easy way to avoid this would be:
1) edit fstab appropriately
2) boot the live install media
3) mount / and /home but mount home somewhere different. For example:

mkdir /mnt/root
mount /dev/sdaX /mnt/root
mkdir /mnt/home
mount /dev/sdaY /mnt/home

4) move /mnt/root/home/<username> to /mnt/home/<username>
5) reboot

That way, the ownership and permissions on your home directory will just be moved along with the directory itself and you shouldn't find anything mysteriously disappearing.


followed the rules and edited the fstab successfully.... i rebooted and i am able to even access the ntfs partition, thanks to ntfs-3g.

observations:
i find /home in root file system as well as the newly shifted partition for /home (sda7)
i could also boot easily without any problem
i find that the user exists in both places and the file manager dolphin shows the default first left pane content as Home (which i presume is the root file system /home/USER) i click on the partition 24 GB filesystem (/dev/sda7) and that also shows my user folder.

to double check on whats happening, i created a dummy-test file using nano and saved it to my home directory. then i opened the Home as well as 24 gb filesystem home. both folders contained the test file !

it sort of created mirror? is it ok if i delete the /home foler from the root file system ?
i wanted a seperate home partition but dont think i need a mirror !

CORRECTIONS:
i noticed its not a mirror, double checked with right clicking and checking out with properties and amount of space available / used. it will be less confusing if these 2 lists (24 gb and 29 gb is not displayed in the bottom part of the left pane in dolphin !

Last edited by rvc (2012-09-11 03:39:01)


Associated with
VEDGOO.COM
For Wallpapers, Articles, Blogs, Media and much more...
To Browse Arch Specific Wallpapers, feel free to follow this LINK

Offline

Board footer

Powered by FluxBB