Re: [gentoo-user] /home on other partion move

2012-07-16 Thread Michael Mol
On Mon, Jul 16, 2012 at 11:34 AM, Silvio Siefke siefke_lis...@web.de wrote:
 Hello,

 my hdd is full and on the free partion i want make the /home partion.
 But how can make it? Copy and fstab? When i mount the partion over thunar
 i can not write as user on the partion.

 /dev/sda3 on /run/media/siefke/data type ext4 
 (rw,nosuid,nodev,uhelper=udisks2)

 Has someone a advice for me? Thank you.

Here's how I'd do it. Take a backup first! At least a couple of these
commands could result in massive data loss if you have a typo. It's
also pretty important that you be logged in as root, and that no user
whose home directory is under /home is currently logged in.

# Create your target filesystem
mkfs.ext4 $your_new_partition

# Mount your target filesystem
mount -t auto $your_new_partition /mnt/

# Copy your data to your target filesystem.
cp -a /home/* /mnt/

Verify that the data that was in /home now exists in /mnt

# Remove the data from /home/, as it will otherwise continue taking up
space on your hard disk.
rm -rf /home/*

# Unmount your target filesystem,
umount /mnt/

Modify /etc/fstab to mount $your_new_partition at /home

# Mount your new /home
mount /home

-- 
:wq



Re: [gentoo-user] /home on other partion move

2012-07-16 Thread Silvio Siefke
Hello,

all is done. Now the /home is in other Partion. Sometimes make self trouble
where is no trouble. 


Thanks at all.

Regards
Silvio



Re: [gentoo-user] /home on other partion move

2012-07-16 Thread Volker Armin Hemmann
Am Montag, 16. Juli 2012, 19:20:55 schrieb Silvio Siefke:
 Hello,
 
 all is done. Now the /home is in other Partion. Sometimes make self trouble
 where is no trouble.
 
 
 Thanks at all.
 
 Regards
 Silvio

could have been so simple... just create partition, mount somewhere, cp -a, 
clean /home, mount, fstab:
UUID=BLABLUB  /home/ ext4noatime,discard 0 0

done.
So easy that I can't even remember anything even easier. Maybe putting /tmp on 
tmpfs... hm...


-- 
#163933