[Bug 346358] Re: cannot convert NTFS partition to swap

Phillip Susi psusi at ubuntu.com
Thu Oct 10 02:06:32 UTC 2013


This was fixed some time ago.


** Changed in: util-linux (Ubuntu)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/346358

Title:
  cannot convert NTFS partition to swap

Status in “util-linux” package in Ubuntu:
  Fix Released

Bug description:
  Binary package hint: util-linux

  I eventually did figure it out, but there was much aggravation.
  Here's a transcript:

  blarsen at bulti:~$ sudo mkswap /dev/sda2
  Setting up swapspace version 1, size = 15695500 KiB
  no label, UUID=1c712dc4-3744-4abf-a4ca-2348e68fa91f
  blarsen at bulti:~$ sudo vol_id -u /dev/sda2 
  unknown or non-unique volume type (--probe-all lists possibly conflicting types)
  blarsen at bulti:~$ sudo vi /etc/fstab
  blarsen at bulti:~$ sudo swapon -a
  swapon: cannot stat /dev/disk/by-uuid/1c712dc4-3744-4abf-a4ca-2348e68fa91f: No such file or directory
  blarsen at bulti:~$ sudo blkid | grep sda2
  /dev/sda2: UUID="781848AB18486A68" TYPE="ntfs" 
  blarsen at bulti:~$ sudo fdisk -l | grep sda2
  /dev/sda2             487        2440    15695505   82  Linux swap / Solaris

  much aggravation, and I figured out a way around things.

  
  blarsen at bulti:~$ sudo mkswap -v0 /dev/sda2
  mkswap: warning: truncating swap area to 130752 KiB
  Setting up swapspace version 0, size = 130748 KiB
  blarsen at bulti:~$ sudo blkid | grep sda2
  /dev/sda2: TYPE="swap" 
  blarsen at bulti:~$ sudo mkswap -L swap /dev/sda2
  Setting up swapspace version 1, size = 15695500 KiB
  LABEL=swap, UUID=2307c43e-c98f-4fd4-8678-3272da24e167
  blarsen at bulti:~$ sudo blkid | grep sda2
  /dev/sda2: TYPE="swap" LABEL="swap" UUID="2307c43e-c98f-4fd4-8678-3272da24e167" 

  release: jaunty
  util-linux: 2.14.2-1ubuntu4

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/346358/+subscriptions



More information about the foundations-bugs mailing list