Page 2 of 2 FirstFirst 12
Results 11 to 18 of 18

Thread: Help activating Swap partition

  1. #11
    Join Date
    Aug 2012
    Location
    Queensland, Australia
    Beans
    Hidden!
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Help activating Swap partition

    Quote Originally Posted by Bashing-om View Post
    @ coldcritter64; appreciate watching my back.

    I did catch that the swap partition was made, however - and I may be jumping at conclusions, that maybe ubuntu is to be installed onto another drive - but, There is no provision on the sda drive for ubuntu. As the drive is HPFS, there is no way. The current fstab references sda6 as "/", that partition is also Windows proprietary HPFS partitioned, not ext4 (or other linux schemes).

    Am I missing something here, or do I have a failure to comprehend ?


    I often do not know, but I can be led to understand.
    inquiring minds want to know
    OP, what is on /dev/sda6 & /dev/sda7 (anything data wise ?) your gparted shows /dev/sda6 as unknown but terminal shows it as HPFS etc as Bashing-om notes, also /dev/sda7 on your gparted output shows as ext4 but once again the terminal shows HPFS (???) How did you install the system in such circumstances; was wubi involved in any way OP ?; ubuntu on a NTFS filesystem ?; (it is not the same as "bare metal" dual booting) and may be important to know if it is used here.

    @ Bashing-om, I think this is a bit deeper than I first noted . fdisk isn't noting a GPT table so sda6 sda7 and sda8 are logical partitions and as such Windows can't boot from there (the OS itself, ok for storage though). Unless they are storage volumes it seems they are being detected wrong either in terminal or gparted (they differ for the same device) or may be wrongly formatted. Interesting .

  2. #12
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    7,214
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Help activating Swap partition

    @ coldcritter64; Yeah !

    My thoughts too.
    I have been in contact with the OP, and have asked the OP the meet us in the thread to clarify what he is doing and what his intentions are.

    Gonna hold off for additional info.

    ain't it just
    great
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  3. #13
    Join Date
    Jan 2014
    Beans
    15

    Re: Help activating Swap partition

    Quote Originally Posted by coldcritter64 View Post
    OP, what is on /dev/sda6 & /dev/sda7 (anything data wise ?) your gparted shows /dev/sda6 as unknown but terminal shows it as HPFS etc as Bashing-om notes, also /dev/sda7 on your gparted output shows as ext4 but once again the terminal shows HPFS (???) How did you install the system in such circumstances; was wubi involved in any way OP ?; ubuntu on a NTFS filesystem ?; (it is not the same as "bare metal" dual booting) and may be important to know if it is used here.

    @ Bashing-om, I think this is a bit deeper than I first noted . fdisk isn't noting a GPT table so sda6 sda7 and sda8 are logical partitions and as such Windows can't boot from there (the OS itself, ok for storage though). Unless they are storage volumes it seems they are being detected wrong either in terminal or gparted (they differ for the same device) or may be wrongly formatted. Interesting .

    /dev/sda6 Encrypted Partition created with truecrypt
    /dev/sda7 Just Ubuntu.

    Wubi was not involved in anyway.
    As for installation, I laid everything out with Minitool Partition Wizard (probably the issue?) and then just installed Ubuntu on the ext4 partition from a DVD.

  4. #14
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    7,214
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Help activating Swap partition

    9173; Nope, I can't see it !

    All partitions less swap are HPFS + NTFS or fat .. UHMMM.. ubuntu default install is onto a partition of file type ext4. The installer will happily find "unallocated space" and format it to ext4, but not otherwise.
    Now I know nothing about encryption and such, but I do know that on a hard disk, ubuntu will not install on a windows format, and in particular will not touch the proprietary partitioning scheme HPFS.
    In my very limited Windows knowledge, the only thing I see to do is back up the data, and (RE-)install Windows using a different BASIC partitioning scheme. Set up then the "unallocated space" ? or let the installer work it's magic and make the install. Then ubuntu can cope.
    that is
    I see it
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  5. #15
    Join Date
    Jan 2014
    Beans
    15

    Re: Help activating Swap partition

    I'll just leave it as is if it just means no swap.

    What other problems (if any) would just leaving it as is cause?

  6. #16
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    7,214
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Help activating Swap partition

    9173; ???

    We are working with conflicting information.
    To this time it is "unproven" that there is an ubuntu install on that 1st hard drive (sda).
    Now there is a /swap partition, and if there does exist an ubuntu install on sda, it is a minor thing to edit /etc/fstab file so the operating system picks it up.

    Show us the outputs - between code tags to maintain readability - of terminal codes:
    Code:
    sudo fdisk -lu 
    sudo parted -l
    sudo parted /dev/sda unit s print
    lsblk -f
    code tag tutorial:
    http://ubuntuforums.org/showthread.p...8#post12776168
    To remove all doubt and so we know what we are working with.

    One may do with out a swap under these conditions:
    The system will not be hibernated;
    and
    there is 8 gigs or more ram installed;
    and
    There is no heavy duty computing going on- intense calculations.

    just try'n to help
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

  7. #17
    Join Date
    Jan 2014
    Beans
    15

    Re: Help activating Swap partition

    sudo fdisk -lu
    Code:
    Disk /dev/sda: 640.1 GB, 640135028736 bytes
    255 heads, 63 sectors/track, 77825 cylinders, total 1250263728 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 4096 bytes
    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
    Disk identifier: 0x854fe247
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048      206847      102400    7  HPFS/NTFS/exFAT
    /dev/sda2          208845   209937419   104864287+   7  HPFS/NTFS/exFAT
    Partition 2 does not start on physical sector boundary.
    /dev/sda3       209940478  1250263039   520161281    f  W95 Ext'd (LBA)
    Partition 3 does not start on physical sector boundary.
    /dev/sda5       209940480   451112959   120586240    7  HPFS/NTFS/exFAT
    /dev/sda6       451115008   493035519    20960256    7  HPFS/NTFS/exFAT
    /dev/sda7       493037568   555950079    31456256    7  HPFS/NTFS/exFAT
    /dev/sda8       564411645  1088708984   262148670    7  HPFS/NTFS/exFAT
    Partition 8 does not start on physical sector boundary.
    /dev/sda9      1088710656  1141136437    26212891   83  Linux
    /dev/sda10     1193582592  1246011391    26214400    7  HPFS/NTFS/exFAT
    /dev/sda11     1246013440  1250263039     2124800   82  Linux swap /
    sudo parted -l
    Code:
    Model: ATA Hitachi HTS54756 (scsi)
    Disk /dev/sda: 640GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: msdos
    
    Number  Start   End    Size    Type      File system     Flags
     1      1049kB  106MB  105MB   primary   ntfs            boot
     2      107MB   107GB  107GB   primary   ntfs
     3      107GB   640GB  533GB   extended                  lba
     5      107GB   231GB  123GB   logical   ntfs
     6      231GB   252GB  21.5GB  logical
     7      252GB   285GB  32.2GB  logical   ext4
     8      289GB   557GB  268GB   logical   ntfs
     9      557GB   584GB  26.8GB  logical   ext4
    10      611GB   638GB  26.8GB  logical   ntfs
    11      638GB   640GB  2176MB  logical   linux-swap(v1)

    sudo parted /dev/sda unit s print

    Code:
    Model: ATA Hitachi HTS54756 (scsi)
    Disk /dev/sda: 1250263728s
    Sector size (logical/physical): 512B/4096B
    Partition Table: msdos
    
    Number  Start        End          Size         Type      File system     Flags
     1      2048s        206847s      204800s      primary   ntfs            boot
     2      208845s      209937419s   209728575s   primary   ntfs
     3      209940478s   1250263039s  1040322562s  extended                  lba
     5      209940480s   451112959s   241172480s   logical   ntfs
     6      451115008s   493035519s   41920512s    logical
     7      493037568s   555950079s   62912512s    logical   ext4
     8      564411645s   1088708984s  524297340s   logical   ntfs
     9      1088710656s  1141136437s  52425782s    logical   ext4
    10      1193582592s  1246011391s  52428800s    logical   ntfs
    11      1246013440s  1250263039s  4249600s     logical   linux-swap(v1)
    lsblk -f

    Code:
    NAME    FSTYPE LABEL MOUNTPOINT
    sda                  
    ├─sda1               
    ├─sda2               
    ├─sda3               
    ├─sda5               
    ├─sda6               
    ├─sda7               /
    ├─sda8               
    ├─sda9               
    ├─sda10              
    └─sda11              
    sr0

    Thanks for sticking with a complete noob.
    Last edited by 9173; January 27th, 2014 at 06:59 PM.

  8. #18
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    7,214
    Distro
    Lubuntu 14.04 Trusty Tahr

    Re: Help activating Swap partition

    9173; Hey ...
    Looking good, now we KNOW !

    Ok what is currently .
    ubuntu IS installed to the 1st hard drive (sda) in partition #9 (sad9);
    ubuntu's swap partition is installed to that 1st hard drive as partition #11 (sda11);
    Sidenote - file id 7 we can deal with !

    so you want to boot with 'swap' automounted at boot.

    Let's get the updated info:
    Code:
    sudo blkid
    cat /etc/fstab
    and I will provide you the edits to the /etc/fstab file to make it happen.

    it is all in the process
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubutu'n !

Page 2 of 2 FirstFirst 12

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •