Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-14-2004, 04:17 AM   #1
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Rep: Reputation: 30
Question Moving linux partition

Just wondering, if I delete an old ext3 partition ( kept from an old install (dont ask why)), resize my fat partition and move my current ext3 and swap partitions with partition magic ( God forbid, its a windows program, but its just too handy and easy to use ), will grub be able to find my linux partitons. Common sense tells me it probably wont, but I thought I would just ask to see if anyone actually knows if it will work. I really would like to move these partions about, but I dont want to make my system unbootable either.
Old 10-14-2004, 04:36 AM   #2
LQ Guru
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677Reputation: 677
If grub can't load in linux, you can press 'e' for edit and edit the locations for vmlinuz and initrd. Then you press the 'b' key to boot up with
your revised settings. After you are in linux, make the corrections you need.

I resized my SuSE partition to make room to install Mandrake. I wanted to test out these two for the AMD64 platform. I had made a mistake adding the Mandrake settings, but was able to enter the changes and boot into Mandrake Linux.
Old 10-14-2004, 05:00 AM   #3
Registered: Jun 2004
Location: Belgium
Posts: 49

Rep: Reputation: 15
Actually it depends on the situation.

The stage1 which is installed on your MBR is looking for either a stage 1.5 or a stage2 (the latter when no stage1.5 has been installed). stage1 looks for this file based on CHS or LBA values, so when it is moved, grub won't work. So when you move partitions, you cannot move the partition where stage1.5 has been installed. If you do this, you can move stage2, as long as the partition doesn't get a new name (e.g. changes from (hd1,2) to (hd1,3)). Similarly, you may have to change menu.lst to indicate the new location of vmlinuz.

conclusion, it may work, but only within limited conditions.
Old 10-14-2004, 06:00 AM   #4
Registered: May 2004
Location: Aust.
Distribution: Debian
Posts: 424

Original Poster
Rep: Reputation: 30
Yep, I was thinking that since the partition was moved, grub would be looking for it in the old spot. And of course it wouldnt be there. This sounds pretty hard to do, like telling grub which block of the hard drive to look at, and firstly I would have to find out where it should look. I think maybe this one can go into the too-hard basket. ( unless of course someone knows how to make it almost not impossible )
Old 10-14-2004, 07:06 AM   #5
Senior Member
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,991

Rep: Reputation: 76
You don't need to tell grub which sector of the hard drive; you only need to tell it which partition, and it will work the rest out.

Tip: Make a rescue disk first. If you can boot your system then you can use your system's configuration tools to restore the bootloader.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Moving linux partition from original hard drive to another, howto??? Fear58 Linux - General 22 02-15-2008 05:26 PM
moving files from windows partition to linux partition M O L8ingN2dust Linux - Newbie 11 01-08-2006 10:11 PM
Moving from extended partition to primary partition joelbudgor Linux - General 5 05-26-2004 07:08 PM
moving a partition to another that's in use emetib Linux - General 2 11-08-2003 05:56 PM
moving / from one partition to another chilly_willy2 Linux - Software 1 11-04-2003 06:38 AM > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:32 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration