[arch-general] Change letters of partitions
Hello everyone, I'm having a little problem. My partitions looked like this: /dev/sda1 (/) /dev/sda2 (/home) /dev/sda3 (swap) After I deleted the / partition and got this: /dev/sda1 (Windows) free space /dev/sda2 (/home) /dev/sda3 (swap) And i need this: /dev/sda1 (Windows) /dev/sda2 (/) /dev/sda3 (/home) /dev/sda4 (swap) How do I change home partition /dev/sda2 to /dev/sda3? Thank you all. --- Lucas Saliés Brum http://sistematico.org lsbrum @ irc.freenode.org
My partitions looked like this: /dev/sda1 (/) /dev/sda2 (/home) /dev/sda3 (swap)
After I deleted the / partition and got this: /dev/sda1 (Windows) free space /dev/sda2 (/home) /dev/sda3 (swap)
And i need this: /dev/sda1 (Windows) /dev/sda2 (/) /dev/sda3 (/home) /dev/sda4 (swap)
How do I change home partition /dev/sda2 to /dev/sda3?
That's fairly easy but dangerous. With fdisk you first print the partition table, then delete sda2 and sda3, and recreate them with exactly the same begining and end sectors as sda3 and sda4. Be very carefull -- damjan
On Sun, 13 Sep 2009 11:55:32 +0200 Damjan Georgievski <gdamjan@gmail.com> wrote:
...
How do I change home partition /dev/sda2 to /dev/sda3?
That's fairly easy but dangerous. With fdisk you first print the partition table, then delete sda2 and sda3, and recreate them with exactly the same begining and end sectors as sda3 and sda4.
Be very carefull
Yes, that's a good way and it works fine, if the partitions created by good tools like fdisk itself or cfdisk. It happend to me that if a partition starts not from a cylinder boundary (I haven't research this issue though, maybe I'm wrong with the actual cause) you simply cannot recreate it at the same place, therefore you will loose your partition. The partition table is just 4 lines of data [0]. You can dd it in a file, change the order of the lines and dd it back. There are some ready-to-use tools too, like (commercial) PartitionMagic's Partition table editor. By the way, in some cases M$ Windows installer rewrites the partition table putting those 4 lines in "acceding" order. [0] http://en.wikipedia.org/wiki/Master_boot_record
Thank you for all tips. Iwill try. --- Lucas Saliés Brum http://sistematico.org lsbrum @ irc.freenode.org
One more question, if the old system was 32 bits and I would put a 64 bits system using the same home folder I have a problem?
Lucas Salies Brum wrote:
One more question, if the old system was 32 bits and I would put a 64 bits system using the same home folder I have a problem?
Where you'd come into trouble is with binaries. If you have any programs that you run that reside in your home directory they probably won't work unless it's an interpreted language like Perl or Python or a scripting language like bash. Everything else will work just fine. Any text, documents, multimedia, or files in general will be fine.
Lucas Salies Brum wrote:
One more question, if the old system was 32 bits and I would put a 64 bits system using the same home folder I have a problem?
No
On Sun, Sep 13, 2009 at 01:23:21AM -0300, Lucas Salies Brum wrote:
Hello everyone, I'm having a little problem.
My partitions looked like this: /dev/sda1 (/) /dev/sda2 (/home) /dev/sda3 (swap)
After I deleted the / partition and got this: /dev/sda1 (Windows) free space /dev/sda2 (/home) /dev/sda3 (swap)
And i need this: /dev/sda1 (Windows) /dev/sda2 (/) /dev/sda3 (/home) /dev/sda4 (swap)
How do I change home partition /dev/sda2 to /dev/sda3?
Thank you all. ---
use UUID or LABEL feature in /etc/fstab.
AFAIK you can't without repartitioning the drive. The devices are typically named based on their creation order. It won't do any damage to create the root partition as /dev/sda4 On Sun, Sep 13, 2009 at 12:23 AM, Lucas Salies Brum <lucas@archlinux.com.br>wrote:
Hello everyone, I'm having a little problem.
My partitions looked like this: /dev/sda1 (/) /dev/sda2 (/home) /dev/sda3 (swap)
After I deleted the / partition and got this: /dev/sda1 (Windows) free space /dev/sda2 (/home) /dev/sda3 (swap)
And i need this: /dev/sda1 (Windows) /dev/sda2 (/) /dev/sda3 (/home) /dev/sda4 (swap)
How do I change home partition /dev/sda2 to /dev/sda3?
Thank you all. --- Lucas Saliés Brum http://sistematico.org lsbrum @ irc.freenode.org
Am Sun, 13 Sep 2009 01:23:21 -0300 schrieb Lucas Salies Brum:
Hello everyone, I'm having a little problem.
My partitions looked like this: /dev/sda1 (/) /dev/sda2 (/home) /dev/sda3 (swap)
After I deleted the / partition and got this: /dev/sda1 (Windows) free space /dev/sda2 (/home) /dev/sda3 (swap)
And i need this: /dev/sda1 (Windows) /dev/sda2 (/) /dev/sda3 (/home) /dev/sda4 (swap)
How do I change home partition /dev/sda2 to /dev/sda3?
fdisk has a function to automatically fix the partition order depending on the order they are placed on disk: Hit 'x' for expert mode and than 'f' to fix the order. Verify if it did what you want before writing the changes to disk.
Too late! hahahaha Im using /home on sda2 and / on sda3, and now im running Arch 64! Very good tip with fdisk. Anyway, thank you all. --- Lucas Saliés Brum http://sistematico.org lsbrum @ irc.freenode.org 2009/9/15 Axel Müller <axel-mueller-74@web.de>
fdisk has a function to automatically fix the partition order depending on the order they are placed on disk: Hit 'x' for expert mode and than 'f' to fix the order. Verify if it did what you want before writing the changes to disk.
participants (8)
-
Axel Müller
-
Baho Utot
-
Christopher Daley
-
Damjan Georgievski
-
Lucas Salies Brum
-
Partha Chowdhury
-
Scott Smith
-
Sergey Manucharian