LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 06-27-2005, 09:01 AM   #1
Saxton
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Rep: Reputation: 0
Question Rename Partitions on RH9?


Howdy,

I need to rename the partitions on my RH9 box.

The desktop guys here at work cloned my hard drive and popped it into a new box (the lease on the old one was expired), and in so doing
/dev/hda1 became /dev/hdc1
/dev/hda2 became /dev/hdc2, etc...

I was alerted to a problem because the enabling of the swap partition failed on bootup.

I've looked at /proc/partitions but I'm unable to change the permissions on this file to change the names.

Is this possible? Anybody know how to do this?

Thanks,

Saxton
 
Old 06-27-2005, 09:45 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,692

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
Edit (as root) the /etc/fstab file and change the /dev/hdxy that corresponds to the swap partition from the old to the new.

To activate the swap partition without rebooting
swapon /dev/hdxy (where hdxy is the new swap location).
 
Old 06-27-2005, 09:49 AM   #3
Saxton
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you, michaelk. I did manage to do that, and it fixed the failed enabling of the swap partition. But I still have all the partitions with the new names rather than the old ones. Is there no way to rename them to the old names?

Saxton
 
Old 06-27-2005, 10:20 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,692

Rep: Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894Reputation: 5894
hda, hdb etc are a physical locations.
hda - 1st IDE controller master
hdb - 1st IDE controller slave
hdc - 2nd IDE controller master
hdd - 2nd IDE controller slave

The only way to change the names back would be to physically change the location of the drives.

Do you have other problems besides swap? I might see a problem if you had CDROM drives originally connected on hdc or hdd but without additional info it shouldn't matter.

Last edited by michaelk; 06-27-2005 at 10:27 AM.
 
Old 06-27-2005, 10:25 AM   #5
Saxton
LQ Newbie
 
Registered: Apr 2005
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks, again michaelk. That helps quite a bit.

Saxton
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rename scripting / locations on partitions Jalalabee Linux - Newbie 5 12-18-2003 12:11 PM
Mounting NTFS Partitions in RH9 smevans Red Hat 26 11-09-2003 02:47 PM
merging partitions question (RH9) LooseCanon Linux - General 2 10-02-2003 02:45 PM
RH9 How many partitions can I create? oracsol Linux - Newbie 1 09-25-2003 02:35 PM
Mounting partitions in RH9 usman767 Linux - Newbie 3 06-13-2003 05:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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