[Bug 1186811] Re: The Ubuntu installation does not create swap partition.

tres86dx tres86dx-ubuntu at yahoo.com.ar
Tue Dec 3 21:35:17 UTC 2013


Last week i had time to search a solution in google. First i discovered that the problem happen when the installation is made from usb stick. I realized that i started with the problem in 12.04 when i change from cd to usb. I guess the problem is in the installation program.
I found the next solution and it works for me.
Open a terminal windows:
1.- sudo swapoff -a
(the previous command turns off "swap" anyway it don't work)
2.-edit the crypttab file in /etc/crypttab
For do that use nautilus like superuser. In the terminal execute:
sudo nautilus
next go to /etc/crypttab and open the file. Search for:
cryptswap1 /dev/sdb8 /dev/urandom swap,cipher=aes-cbc-essiv:sha256

and put # at the begining to ignore the coomand when ubuntu start.
Something like this:

#cryptswap1 /dev/sdb8 /dev/urandom swap,cipher=aes-cbc-essiv:sha256

save the file and close it.
3.- Do the same for another file named fstab
sudo nautilus
next go to /etc/fstab and open the file. Search for:

/dev/mapper/cryptswap1 none swap sw 0 0

put # again at the beginning.

#/dev/mapper/cryptswap1 none swap sw 0 0

save the file.

4.-Close all the programs and restart ubuntu.

5.- start gparted and reformat the correct partition like swap. Be sure
the correct partition. In my case is:

/dev/sdb5

6.- open terminal and execute:

sudo mkswap /dev/sdXX

sdXX in my case is sdb5, this can vary from system to system. Pay
attention to the system answer and copy to use later the
UUID=xxxxxxxxxxxxxxxx For example:

setting up swapspace version 1, size = 4208636 KiB
no label, UUID=06a9be15-d05b-466d-bfe3-a086bb9cdba0

7.-edit the resume file in /etc/crypttab
For do that use nautilus like superuser. In the terminal execute:
sudo nautilus
next go to /etc/initramfs-tools/conf.d/resume  and open the file. Search for:

RESUME=UUID=06a9be15-d05b-466d-bfe3-a086bb9cdba0

and change the numbers for yours numbers (previously saved):

RESUME=UUID=xxxxxxxxxxxxxxxxxxxx

save the file

8.- in the terminal execute:
sudo update-initramfs -u

this upgrade the configuration

9.- sudo swapon /dev/sdXX

this activate the swap


10.- sudo ecryptfs-setup-swap
this encrypt the swap partition

11.- to check the partition is working execute:

free -m

the report indicate the size of swapp partition.

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

Title:
  The Ubuntu installation does not create swap partition.

Status in “ubiquity” package in Ubuntu:
  Confirmed

Bug description:
  The Ubuntu installation does not create swap partition. This issue
  happen with both 12.04.2 and 13.04.

  I tested it with two diferents pc and with a virtual machine in
  virtual box into Ubuntu. I tried both automatic and manual
  installation options during installation.

  The partition is created but with errors and the system can not mount
  the partition swap at startup.

  I solved the problem by booting the system from pendrive, then start
  gparted and format the partition again. This worked for several days,
  until it happened again today.

  I include a picture (of gparted) with the problem.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: linux-image-3.8.0-23-generic 3.8.0-23.34
  ProcVersionSignature: Ubuntu 3.8.0-23.34-generic 3.8.11
  Uname: Linux 3.8.0-23-generic x86_64
  ApportVersion: 2.9.2-0ubuntu8
  Architecture: amd64
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  fenix      3510 F.... pulseaudio
   /dev/snd/controlC0:  fenix      3510 F.... pulseaudio
  CRDA:
   country AU:
   	(2402 - 2482 @ 40), (N/A, 20)
   	(5170 - 5250 @ 40), (3, 23)
   	(5250 - 5330 @ 40), (3, 23), DFS
   	(5735 - 5835 @ 40), (3, 30)
  Date: Sun Jun  2 18:46:07 2013
  EcryptfsInUse: Yes
  HibernationDevice: RESUME=UUID=b4021e2d-c260-4080-8691-a1f402176394
  InstallationDate: Installed on 2013-05-05 (28 days ago)
  InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Release amd64 (20130424)
  MachineType: Gigabyte Technology Co., Ltd. P67A-UD3-B3
  MarkForUpload: True
  ProcFB: 0 radeondrmfb
  ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.8.0-23-generic root=UUID=59a5ed6f-0962-4146-b993-11e0251226b8 ro splash quiet
  RelatedPackageVersions:
   linux-restricted-modules-3.8.0-23-generic N/A
   linux-backports-modules-3.8.0-23-generic  N/A
   linux-firmware                            1.106
  RfKill:
   0: phy0: Wireless LAN
   	Soft blocked: yes
   	Hard blocked: no
  SourcePackage: linux
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 07/29/2011
  dmi.bios.vendor: Award Software International, Inc.
  dmi.bios.version: F6
  dmi.board.name: P67A-UD3-B3
  dmi.board.vendor: Gigabyte Technology Co., Ltd.
  dmi.board.version: x.x
  dmi.chassis.type: 3
  dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
  dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF6:bd07/29/2011:svnGigabyteTechnologyCo.,Ltd.:pnP67A-UD3-B3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnP67A-UD3-B3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
  dmi.product.name: P67A-UD3-B3
  dmi.sys.vendor: Gigabyte Technology Co., Ltd.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1186811/+subscriptions



More information about the foundations-bugs mailing list