LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Rename Partitions on RH9? (https://www.linuxquestions.org/questions/linux-general-1/rename-partitions-on-rh9-337616/)

Saxton 06-27-2005 09:01 AM

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 :Pengy:

michaelk 06-27-2005 09:45 AM

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).

Saxton 06-27-2005 09:49 AM

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

michaelk 06-27-2005 10:20 AM

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.

Saxton 06-27-2005 10:25 AM

Thanks, again michaelk. That helps quite a bit.

Saxton


All times are GMT -5. The time now is 02:55 PM.