LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-08-2004, 10:12 PM   #1
linuxnube
Member
 
Registered: Oct 2003
Location: US
Distribution: Fedora C1 & C2
Posts: 81

Rep: Reputation: 15
remove 1st HD


I have two HDs with different versions of linux on each. Grub is on the MBA of hda. I need to remove hda and promote hdb to hda.

Can I do anything before I do this so that once done, I will be able to bring up the new hda (the old hdb)?

Thanks!
 
Old 01-08-2004, 10:21 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
i guess you should change grub and install it to current hdb.
 
Old 01-09-2004, 04:02 AM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
You could change an option in GRUB so that hda thinks it is hdb, and vice versa. However, I would suggest changing your bootloader to reflect the changes in disc position and boot from a rescue medium, mount the partition that contains your /etc/fstab file and edit it accordingly (ie change all hdas to hdbs, and vice versa). Save the file. Reboot.
 
Old 01-09-2004, 11:53 AM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 48
oh yeah - i forgot to mention the fstab. i had to do the same exact thing when i removed my windows hda and made my linux hdb the new hda, except i use lilo. but overall the process was very easy. just make the necessary changes to grub, fstab, and your MBR as Thymox and i have outlined here and it should work fine.
 
Old 01-10-2004, 09:15 AM   #5
linuxnube
Member
 
Registered: Oct 2003
Location: US
Distribution: Fedora C1 & C2
Posts: 81

Original Poster
Rep: Reputation: 15
I booted hdb, ran grub and used /dev/hdb as the target.

I then went to /boot/grub/ and edited grub.conf so that the original (hd0,0) entries were removed and then changed the (hd1,0) to (hd0,0).

I powered down, took out the old hda and made hdb -> hda and rebooted.

It all works.

Thanks for the help.
 
  


Reply



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
DHCP- 1st timer aquaboot Linux - Networking 4 09-11-2005 08:21 PM
RHEL 4 1st CD Nilesh.Shah Red Hat 3 09-08-2005 04:58 AM
No Sound after 1st reboot yhubu Linux - Hardware 4 07-17-2005 05:28 AM
April 1st Already? mcleodnine Linux - News 5 03-17-2005 01:08 PM
1st post tdbone1 Slackware 1 11-08-2003 10:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:55 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