Author Topic: Changes to Dual Boot System (Closed)  (Read 5043 times)

0 Members and 1 Guest are viewing this topic.

Offline Degsy

  • Sr. Member
  • ****
  • Posts: 355
  • Karma: 3
  • Gender: Male
  • I am getting there, but it is very slow going!
    • View Profile
    • Awards
Changes to Dual Boot System (Closed)
« on: December 26, 2013, 12:26:20 pm »
Hi Guys,
Some time ago with a great deal of help from Mark I managed to set up a dual boot system on my ageing Dell Inspiron 1540 Laptop, I would now like to increase the amount of disk space that is available to Peppermint4. The system is Peppermint 4 (64 bit) dual booted with XP. The laptop has a 120GB hard drive but only 7GB is devoted to Peppermint. Can I fairly simply change the amount available? The remaining 113 GB has some 50GB unused.
Sorry if this is rambling and unclear but your help/advice would be appreciated.

Hope this output helps:
[email protected] ~ $ sudo fdisk -l
[sudo] password for derek:

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders, total 234441648 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xe686f016

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *      176715   220492124   110157705    7  HPFS/NTFS/exFAT
/dev/sda2       220493822   234440703     6973441    5  Extended
/dev/sda5       220493824   231315455     5410816   83  Linux
/dev/sda6       231317504   234440703     1561600   82  Linux swap / Solaris
[email protected] ~ $
« Last Edit: January 27, 2014, 01:30:08 pm by Degsy »

Emegra

  • Guest
Re: Changes to Dual Boot System
« Reply #1 on: December 26, 2013, 12:44:24 pm »
Derek

Yes you can resize your partitions using gparted but you would need to boot into a live CD

It wouldn't do any harm to backup any important data on both the Windows & Linux installations first and I believe you should defragment the Windows partition as well before proceding



Good luck




Graeme
« Last Edit: December 26, 2013, 12:46:17 pm by Emegra »

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1835
  • Karma: 142
  • Gender: Male
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #2 on: December 26, 2013, 12:56:00 pm »
I take it that you want to keep XP and dual boot?
If so then I would approach it like this:
1)   Boot to XP and run defrag
2)   Then boot to a LiveCD and fire up Gparted
3)   Shrink the /dev/sda1 ( XP partition) to suit the ammount you want to donate to PM
4)   Move up extended partition /dev/sda2 to take up the slack and expand it to the end of the drive
5)   Move /dev/sda6 to the end (within the extended partition)
6)   Expand /dev/sda5 to fill the gap
7)   Reinstall grub to /dev/sda from the Live enviroment
8 )   Reboot to your new layout

As Emegra said backup, backup and backup again before any partition manipulating
« Last Edit: January 08, 2014, 06:37:46 pm by SeZo »

Offline Degsy

  • Sr. Member
  • ****
  • Posts: 355
  • Karma: 3
  • Gender: Male
  • I am getting there, but it is very slow going!
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #3 on: December 26, 2013, 01:31:26 pm »
Thanks, Graeme and Sezo for your advice, will work my through it, I do have everything backed up anyway, but will double check. It would not be a total disaster if I do cock up and lose XP as I have only booted it about twice since installing Peppermint, would just prefer to still have it there just in case there is something obscure I might need it for before the support ends. Will get back to you if I need further advice,
Thanks,
Degsy

P.s. May take a while for me to get through your advice so bear with me.

Offline Degsy

  • Sr. Member
  • ****
  • Posts: 355
  • Karma: 3
  • Gender: Male
  • I am getting there, but it is very slow going!
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #4 on: January 08, 2014, 02:07:02 pm »
Hi Guys, sorry this has taken so long but in your advice (Sezo) you say to "reinstall grub" how do I do that please? Hope that is not a dumb question.

TIA, Degsy

Offline chemicalfan

  • Hero Member
  • *****
  • Posts: 1166
  • Karma: 36
  • Gender: Male
  • I've been here a little while!
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #5 on: January 08, 2014, 04:04:05 pm »
Not sure you'd need to, is the system booting normally?
There's information here - https://help.ubuntu.com/community/Grub2/Installing#via_Boot-Repair_Graphical_Tool-1 - in case your system isn't booting (post back here first!)

Offline Degsy

  • Sr. Member
  • ****
  • Posts: 355
  • Karma: 3
  • Gender: Male
  • I am getting there, but it is very slow going!
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #6 on: January 08, 2014, 04:08:37 pm »
Haven't actually done the repartitioning yet, just reading through the instructions and came across the grub comment, so thought I would ask about it before I got to the situation of not knowing what to do, sorry but I am not a techie.

Offline SeZo

  • Hero Member
  • *****
  • Posts: 1835
  • Karma: 142
  • Gender: Male
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #7 on: January 08, 2014, 06:33:15 pm »
Quote
Hi Guys, sorry this has taken so long but in your advice (Sezo) you say to "reinstall grub" how do I do that please? Hope that is not a dumb question.

Assuming you are in the live enviroment:
Run these commands in sequence:
Code: [Select]
sudo mount /dev/sda5 /mnt
then:
Code: [Select]
for i in /dev /dev/pts /proc /sys /run; do sudo mount -B $i /mnt$i; done
then:
Code: [Select]
sudo chroot /mnt
then:
Code: [Select]
grub-install --recheck /dev/sda
then:
Code: [Select]
update-grub
Then hit Ctrl+D to exit the chroot environment
Reboot
« Last Edit: January 08, 2014, 06:37:00 pm by SeZo »

Offline Degsy

  • Sr. Member
  • ****
  • Posts: 355
  • Karma: 3
  • Gender: Male
  • I am getting there, but it is very slow going!
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #8 on: January 08, 2014, 08:40:29 pm »
Thank you very much Sezo, will work through your process in the next day or so.

Many thanks,
Degsy.

Offline Degsy

  • Sr. Member
  • ****
  • Posts: 355
  • Karma: 3
  • Gender: Male
  • I am getting there, but it is very slow going!
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #9 on: January 24, 2014, 04:58:00 pm »
Hi Guys,
Finally got around to trying out your suggestions as above but am having problems.
Used a live Peppermint 4 CD to boot up and fired up GParted from it, no problem.
Resized /sda1 from 105.05 GiB to 59.51, no problem.
Tried to move /sda2 to left and grow into space and I continually get an error message saying "not allowed overlapping partitions". Can someone please explain whatever it might be that I am stupidly doing wrongly?

Many thanks in anticipation of your help in this matter.


Regards, Degsy

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #10 on: January 24, 2014, 06:30:56 pm »
Dont try to MOVE the extended partition sda2 to the left .. EXPAND (grow) it to the left, so it fills the space between it and sda1

now for the 2 partitions inside the extended partition -

make sure sda6 (swap) is all the way to the right.

Then expand sda5 to fill the empty space inside the extended partition.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Degsy

  • Sr. Member
  • ****
  • Posts: 355
  • Karma: 3
  • Gender: Male
  • I am getting there, but it is very slow going!
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #11 on: January 24, 2014, 07:07:52 pm »
Ok, thanks Mark, started again, no problem shrinking /sda1, then tried expanding /sda2to the left using the double headed arrows, but almost immediately got the error message, "unable to satisfy all constraints on the partition. Can't have overlapping partitions.
Your further thoughts would be appreciated.

Degsy

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #12 on: January 24, 2014, 07:15:17 pm »
Try shrinking sda1 from the right towards the left .. then apply just that operation.

once that's done .. try expanding sda2 into the free space.
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

Offline Degsy

  • Sr. Member
  • ****
  • Posts: 355
  • Karma: 3
  • Gender: Male
  • I am getting there, but it is very slow going!
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #13 on: January 24, 2014, 07:35:00 pm »
Mark, on shrinking from the right the following warning was given: Moving a partition might cause your operating system to fail to boot. You have queued an operation to move the start sector of the partition /dev/sda1 Failure to boot is most likely to occur if you move the GNU/Linux partition containing /boot or if you move the Windows system partition C:"
Comments please.

Offline Mark Greaves (PCNetSpec)

  • Hero Member
  • *****
  • Posts: 18277
  • Karma: 479
  • Gender: Male
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • Awards
Re: Changes to Dual Boot System
« Reply #14 on: January 24, 2014, 07:40:50 pm »
Are you saying it's giving that warning when SHRINKING the sda1 partition away from sda2 towards the beginning of the drive. ?
WARNING: You are logged into reality as 'root'
logging in as 'insane' is the only safe option.
pcnetspec.co.uk

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal