View previous topic :: View next topic |
Author |
Message |
cwc Veteran
Joined: 20 Mar 2006 Posts: 1363 Location: Tri-Cities, WA USA
|
Posted: Thu Nov 07, 2024 9:23 pm Post subject: labeling (naming) partitions before install |
|
|
I read the docs https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Disks
and Father time has got me. In other words I forgot.
I have partitioned my drive. /boot swap root /.
How or do I need to label them?
Code: |
Device Start End Sectors Size Type
/dev/sda1 2048 2099199 2097152 1G Linux filesystem
/dev/sda2 2099200 69208063 67108864 32G Linux filesystem
/dev/sda3 69208064 500117503 430909440 205.5G Linux filesystem
|
_________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
pingtoo Veteran
Joined: 10 Sep 2021 Posts: 1234 Location: Richmond Hill, Canada
|
Posted: Thu Nov 07, 2024 9:56 pm Post subject: Re: labeling (naming) partitions before install |
|
|
cwc wrote: | How or do I need to label them? |
No, you don't "need" to label them.
However it is good to have label because a label usually came from human which carry meaning human can understand.
labelling usually very important in a share storage environment, it can help identify given storage which node it belong. but also give administrator opportunity when in emergency hint of recovery.
So extent the above idea, label is good to have even on single computer, because should you wish to change storage, it mean easy to switch without change configuration file (i.e. /etc/fstab)
I am not sure if fdisk can or cannot change, but I think sys-app/gotfdisk can change existing partition.
Beware, Not only storage/partition have label, File system also can have label, |
|
Back to top |
|
|
szatox Advocate
Joined: 27 Aug 2013 Posts: 3414
|
Posted: Thu Nov 07, 2024 10:20 pm Post subject: |
|
|
Code: | mkfs.<chosen type> -L <LABEL> /dev/device |
_________________ Make Computing Fun Again |
|
Back to top |
|
|
ali3nx l33t
Joined: 21 Sep 2003 Posts: 731 Location: Winnipeg, Canada
|
Posted: Thu Nov 07, 2024 11:10 pm Post subject: |
|
|
If you use cli parted the partition name label can be configured from parted cli shell
Code: | name # 'Secret Documents' |
# = the partition id from
Code: | parted /dev/device print |
https://www.gnu.org/software/parted/manual/html_node/name.html _________________ Compiling Gentoo since version 1.4
Thousands of Gentoo Installs Completed
Emerged on every continent but Antarctica
Compile long and Prosper! |
|
Back to top |
|
|
cwc Veteran
Joined: 20 Mar 2006 Posts: 1363 Location: Tri-Cities, WA USA
|
Posted: Thu Nov 07, 2024 11:11 pm Post subject: thank you |
|
|
thank you
I ask a simple question and I get a professional answer.
This is the worlds greatest forum! . {period} _________________ Without diversity there can be no evolution:) |
|
Back to top |
|
|
|