Results 1 to 10 of 10

Thread: No "root" Partition in Logical Volume Management

  1. #1
    Join Date
    Dec 2015
    Beans
    61

    No "root" Partition in Logical Volume Management

    I'm new to Ubuntu so please bear with me. I've been following this guide. I want to set up a virtual partition for my media, but I realized that I do not have a partition for "root" or "swap." I would like to find out if I should make these partitions before I proceed to avoid future issues. I'm not even really sure what swap is or what it's for, but I have a feeling it might be important to have a partition for "root" to avoid it being overwritten or something. I simply don't know enough about partitioning or Ubuntu to proceed though. Also, if you don't mind briefly explaining what these partitions will be for, that would be great.

    Edit: I ran:
    Code:
    lsblk
    which returned this, so maybe the partitions are there and they're just not showing up in webmin?
    Last edited by robo731; December 31st, 2015 at 08:29 PM.

  2. #2
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: No "root" Partition in Logical Volume Management

    whats the output of
    Code:
    sudo pvdisplay
    sudo vgdisplay
    sudo lvdisplay
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  3. #3
    Join Date
    Jun 2010
    Location
    London, England
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: No "root" Partition in Logical Volume Management

    if you don't mind briefly explaining what these partitions will be for
    If you do not have a root ( / ) partition then you do not have Linux installed.

    When system memory (RAM) becomes close to being full Linux will move data out of memory to a previously allocated area of the hard disk that is the swap partition. This process will free up memory. When that information is needed again Linux will move the data back into memory by swapping out some other data.

    If we use hibernation the contents of system memory is stored in the swap partition to be reloaded back into memory when the OS comes out of hibernation.

    Regards
    It is a machine. It is more stupid than we are. It will not stop us from doing stupid things.
    Ubuntu user #33,200. Linux user #530,530


  4. #4
    Join Date
    Dec 2015
    Beans
    61

    Re: No "root" Partition in Logical Volume Management

    Here's the output of those commands: pv, vg, lv.

    Thanks for the explanation grahammechanical. That makes sense.

  5. #5
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: No "root" Partition in Logical Volume Management

    Quote Originally Posted by robo731 View Post
    Here's the output of those commands: pv, vg, lv.

    Thanks for the explanation grahammechanical. That makes sense.
    Partitions are fine, you have 912.14 GiB remaining in your volume group that can be used.

    issue should be with webmin, which I don't use, so i can't help you here.
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  6. #6
    Join Date
    Dec 2015
    Beans
    61

    Re: No "root" Partition in Logical Volume Management

    Ok, that's a relief, at least the existing partitions are okay. Do you think I should just create the new LVM I want via the CLI then?

  7. #7
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: No "root" Partition in Logical Volume Management

    Quote Originally Posted by robo731 View Post
    Ok, that's a relief, at least the existing partitions are okay. Do you think I should just create the new LVM I want via the CLI then?
    Yep,

    Use something like
    Code:
    sudo lvcreate -L10G -nmylv UbuntuServer-vg
    The above will create a 10G LVM LV with the name of 'mylv'
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  8. #8
    Join Date
    Dec 2015
    Beans
    61

    Re: No "root" Partition in Logical Volume Management

    Ok, thanks. I'll use that, but will that make a it contiguous or non-contiguous? Also, I intend to use the folder to hold media, mostly video files and I plan to access those files from windows systems. What file system will that command create? Should I be concerned with which filesystem to use for this LV or does it not matter since I'm using samba?

  9. #9
    Join Date
    Nov 2008
    Location
    S.H.I.E.L.D. 6-1-6
    Beans
    Hidden!
    Distro
    Ubuntu Development Release

    Re: No "root" Partition in Logical Volume Management

    Add the
    Code:
    -C y
    flag if you want it to be contiguous.

    Filesystem is up to you, ext4 is good for general stuff, jfs is good for small files, xfs is good for large files, I generally just use ext4 as there is not a massive difference.
    Don't waste your energy trying to change opinions ... Do your thing, and don't care if they like it.

  10. #10
    Join Date
    Dec 2015
    Beans
    61

    Re: No "root" Partition in Logical Volume Management

    Ok, I think I'll leave it as non-contiguous and use ext4 as I can't find any advantages to using NTFS instead of ext4. I'll just make it a samba share. Thanks for the help.

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
  •