altonbr
April 25th, 2009, 11:12 PM
When reinstalling Ubuntu, I forgot to mount my existing /home drive.
Right now, this is my fdisk:
$ sudo fdisk -l
Disk /dev/sda: 30.8 GB, 30816608256 bytes
255 heads, 63 sectors/track, 3746 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x80d78fd6
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1216 9767488+ 83 Linux
/dev/sda2 1217 3746 20322225 5 Extended
/dev/sda5 1217 3648 19535008+ 83 Linux
/dev/sda6 3649 3746 787153+ 82 Linux swap / Solaris
So my question is, how can I destroy my existing /home directory and mount it with /dev/sda5
I'm pretty good with coding and Bash but have never really worked with fstab.
Thanks!
Right now, this is my fdisk:
$ sudo fdisk -l
Disk /dev/sda: 30.8 GB, 30816608256 bytes
255 heads, 63 sectors/track, 3746 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x80d78fd6
Device Boot Start End Blocks Id System
/dev/sda1 * 1 1216 9767488+ 83 Linux
/dev/sda2 1217 3746 20322225 5 Extended
/dev/sda5 1217 3648 19535008+ 83 Linux
/dev/sda6 3649 3746 787153+ 82 Linux swap / Solaris
So my question is, how can I destroy my existing /home directory and mount it with /dev/sda5
I'm pretty good with coding and Bash but have never really worked with fstab.
Thanks!