LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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, 11: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, 11:21 PM   #2
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
i guess you should change grub and install it to current hdb.
 
Old 01-09-2004, 05:02 AM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Debian + Ubuntu
Posts: 4,358

Rep: Reputation: 57
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, 12:53 PM   #4
synaptical
Senior Member
 
Registered: Jun 2003
Distribution: Mint 13/15, CentOS 6.4
Posts: 2,020

Rep: Reputation: 47
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, 10: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


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


All times are GMT -5. The time now is 03:38 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration