Jump to content
  • Announcements

    • spinynorman

      Mandriva Official Documentation

      Official documentation for extant versions of Mandriva can be found at doc.mandriva.com.   Documentation for the latest release may take some time to appear there. You can install all the manuals from the main repository if you have Mandriva installed - files are prefixed mandriva-doc.
    • paul

      Forum software upgrade   10/29/17

      So you may have noticed the forum software has upgraded !!!
      A few things that have changed. We no longer have community blogs (was never really used) We no longer have a portal page.
      We can discuss this, and decide whether it is needed (It costs money) See this thread: Here
boatman9

Will moving Linux partition cause problem booting?

Recommended Posts

This computer is using Mandriva's standard grub boot manager, dual booting Windows XP and Mandriva 2010.1. I would like to delete the second NTFS partition and expand the Linux partition to include the newly freed space.

 

I can backup the files from the Linux partition using rsync, then delete and recreate that partition as sda2, format it ext4 and restore the files.

 

What should be done to make sure the computer will still boot after the change? Is there an easier way to do the job?

 

 

Output from fdisk -l

Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xef06ef06

  Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2431    19526976    7  HPFS/NTFS
/dev/sda2            2432        4863    19535040    7  HPFS/NTFS
/dev/sda3            4864        9350    36041827+  83  Linux
/dev/sda4            9351        9726     3020220   82  Linux swap / Solaris

 

 

[moved from Installing Mandriva by spinynorman]

Share this post


Link to post
Share on other sites

If it were me I would take the easy option and mount the second partition as /home.

Currently you do not have a separate /home partition. A separate partition is handy if you decide to reinstall Linux.

 

Mandriva Control Centre can do all the heavy lifting for you.

First you have to log on as root user because you cannot reassign your /home while logged on as a regular user. Mandriva makes logging on as root hard work. A simple way of doing it is Ctl+Alt+F1 to get a console, log in as root user, then

service dm stop
startx

You will then have a red desktop running as root.

Now in Mandriva ControlCentre>LocalDiscs>ManagePartitions>ToggleToExpert

Select the partition and format it as ext3/4 or whatever you want, then select the mount point to be /home

A pop up will appear saying that the /home folder is not empty and would you like to transfer the files to the new partition. Say 'Yes', and the job is done.

 

The space vacated on the original Linux partition can now be used for more programme files.

 

Log out and at the text prompt enter

service dm start

and you will back in your graphical environment with your new partition in use.

Easy... But as always backup all critical data before taking advice from strangers on the internet.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×