You are not logged in.

#1 2009-09-23 10:00:17

cool
Member
Registered: 2008-09-12
Posts: 111
Website

Move /home to seprate partition

Hi,
Currently / and /home are currently mount on same partition /dev/sda2. now I want to move /home to /dev/sda5 and keep / at /dev/sda2

Tell me how to do this?














$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320071851520 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x087f1d56

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        6225    50002281    7  HPFS/NTFS
/dev/sda2            6226        8092    14996677+  83  Linux
/dev/sda3            8093        8216      996030   82  Linux swap / Solaris
/dev/sda4            8217       38913   246573652+   5  Extended
/dev/sda5            8217       38913   246573621   83  Linux

$ cat /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

/dev/sda2 / ext3 defaults 0 1
/dev/sda3 swap swap defaults 0 0

Offline

#2 2009-09-23 10:11:43

iarwain ben-adar
Member
Registered: 2006-12-15
Posts: 18

Re: Move /home to seprate partition

I would just mount the sda5 somewhere, copy all your /home stuff over, edit fstab so your /home is on /dev/sda5 and reboot ;D

Offline

#3 2009-09-23 10:14:50

cool
Member
Registered: 2008-09-12
Posts: 111
Website

Re: Move /home to seprate partition

Ok, Sounds great.but please help me out with the entry in fstab

/dev/sda5 /home ext3 defaults 0 1

is this correct?

Offline

#4 2009-09-23 10:19:59

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

Re: Move /home to seprate partition

You might want to look at the fstab page in the wiki; particularly the example section:

http://wiki.archlinux.org/index.php/Fst … tc.2Ffstab


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB