Page 1 of 3 123 LastLast
Results 1 to 10 of 25

Thread: Samba only lists primary drive?

  1. #1
    Join Date
    Jul 2013
    Beans
    15

    Question Samba only lists primary drive?

    I setup a ubuntu server machine within my home to learn the basics of linux server management. I was able to successfully get samba running on my home network but only have access to the "primary" bootable hdd on my linux server box... I have 3 drives inside let me know if you see my problem..... I think my other drives are not mounting properly so here is my f disk and fstab:

    sudo fdisk -l


    Disk /dev/sda: 200.0 GB, 200049647616 bytes
    255 heads, 63 sectors/track, 24321 cylinders, total 390721968 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: 0x000d33d7


    Device Boot Start End Blocks Id System
    /dev/sda1 * 2048 386529279 193263616 83 Linux
    /dev/sda2 386531326 390721535 2095105 5 Extended
    /dev/sda5 386531328 390721535 2095104 82 Linux swap / Solaris


    Disk /dev/sdb: 500.1 GB, 500107862016 bytes
    255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x0005b699


    Device Boot Start End Blocks Id System
    /dev/sdb1 2048 972580863 486289408 83 Linux
    /dev/sdb2 972582910 976771071 2094081 5 Extended
    /dev/sdb5 972582912 976771071 2094080 82 Linux swap / Solaris


    Disk /dev/sdc: 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: 0x00090871


    Device Boot Start End Blocks Id System
    /dev/sdc1 2048 499711 248832 83 Linux
    /dev/sdc2 501758 312580095 156039169 5 Extended
    /dev/sdc5 501760 312580095 156039168 8e Linux LVM


    Disk /dev/mapper/tomaino--server--vg-root: 157.6 GB, 157634527232 bytes
    255 heads, 63 sectors/track, 19164 cylinders, total 307879936 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/tomaino--server--vg-root doesn't contain a valid partition table


    Disk /dev/mapper/tomaino--server--vg-swap_1: 2147 MB, 2147483648 bytes
    255 heads, 63 sectors/track, 261 cylinders, total 4194304 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/tomaino--server--vg-swap_1 doesn't contain a valid partition table

    *****Fstab:
    adamtomaino@tomaino-server:~$ sudo nano /etc/fstab
    GNU nano 2.2.6 File: /etc/fstab


    # /etc/fstab: static file system information.
    # /etc/fstab: static file system information.
    #
    # Use 'blkid' to print the universally unique identifier for a
    # device; this may be used with UUID= as a more robust way to name devices
    # that works even if disks are added and removed. See fstab(5).
    #
    # <file system> <mount point> <type> <options> <dump> <pass>
    /dev/mapper/tomaino--server--vg-root / ext4 errors=remount-ro 0 1
    # /boot was on /dev/sdc1 during installation
    UUID=a4d8a441-3131-4297-8d2b-5050fb9855c7 /boot ext2 defaults 0 2
    /dev/mapper/tomaino--server--vg-swap_1 none swap sw 0 2
    # swap was on /dev/sdb5 during installation
    UUID=63fe9b6d-792e-41c9-a560-0478f1c3ab09 none swap sw 0 2
    /dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
    # /etc/fstab: static file system information.



    Thanks for any advice you can provide. This is a learning experience and I appreciate any advice or recommended reading/watching material .-AT
    Last edited by adamtomaino; July 11th, 2013 at 02:08 AM.

  2. #2
    Join Date
    Mar 2008
    Location
    My own private dimension
    Beans
    12
    Distro
    Kubuntu 7.10 Gutsy Gibbon

    Re: Samba only lists primary drive?

    Hmm, it looks to me like you have them all set up to use LVM. If you run 'df -h' (without the quotes), does the size for your root volume make sense? Is it the size of all of your disks combined?

    Recommended reading material? Beginner's Guide to LVM. LVM is kinda complicated to understand and make work!

  3. #3
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Samba only lists primary drive?

    In addition to the above command, please give the output of:

    Code:
    sudo mount
    Code:
    sudo blkid
    Code:
    vgdisplay
    Code:
    pvdisplay
    When you installed/setup LVM, where did you expect/setup the additional drives to be mounted?
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  4. #4
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Samba only lists primary drive?

    In addition to the above command, please give the output of:

    Code:
    sudo mount
    Code:
    sudo blkid
    Code:
    sudo vgdisplay
    Code:
    sudo pvdisplay
    When you installed/setup LVM, where did you expect/setup the additional drives to be mounted?
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  5. #5
    Join Date
    Jul 2013
    Beans
    15

    Talking Re: Samba only lists primary drive?

    Quote Originally Posted by volkswagner View Post
    In addition to the above command, please give the output of:

    Code:
    sudo mount
    Code:
    sudo blkid
    Code:
    sudo vgdisplay
    Code:
    sudo pvdisplay
    When you installed/setup LVM, where did you expect/setup the additional drives to be mounted?
    df -h
    Filesystem Size Used Avail Use% Mounted on
    /dev/mapper/tomaino--server--vg-root 145G 15G 123G 11% /
    none 4.0K 0 4.0K 0% /sys/fs/cgroup
    udev 992M 12K 992M 1% /dev
    tmpfs 201M 440K 200M 1% /run
    none 5.0M 0 5.0M 0% /run/lock
    none 1002M 0 1002M 0% /run/shm
    none 100M 0 100M 0% /run/user
    /dev/sdc1 228M 30M 187M 14% /boot
    adamtomaino@tomaino-server:~$


    -------------------
    sudo mount

    /dev/mapper/tomaino--server--vg-root on / type ext4 (rw,errors=remount-ro)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    none on /sys/fs/cgroup type tmpfs (rw)
    none on /sys/fs/fuse/connections type fusectl (rw)
    none on /sys/kernel/debug type debugfs (rw)
    none on /sys/kernel/security type securityfs (rw)
    udev on /dev type devtmpfs (rw,mode=0755)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
    tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
    none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
    none on /run/shm type tmpfs (rw,nosuid,nodev)
    none on /run/user type tmpfs (rw,noexec,nosuid,nodev,size=104857600,mode=0755)
    /dev/sdc1 on /boot type ext2 (rw)

    ---------------------------
    sudo blkid
    /dev/sdb1: UUID="c2c78d07-24d2-4c7a-b338-2fd32155a87c" TYPE="ext4"
    /dev/sdb5: UUID="63fe9b6d-792e-41c9-a560-0478f1c3ab09" TYPE="swap"
    /dev/sdc1: UUID="a4d8a441-3131-4297-8d2b-5050fb9855c7" TYPE="ext2"
    /dev/sdc5: UUID="UMUjlq-tTxV-9Xld-1kvh-uimw-NlXm-13XuHO" TYPE="LVM2_member"
    /dev/mapper/tomaino--server--vg-root: UUID="f0a80bb7-694a-4c97-bae2-97ae608840a5" TYPE="ext4"
    /dev/mapper/tomaino--server--vg-swap_1: UUID="d5f6da07-7692-49f3-8c7b-9000705fdae3" TYPE="swap"

    ----------------------------
    sudo vgdisplay
    --- Volume group ---
    VG Name tomaino-server-vg
    System ID
    Format lvm2
    Metadata Areas 1
    Metadata Sequence No 3
    VG Access read/write
    VG Status resizable
    MAX LV 0
    Cur LV 2
    Open LV 2
    Max PV 0
    Cur PV 1
    Act PV 1
    VG Size 148.81 GiB
    PE Size 4.00 MiB
    Total PE 38095
    Alloc PE / Size 38095 / 148.81 GiB
    Free PE / Size 0 / 0
    VG UUID ic12Cg-uXyG-0kst-Sq2J-K1bh-3U22-Y7ruiu
    ----------------
    sudo pvdisplay
    --- Physical volume ---
    PV Name /dev/sdc5
    VG Name tomaino-server-vg
    PV Size 148.81 GiB / not usable 2.00 MiB
    Allocatable yes (but full)
    PE Size 4.00 MiB
    Total PE 38095
    Free PE 0
    Allocated PE 38095
    PV UUID UMUjlq-tTxV-9Xld-1kvh-uimw-NlXm-13XuHO


    Thanks for the help-AT
    Last edited by adamtomaino; July 13th, 2013 at 02:33 AM.

  6. #6
    Join Date
    Jul 2013
    Beans
    15

    Re: Samba only lists primary drive?

    I have 3 hdd's but only primary appears... blkid lists all hdds present but nothing else ?/

  7. #7
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Samba only lists primary drive?

    Quote Originally Posted by adamtomaino View Post
    I have 3 hdd's but only primary appears... blkid lists all hdds present but nothing else ?/
    Correct.

    Now would be a good time to describe what your intentions are and/or how you thought things were setup during the install.
    How would you like to use/mount the additional drives?
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  8. #8
    Join Date
    Jul 2013
    Beans
    15

    Re: Samba only lists primary drive?

    Quote Originally Posted by volkswagner View Post
    Correct.

    Now would be a good time to describe what your intentions are and/or how you thought things were setup during the install.
    How would you like to use/mount the additional drives?
    I would like to allocate all hdd space to my samba server for storage use. Ext4 is fine. I am not sure how to mount the drives and have smb recognize them.
    Last edited by adamtomaino; July 13th, 2013 at 06:28 PM.

  9. #9
    Join Date
    May 2007
    Location
    NY's first capital
    Beans
    2,868
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Samba only lists primary drive?

    Well, I was hoping for a more descriptive response.

    Do you want to use LVM?
    Do you want to use a single mount point or multiple mount points.

    When you installed the OS, did you assign the disks to a mount point?

    Where would you like to mount the additional drives?

    Why do you have swap defined twice?

    According to your /etc/fstab/ swap is actually on /dev/sdb5 and /dev/mapper/tomaino--server--vg-swap_1 aka "/dev/sdc5" which is part of LVM.
    You created swap partitions on all of your disks, which is not typical.

    What how-to were you following?
    Nothing is ever easy, but if it is difficult you must be doing it wrong.

  10. #10
    Join Date
    Jul 2013
    Beans
    15

    Re: Samba only lists primary drive?

    Quote Originally Posted by volkswagner View Post
    Well, I was hoping for a more descriptive response.

    Do you want to use LVM?
    Do you want to use a single mount point or multiple mount points.

    When you installed the OS, did you assign the disks to a mount point?

    Where would you like to mount the additional drives?

    Why do you have swap defined twice?

    According to your /etc/fstab/ swap is actually on /dev/sdb5 and /dev/mapper/tomaino--server--vg-swap_1 aka "/dev/sdc5" which is part of LVM.
    You created swap partitions on all of your disks, which is not typical.

    What how-to were you following?
    Sorry for the limited description. A more detailed description is beyond my current knowledge level. I do not have any need to setup LVM and would prefer a single mount point. I "think" i assigned a mount point during the ubuntu server install, but I had to reinstall "few" times (probably where the double swap came from). I wasn't really following any "how to" i am sure you can tell... should to do a fresh reinstall with a real how to? I was hoping i could reformat a few drives and edit the fstab and everything would work, but maybe i am a wishful thinker "-AT

Page 1 of 3 123 LastLast

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
  •