Re: How to rename a partition



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
.



Relevant Pages

  • Re: clearing hard drive
    ... It will not only wipe out the unused file ... deleting, simply right click on any files or directory and it adds 'erase' ... Use a Windows 98SE or WindowsMe Startup Disk ... > existing partition then create a new ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: xp pro install problem
    ... replaced memory stick and runs good again. ... >Are you deleting the partition and recreating it during ...
    (microsoft.public.windowsxp.setup_deployment)
  • Re: Linux/Windoze help needed
    ... As far as boot ... didn't know if the bios came into play on Linux systems. ... Deleting Linux partition information is ...
    (comp.sys.cbm)
  • Re: FIXMBR redux
    ... Yeah but aren't we just modifying the bootstrap? ... partition does not touch the bootstrap. ... it doesn't have to touch the bootstrap or MBR. ... > Deleting a partition only updates the partition table (which is after ...
    (microsoft.public.windowsxp.basics)
  • Re: Formatting a hard drive
    ... Deleting a partition has absolutely no affect on the BIOS. ... Boot from the CD and do a clean install. ...
    (microsoft.public.windowsxp.general)