Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 12-30-2005, 11:55 AM   #1
LQ Newbie
Registered: Aug 2004
Distribution: Slackware
Posts: 2

Rep: Reputation: 0
How to rename a partition

Hey all,

Is it possible to have data in /dev/hda1 /dev/hda3 and /dev/hda4 renamed so that :

/dev/hda1 stays named /dev/hda1
/dev/hda3 becomes /dev/hda2
/dev/hda4 becomes /dev/hda3

i was thinking I could use fdisk or cfdisk and rename them without reformatting, but I didn't want to hurt any data (although it's not likely, right, without reformatting?) and/or run into problems rebooting.

Thanks in advance.
Old 12-30-2005, 01:43 PM   #2
Senior Member
Registered: Jun 2003
Location: California
Distribution: Slackware
Posts: 1,181

Rep: Reputation: 49
the hdaX number refers to the partition order on the HDD -- you're not going to be able to change that without deleting your partitions, which deletes the formatting. The only way I could think of to do that is to partition a new HDD and copy your data over, partition by partition.
Old 12-30-2005, 01:48 PM   #3
LQ Guru
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,147

Rep: Reputation: Disabled
Yes, fdisk in expert mode can do it. (Press x for extra functionality, once there f will fix the partition order).
Old 12-30-2005, 01:59 PM   #4
LQ Veteran
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
This seems like a good way to get into trouble
Backup first.......!!!!


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rename a partition? xmdms Linux - Enterprise 2 01-16-2005 01:08 PM
cant rename directories andy753421 Linux - General 1 08-16-2004 08:24 AM
Rename my pc ? Tanc Linux - Newbie 6 09-13-2003 08:28 AM
can you rename rpm's ? xconspirisist Linux - Software 2 09-09-2003 11:33 AM
Rename Partition def1014 Linux - General 3 08-06-2002 04:33 PM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 07:43 AM.

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