Re: How to rename a partition
- From: Trastabuga <lispercat@xxxxxxxxx>
- Date: Sun, 18 Nov 2007 19:00:32 -0800 (PST)
On Nov 18, 7:53 pm, Lew Pitcher <lpitc...@xxxxxxxxxxxx> wrote:
Bill Marcum wrote:
On 2007-11-18, Trastabuga <lisper...@xxxxxxxxx> wrote:
I deleted a partition /dev/hda1 using fdisk and modified my fstab and
lilo so that next time /dev/hda2 becomes /dev/hda1 (so I thought). In
fact, after reboot /dev/hda2 didn't change to hda1 (as I expected) so
my question would be how can I rename /dev/hda2 to /dev/hda1. If it's
difficult I guess I can live with partitions starting with /dev/hda2
but stlll I'd like to understand why renaming is difficult and how to
reuse /dev/hda1.
The names of partitions 1-4 depend on which slot they occupy in the
partition table. Deleting a primary partition just writes zeroes in
that slot. Deleting a logical partition can rename others.
One further caveat: the partition table is not /required/ to be kept in
ascending order of partition origin, although that is the way most systems do
maintain it.
It is perfectly possible that /dev/hda1 could address the /last/ partition on
the drive, with the other, earlier, partitions being addressed as /dev/hda2
and onward.
--
Lew Pitcher
Master Codewright & JOAT-in-training | Registered Linux User #112576http://pitcher.digitalfreehold.ca/ | GPG public key available by request
---------- Slackware - Because I know what I'm doing. ------
Is there any command (app) overwrite the names in the partition table?
Not that I can't live with the unsorted names, just wondering...
Thank you,
Andrew
.
- Follow-Ups:
- Re: How to rename a partition
- From: 42Bastian Schick
- Re: How to rename a partition
- References:
- How to rename a partition
- From: Trastabuga
- Re: How to rename a partition
- From: Bill Marcum
- Re: How to rename a partition
- From: Lew Pitcher
- How to rename a partition
- Prev by Date: lseek/write
- Next by Date: Re: Free Space Management
- Previous by thread: Re: How to rename a partition
- Next by thread: Re: How to rename a partition
- Index(es):
Relevant Pages
|