Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #164173
| From | Felix Miata <mrmazda@earthlink.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: changing partition names |
| Date | 2016-02-15 02:00 +0100 |
| Message-ID | <r2fGa-1WN-9@gated-at.bofh.it> (permalink) |
| References | <r2bMe-7Rl-17@gated-at.bofh.it> |
| Organization | less than infinite |
Frank McCormick composed on 2016-02-14 15:42 (UTC-0500): > I have deleted a partition from my HD containing a distro I no longer use. What motivated doing so? What exactly was/were your goal(s) in doing so? > As a result, my partitions on /dev/sda are numbered sda1. sda2 (windows) > and sda4. sda3 contained the distro I dumped. > Can I just use fdisk or fsdisk to dump the existing partition record It's not something I've ever done, but as I understand them, using either to delete and recreate an existing partition should do that job, but compatibly only if you know how to recreate the same size and have it start on the same sector as it now does. > edit the file to change sda4 to sda3 and then use fdisk or sfdisk to > read the file and create a properly named partition record ? Any binary disk editor can move the slot 4 partition record to slot 3. That's the only difference between your existing native partition being named sda4 and being named sda3. Do you understand the ramifications of making such a change? As long as your existing Debian partition is referred to by name, UUID or ID in bootloader config and fstab, it shouldn't matter the device name resulting from its partition table entry. Frank McCormick composed on 2016-02-14 19:11 (UTC-0500): > This is what I have now from sfdisk -l > label: dos > label-id: 0x5a74aac4 > device: /dev/sda > unit: sectors > /dev/sda1 : start= 2048, size= 194560, type=7 > /dev/sda2 : start= 196608, size= 81920000, type=7 > /dev/sda4 : start= 82116608, size= 74131456, type=83, bootable > ^^^^^^^^ this is what I need to change to /dev/sda3 Why the "need". > sda1 and sda2 are the Windows partitions. sda4 is Debian As the size recovered by your deletion of sda3 was minimal (82116608-81920000=196608), you're probably best off, in terms of complication, by creating another partition in its space. Once created, make a new filesystem, and maybe mount it as /usr/local, /var/cache, /tmp or even /boot (assuming you know and can deal with the bootloader complications involved in doing so). -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-14 21:50 +0100
Re: changing partition names rlharris@oplink.net - 2016-02-14 23:10 +0100
Re: changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-15 01:20 +0100
Re: changing partition names Charlie Kravetz <cjk@teamcharliesangels.com> - 2016-02-15 03:00 +0100
Re: changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-15 04:40 +0100
Re: changing partition names Adam Wilson <moxalt@riseup.net> - 2016-02-16 07:50 +0100
Re: changing partition names Felix Miata <mrmazda@earthlink.net> - 2016-02-15 02:00 +0100
Re: changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-15 04:50 +0100
Re: changing partition names Jonathan Dowland <jmtd@debian.org> - 2016-02-15 11:50 +0100
Re: changing partition names <tomas@tuxteam.de> - 2016-02-15 12:50 +0100
Re: changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-15 18:00 +0100
Re: changing partition names jdd <jdd@dodin.org> - 2016-02-15 18:50 +0100
Re: changing partition names Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-02-15 21:00 +0100
Re: changing partition names Felix Miata <mrmazda@earthlink.net> - 2016-02-15 21:10 +0100
Re: changing partition names Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-02-15 21:20 +0100
Re: changing partition names Pascal Hambourg <pascal@plouf.fr.eu.org> - 2016-02-15 21:10 +0100
Re: changing partition names Lisi Reisz <lisi.reisz@gmail.com> - 2016-02-16 00:20 +0100
Re: changing partition names Felix Miata <mrmazda@earthlink.net> - 2016-02-16 00:40 +0100
Re: changing partition names Frank McCormick <debianlist@videotron.ca> - 2016-02-16 01:30 +0100
Re: changing partition names Felix Miata <mrmazda@earthlink.net> - 2016-02-16 04:40 +0100
Re: changing partition names jdd <jdd@dodin.org> - 2016-02-16 08:50 +0100
csiph-web