FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 02-18-2009, 01:00 AM
 
Default label swap partition

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?
--


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-18-2009, 06:34 AM
Adrian Levi
 
Default label swap partition

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

--
24x7x365 != 24x7x52 Stupid or bad maths?
<erno> hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-18-2009, 12:43 PM
 
Default label swap partition

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.

--



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-18-2009, 08:03 PM
Adrian Levi
 
Default label swap partition

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

--
24x7x365 != 24x7x52 Stupid or bad maths?
<erno> hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-18-2009, 09:50 PM
Marc Auslander
 
Default 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"


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-19-2009, 07:10 AM
Adrian Levi
 
Default label swap partition

2009/2/19 Marc Auslander <marcslists@optonline.net>:
> Adrian Levi <adrian.levi@gmail.com> writes:

> 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"

Why do you want 2 swap partitions?
One on sda1 and another on hda1.

Was hda1 at one point a windows partition?

Adrian

--
24x7x365 != 24x7x52 Stupid or bad maths?
<erno> hm. I've lost a machine.. literally _lost_. it responds to
ping, it works completely, I just can't figure out where in my
apartment it is.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-19-2009, 09:11 AM
Ron Johnson
 
Default label swap partition

On 02/19/2009 02:10 AM, Adrian Levi wrote:
[snip]

Why do you want 2 swap partitions?
One on sda1 and another on hda1.


Spread the pain. Accessing two "small" swap partitions each thru a
different cable gives you better throughput than one huge swap file
thru a single cable.


--
Ron Johnson, Jr.
Jefferson LA USA

Supporting World Peace Through Nuclear Pacification


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 
Old 02-19-2009, 05:39 PM
Marc Auslander
 
Default label swap partition

The last posting asking about previous windows use. Also, blkid
thought it was ntfs. This made me guess there was a stale superblock from
the previous NTFS use that was confusing linux. So I took the swap
partition off line, used dd to zero the beginning of it, and did
mkswap again. All is now working.

IMHO this is a bug in mkswap - it should make any arbitrary partition
into a swap partition no matter what its previous content.
--


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
 

Thread Tools




All times are GMT. The time now is 04:07 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org