I want to install windows7 with my current system ubuntu,and the first step I should do is to allocate a partition for win7.So I decided to narrow my /home patition.Therefore,I execute the following command line
umount /home
e2fsck -f /dev/sda3
resize2fs -p /dev/sda3 150G
mount /dev/sda3 /home
It worked. And then I viewed the information by df -lh
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 8.0K 1.9G 1% /dev
tmpfs 384M 1.3M 383M 1% /run
/dev/sda1 23G 12G 11G 53% /
none 4.0K 0 4.0K 0% /sys/fs/cgroup
none 5.0M 0 5.0M 0% /run/lock
none 1.9G 164K 1.9G 1% /run/shm
none 100M 52K 100M 1% /run/user
/dev/sda3 148G 87G 54G 62% /home
But I don't know how to do next.How can I make use of the free space?
sudo fdisk -l
and/or a GParted screenshot.resize2fs
only resizes the filesystem and not the partition. Why not just use GParted?sudo apt-get install grub
,it showsgrub : Conflicts: grub-efi-amd64 Conflicts: grub-efi-amd64:i386
.How should I do to solve the problem.