It,s as the title says, I have installed open suse 11.2 then ubuntu all went ok but when I loaded open suse I gave it 40gig which is not a prob but I wanted 20 gig file system 20gig home seperate, Ok so now I have split the partion 20 20 but now i need to make the 2nd 20 gig the home folder is there a way of doing this I split it using Gparted format ext4
On 03/28/2010 02:56 PM, spiky001 wrote:
>
> It,s as the title says, I have installed open suse 11.2 then ubuntu all
> went ok but when I loaded open suse I gave it 40gig which is not a prob
> but I wanted 20 gig file system 20gig home seperate, Ok so now I have
> split the partion 20 20 but now i need to make the 2nd 20 gig the home
> folder is there a way of doing this I split it using Gparted format ext4
Your /etc/fstab needs a line something like
/dev/disk/by-id/ata-TOSHIBA_MK2546GSX_18C2P0KCT-part7 /home ext3
acl,user_xattr 1 2
BTW, that is the one from my system and will not work as it is.
Please post the output of
cat /etc/fstab
sudo /sbin/fdisk -l
Did you erase the original data from /home, or is it still on the / partition?
this is the etc/fstab
/dev/disk/by-id/ata-FUJITSU_MHV2100AH_NS51T5C27N8P-part6 swap swap defaults 0 0
/dev/disk/by-id/ata-FUJITSU_MHV2100AH_NS51T5C27N8P-part5 / ext4 acl,user_xattr 1 1
/dev/disk/by-id/ata-FUJITSU_MHV2100AH_NS51T5C27N8P-part1 /windows/C
fdisk -l
Device Boot Start End Blocks Id System
/dev/sda1 1 1785 14337981 7 HPFS/NTFS
/dev/sda2 * 1786 12161 83345220 f W95 Ext'd (LBA)
/dev/sda5 1786 4335 20482843+ 83 Linux
/dev/sda6 6885 7075 1534176 82 Linux swap / Solaris
**/dev/sda7 7076 9625 20482843+ 83 Linux**
/dev/sda8 4336 6884 20474811 83 Linux
/dev/sda9 9626 12161 20370388+ 83 Linux
SDA7 is the new partion I need as home
No I haven’t deleted anything yet just split partion then formatted new partion****
On 03/28/2010 04:16 PM, spiky001 wrote:
>
> this is the etc/fstab
>
>
>
> Code:
> --------------------
> /dev/disk/by-id/ata-FUJITSU_MHV2100AH_NS51T5C27N8P-part6 swap swap defaults 0 0
> /dev/disk/by-id/ata-FUJITSU_MHV2100AH_NS51T5C27N8P-part5 / ext4 acl,user_xattr 1 1
> /dev/disk/by-id/ata-FUJITSU_MHV2100AH_NS51T5C27N8P-part1 /windows/C
> --------------------
>
>
> fdisk -l
>
>
> Code:
> --------------------
> Device Boot Start End Blocks Id System
> /dev/sda1 1 1785 14337981 7 HPFS/NTFS
> /dev/sda2 * 1786 12161 83345220 f W95 Ext’d (LBA)
> /dev/sda5 1786 4335 20482843+ 83 Linux
> /dev/sda6 6885 7075 1534176 82 Linux swap / Solaris
> /DEV/SDA7 7076 9625 20482843+ 83 LINUX
> /dev/sda8 4336 6884 20474811 83 Linux
> /dev/sda9 9626 12161 20370388+ 83 Linux
>
> --------------------
>
>
> SDA7 is the new partion I need as home
>
> No I haven’t deleted anything yet just split partion then formatted new
> partion**
OK. Your first step is to mount the new partition and then copy the data onto
it. Do these as root:
mount /dev/sda7 /mnt
cp -a /home /mnt
Change -a to -av if you want to see the file names as they are transferred.
Once the transfer is done, add the line below to fstab:
/dev/disk/by-id/ata-FUJITSU_MHV2100AH_NS51T5C27N8P-part7 /home ext4 acl,
user_xattr 1 2
That should all be on 1 line. After you reboot, your /home will be mounted on
the new partition. Now, rename the old /home and create a new directory for it:
mv /home /oldhome
mkdir /home
Now reboot. If the new home works OK, you can then delete /oldhome and all its
directories/files to get that space back.
You probably want that line to be
cp -a /home/* /mnt
otherwise you get a home in /home later.