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

Bug Reporter 11 1186811 at bugs.launchpad.net
Thu Jan 30 15:36:06 UTC 2014


I believe this may be a better workaround. The workaround in comment #7
appears to remove encryption. Check this out instead:

http://askubuntu.com/a/236518

Pasted from the link above:

I happened to stumble upon this problem for 3 different releases of
Ubuntu on two different computers. While most of the time the swap-
partition was mounted despite the warning message, sometimes the GUI
refused to start upon boot completion because of it.

Here's what I did as a workaround:

Open a terminal by pressing Ctrl + Alt + T.

Type gksudo gedit /etc/fstab and press Enter.

Search for the line that reads:

/dev/mapper/cryptswap1 none swap sw 0 0

Now enter the value noauto right after sw (separated by a comma), so it
looks like this:

/dev/mapper/cryptswap1 none swap sw,noauto 0 0

Save and exit. This way, your swap partition won't be mounted while
booting, thus the warning message won't appear or even hinder the login
screen to appear.

Now type in a terminal

gksudo gedit /etc/rc.local

and enter the following lines before the entry exit 0:

sleep 10

swapon /dev/mapper/cryptswap1

If there's no entry exit 0, you'll have to enter it right beneath those
two lines. Save and exit again. This will tell your system to wait 10
seconds after login to mount your encrypted swap partition.

Reboot your system. You should not get the warning message any longer.
After login, wait some time, then open up a terminal again and type

free -m

Your output should look something like this:

    fuzzyq at Samsung-R710:~$ free -m

                  total       used       free     shared    buffers
cached

     Mem:          3949       3806        143          0         86
1783

     -/+ buffers/cache:       1936       2013

     Swap:         4095          0       4095

    The last line is the important one. If there's a positive value
showing for total swap, your swap partition was being mounted
successfully.

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