[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: label swap partition



Adrian Levi <adrian.levi@gmail.com> writes:

> 2009/2/18  <marcslists@gmail.com>:
> > Adrian Levi <adrian.levi@gmail.com> writes:
> >
> >> 2009/2/18  <marcslists@gmail.com>:
> >> > I'm trying to prepare my etch system for upgrade, and am converting to
> >> > labels in fstab.
> >> >
> >> > I tried to label my swap partition (which is swap type in part table) by doing
> >> > mkswap -L rootswap /dev/hda1  (the current dev name of my swap partition)
> >> >
> >> > but swapon -L rootswap says it can't find the label.
> >> >
> >> > i notice, possibly irrelevant, that cfdisk is seeing the new labels on
> >> > my ext3 partitions, but not the label of the swap partition.
> >> >
> >> > any hints about what I might be doing wrong?
> >>
> >> You did a swapoff /dev/hda1 first?
> >>
> >> Adrian
> >>
> >
> > After the first attempt and reboot, there was no active swap.  I then
> > redid the mkswap, so the simple answer is yes, it was offline.
> 
> can you provide the output of:
> 
> fdisk -l /dev/hda
> and
> blkid
> 
> Adrian
> 
It follows.  /dev/hda1 looks funny, doesn't it?  Like no UUID.  How do
I fix?


fdisk -l /dev/hda

Disk /dev/hda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1               1         996     8000338+  82  Linux swap / Solaris
/dev/hda2   *         997        1604     4883760   83  Linux
/dev/hda3            1605       60801   475499902+  83  Linux
(~)# blkid
/dev/hda1: TYPE="ntfs" 
/dev/hda2: LABEL="rootfilesys" UUID="ba868810-7835-4f45-bfd4-269125a3084d" SEC_TYPE="ext2" TYPE="ext3" 
/dev/hda3: LABEL="home2filesys" UUID="5e653e2d-c25b-44c6-9331-ba4f8fcb4895" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda1: UUID="de409046-419c-4629-be16-36378a53e1f3" TYPE="swap" 
/dev/sda2: UUID="a519998d-3306-49eb-8508-a2eb945974ee" SEC_TYPE="ext2" TYPE="ext3" 
/dev/sda3: LABEL="homefilesys" UUID="bce0dc2f-8008-44b7-b7ee-1534181751b7" SEC_TYPE="ext2" TYPE="ext3" 


Reply to: