You are not logged in.
Pages: 1
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
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
Ok, Sounds great.but please help me out with the entry in fstab
/dev/sda5 /home ext3 defaults 0 1
is this correct?
Offline
You might want to look at the fstab page in the wiki; particularly the example section:
Offline
Pages: 1