Find the answer to your Linux question:
Results 1 to 5 of 5
Hi all, Ubuntu 12.04 desktop 64bit I selected manual partioning and selecting logical on; /boot /root swap However after reboot I can't find LV; $ sudo fdisk -l Code: [sudo] ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,791

    Unable to create LV


    Hi all,

    Ubuntu 12.04 desktop 64bit

    I selected manual partioning and selecting logical on;

    /boot
    /root
    swap

    However after reboot I can't find LV;

    $ sudo fdisk -l
    Code:
    [sudo] password for satimis: 
    
    Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
    255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x0008f463
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048      976895      487424   83  Linux
    /dev/sda2          978942  2930276351  1464648705    5  Extended
    /dev/sda5          978944  2911133695  1455077376   83  Linux
    /dev/sda6      2911135744  2930276351     9570304   82  Linux swap / Solaris
    I tried 3 times with the same result. I also tried not selecting /boot logical

    Please help. Whether HD exceeding 1TB can't partitioned as LV?

    TIA

    B.R.
    satimis

  2. #2
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    You might find the following helpful;

    LVM Administrator's Guide

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,791
    Quote Originally Posted by Lazydog View Post
    You might find the following helpful;

    LVM Administrator's Guide
    Hi,

    Thanks for your link.

    I made a mistake not using the Alternative Installer ISO installing Ubuntu and selecting manual partitioning. I couldn't create LVM. I have to reinstall Ubuntu using Alternative Installer.


    Edit
    ===

    Now I have Ubuntu 12.04 desktop 64bit reinstalled

    $ sudo fdisk -l
    Code:
    Disk /dev/sda: 1500.3 GB, 1500301910016 bytes
    255 heads, 63 sectors/track, 182401 cylinders, total 2930277168 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x000bf74f
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048      499711      248832   8e  Linux LVM
    /dev/sda2          501758  2930276351  1464887297    5  Extended
    /dev/sda5          501760  2930276351  1464887296   8e  Linux LVM
    
    Disk /dev/mapper/LVM1.5D-root: 300.0 GB, 299997593600 bytes
    255 heads, 63 sectors/track, 36472 cylinders, total 585932800 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/mapper/LVM1.5D-root doesn't contain a valid partition table
    
    Disk /dev/mapper/LVM1.5D-swap: 4999 MB, 4999610368 bytes
    255 heads, 63 sectors/track, 607 cylinders, total 9764864 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/mapper/LVM1.5D-root doesn't contain a valid partition table
    
    Disk /dev/mapper/LVM1.5D-swap: 4999 MB, 4999610368 bytes
    255 heads, 63 sectors/track, 607 cylinders, total 9764864 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/mapper/LVM1.5D-swap doesn't contain a valid partition table
    
    Disk /dev/mapper/LVM1.5D-data: 1195.0 GB, 1195045289984 bytes
    255 heads, 63 sectors/track, 145289 cylinders, total 2334072832 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/mapper/LVM1.5D-data doesn't contain a valid partition table
    
    Disk /dev/sdb: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
    Units = sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disk identifier: 0x00000000
    
    Disk /dev/sdb doesn't contain a valid partition table

    What is;
    Code:
    Disk /dev/sdb doesn't contain a valid partition table
    ?

    Furthermore;
    /data is owned by root. Can I change its owner to satimis(myself) for convenience. So that I can save working documents on it?

    satimis
    Last edited by satimis; 12-28-2012 at 06:48 AM.

  4. #4
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,677
    Quote Originally Posted by satimis View Post
    What is;
    Code:
    Disk /dev/sdb doesn't contain a valid partition table
    ?
    It means that you haven't created any partitions on that drive, in other words the drive is bare.

    Furthermore;
    /data is owned by root. Can I change its owner to satimis(myself) for convenience. So that I can save working documents on it?

    satimis
    You can do what ever you like but I would suggest you leave root the owner and use chmod to allow users to write to it.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

  5. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,791
    Quote Originally Posted by Lazydog View Post
    - snip -
    You can do what ever you like but I would suggest you leave root the owner and use chmod to allow users to write to it.
    Hi Robert,

    Thanks for your advice.

    I have following 2 questions;

    1)
    Whether
    Keep /data owned by root
    drwxr-xr-x 7 root root 4096 Dec 29 00:48 /data

    Give rwx permission to the users of the group
    chmod go+rwx -R /data

    $ cat /etc/group | grep data
    www-data:33:

    Add users allowed to group
    Code:
    www-data:x:33:userA userB userC etc

    2)
    I keep all VMs on "/data/Virtual VMs" directory
    How to allow userA userB userC etc running the VM owned by them only?

    Now;
    $ ls -al /data/VirtualBox\ VMs/
    Code:
    total 12
    drwxrwxr-x 3 satimis satimis 4096 Dec 29 00:49 .
    drwxr-xr-x 7 satimis satimis 4096 Dec 29 00:48 ..
    drwx------ 3 satimis satimis 4096 Dec 29 00:52 cloudera
    drwx------ 2 satimis satimis 4096 Dec 29 10:50 deb600dk00
    etc.
    satimis is the Administrator
    e.g.
    userA owns cloudera
    userB owns deb600dk00

    TIA


    Regards
    satimis

Posting Permissions

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