1

I've the following partitions on my hard drive (copied from Gparted):

As you can see:

  • ext4 Linux HOME partition
  • THEN ==> windows (8.1) ntfs partition
  • THEN ==> 178 GB of UNUSED space (I got it by resizing from the end ntfs partition)

The problem here is that it seems I can't free space BEFORE ntfs partition to make free space to extend ext4 home partition because this would mean moving ntfs start sector, i.e. , (maybe?) corrupt Windows boot.

Any suggestion? How should I do to pass from the situation shown in the image above to ext4 partition with about 100 GB space?

  • is there any way to mount permanently one partition on boot start? – dragonmnl Mar 1 '14 at 14:31
  • 1
    Moving and resizing can be risky. In Linux you can mount any partition anywhere basically so why not investigate simply creating a partition in your unallocated space and mounting it wherever you want, for instance inside your /home dir... Take a look at your /etc/fstab file for permanent mounting assignments... – user44370 Mar 1 '14 at 14:36
  • The answer to your main question is It's impossible without removing Windows. and the answer to your comment is given by @illuminÉ. So, @illuminÉ, will you take the honor of answering the question (like: not in a comment)? – Simon Klaver Mar 2 '14 at 11:02
  • @TheJustist I hear you but this is not even 24hrs old. There is an opportunity for OP to look into it and bring his own solution as it applies to his setup. In any case you're welcome to contribute an answer! – user44370 Mar 2 '14 at 13:02
1

I cannot figure out why don't simply move the /home to the unallocated space. If you really need that partition layout just grab an spare disk to write it and move everything over it and finally clone it back overwriting your original config

Disclaimer: I cannot comment yet

  • sound a good idea. how shall I move /home to unallocated space? – dragonmnl Mar 3 '14 at 22:59
  • that's pretty easy actually, just create a new ext4 partition of the desired size with gparted and mount it to a temporary folder to let's say /newhome (you need to create it before). Then copy everything with` cp -r /home/* /newhome. When you are done change your /etc/fstab` to reflect the changes, now /home should be mapped to /dev/sda7 rather than /dev/sda6 (assuming sda7 is your new partition). To check that everything is fine check that the size of /home and /newhome is the same with du -s /home and du -s /newhome. then you should be able to remove the old partition – Jaime Agudo Mar 3 '14 at 23:06
  • Ok, I opened fstab with emacs. I have this line "UUID=794025be-c11e-4437-aecb-dec326b7ffa1 /home ext4 defaults 0 2" (not dev/sdX is written). What shall I modify? – dragonmnl Mar 4 '14 at 11:51
  • In the /etc/fstab file itself you have a reference to the blkid command which gives you a map between each /dev/sdaX and it's UUID. – Jaime Agudo Mar 4 '14 at 15:04
  • I'm consused. There is a reference to blkid command. However when I type it in terminal (either alone or followed by "/dev/sda7" string there is no output. IN fstab file each row is like "UUID=c6106669-bfaa-4485-9df8-58fea5b3e008 / ext4 errors=remount-ro 0" . What should I do exactly? – dragonmnl Mar 5 '14 at 13:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.