Re: LABEL for swap partition.
- From: J. Mektub <jl_mektubOUTOUTOUT@xxxxxxxxxxx>
- Date: Wed, 01 Nov 2006 20:02:29 +0000
On 1 Nov 2006 09:46:54 -0800, george.e.sullivan@xxxxxxxx wrote:
I have added a second disk to my system that will be used for SWAP
space. I have it ready to go and want to include it in my fstab. I'd
like to use the LABEL method that is currently in fstab for the current
swap space. It looks like this:
LABEL=SWAP-sda2 swap swap and all that stuff.
I can't find how to label a swap disk/space. The tune2fs, fdisk,
parted, and e2label haven't been helpful. They seem to work only for a
partition with a regular filesystem not a swap partition. Anyone know
the command to label SWAP partition? Or perhaps the correct way to use
one of those previously mentioned commands just in case I am missing
something in the manpage. So my new swap entry in fstab would then
look something like:
#LABEL=SWAP-sda2 swap swap defaults 0 0
LABEL=SWAP-hda1 swap swap defaults 0 0
Operating system is Redhat Enterprise Linux Workstation 4.0 Update 4.
Thanks all
You can label it with the mkswap command:
mkswap -L label /dev/hdxx
see: man mkswap
Mektub
.
- References:
- LABEL for swap partition.
- From: george . e . sullivan
- LABEL for swap partition.
- Prev by Date: Re: How to install a Linux Kernel Source in Fedora Core 6?
- Next by Date: Re: How to install a Linux Kernel Source in Fedora Core 6?
- Previous by thread: Re: LABEL for swap partition.
- Index(es):
Relevant Pages
|