LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 10-14-2004, 03:17 AM   #1
short101
Member
 
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, 03:36 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 04:00 AM   #3
javeree
Member
 
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, 05:00 AM   #4
short101
Member
 
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, 06:06 AM   #5
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,994

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.
 
  


Reply


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 04:26 PM
moving files from windows partition to linux partition M O L8ingN2dust Linux - Newbie 11 01-08-2006 09:11 PM
Moving from extended partition to primary partition joelbudgor Linux - General 5 05-26-2004 06:08 PM
moving a partition to another that's in use emetib Linux - General 2 11-08-2003 04:56 PM
moving / from one partition to another chilly_willy2 Linux - Software 1 11-04-2003 05:38 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 05:40 AM.

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