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

Thread: Newby Needs Help Mounting HDD

  1. #1
    Join Date
    Aug 2021
    Beans
    12

    Newby Needs Help Mounting HDD

    New to Linux. Running Mint. Been trying to fix this issues for a many hours;
    Laptop has two drives,

    ~ 500gb SSD - has linux OS
    ~ 1TB HDD - formatted ex4

    Initially the 1TB drive mounted, had it on the desktop, it will not mount now, it's listed in "Disks"
    It's location is /dev/sda2

    It's in timelapse, can access it there, not helpful. Many attempts with terminal return "Command not found"
    I find code and command lines challenging, i really could use some help, I want this 1TB drive to be mounted in the root and auto mount at boot up.

    Thank you.

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,892
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Newby Needs Help Mounting HDD

    lenny54linux; Hello - Welcome to the Forum

    mounted in the root and auto mount at boot up.
    That is the function of the /etc/fstab file. One edits this file for a desired result.

    Please see:
    https://help.ubuntu.com/community/Fstab
    https://help.ubuntu.com/community/Au...temwide_Mounts
    http://ubuntuforums.org/showthread.php?t=283131 <- bodhi.zazen -Understanding fstab
    http://ubuntuforums.org/showthread.php?t=1983336 <-Manualy edit fstab - why(Morbius1)

    If additional aid is needed, please provide us with your /etc/fstab file - between code tags
    Code:
    cat /etc/fstab
    code tag tutorial:
    http://ubuntuforums.org/showthread.p...8#post12776168


    sda2 is a partition on the first device sda - I would expect the data drive to be identified as sdb -
    Show us what the system sees:
    Code:
    sudo parted -l
    sudo blkid
    help is what we do
    Last edited by Bashing-om; August 1st, 2021 at 01:04 AM.
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  3. #3
    Join Date
    Aug 2021
    Beans
    12

    Re: Newby Needs Help Mounting HDD

    Thank you, I could not get anywhere with fstab, here's the sys info:

    $ cat /etc/fstab
    # /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/vgmint-root / ext4 errors=remount-ro 0 1
    # /boot was on /dev/nvme0n1p2 during installation
    UUID=0441cf0d-4a5d-45af-98df-9bc2639081ec /boot ext4 defaults 0 2
    # /boot/efi was on /dev/nvme0n1p1 during installation
    UUID=A6FE-11DA /boot/efi vfat umask=0077 0 1
    /dev/mapper/vgmint-swap_1 none swap sw 0 0





    Model: ATA ST1000LM035-1RK1 (scsi)
    Disk /dev/sda: 1000GB
    Sector size (logical/physical): 512B/4096B
    Partition Table: gpt
    Disk Flags:


    Number Start End Size File system Name Flags
    2 135MB 1000GB 1000GB ext4 Basic data partition




    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/vgmint-swap_1: 1028MB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    Disk Flags:


    Number Start End Size File system Flags
    1 0.00B 1028MB 1028MB linux-swap(v1)




    Model: Linux device-mapper (linear) (dm)
    Disk /dev/mapper/vgmint-root: 510GB
    Sector size (logical/physical): 512B/512B
    Partition Table: loop
    Disk Flags:


    Number Start End Size File system Flags
    1 0.00B 510GB 510GB ext4




    Error: /dev/mapper/nvme0n1p3_crypt: unrecognised disk label
    Model: Linux device-mapper (crypt) (dm)
    Disk /dev/mapper/nvme0n1p3_crypt: 511GB
    Sector size (logical/physical): 512B/512B
    Partition Table: unknown
    Disk Flags:


    Model: ADATA SX8200PNP (nvme)
    Disk /dev/nvme0n1: 512GB
    Sector size (logical/physical): 512B/512B
    Partition Table: gpt
    Disk Flags:


    Number Start End Size File system Name Flags
    1 1049kB 538MB 537MB fat32 EFI System Partition boot, esp
    2 538MB 1305MB 768MB ext4
    3 1305MB 512GB 511GB
    Last edited by lenny54linux; August 1st, 2021 at 01:32 AM.

  4. #4
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,892
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Newby Needs Help Mounting HDD

    lenny54linux - yukkie on me

    I know nothing about the encryption level
    Error: /dev/mapper/nvme0n1p3_crypt
    Will require those who have the knowledge to further aid and assist.

    - A know-it-all I am not-
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

  5. #5
    Join Date
    Jun 2007
    Location
    Arizona U.S.A.
    Beans
    5,004

    Re: Newby Needs Help Mounting HDD

    You need to get the UUID of the partition you want to mount on the HDD, and create a folder where you want it mounted (mount point) at startup. Once you have that, the fstab entry can be constructed:

    If you mount at /mnt/DataDisk, substitute the actual partition's UUID for the one shown, add this line to /etc/fstab and it should work.

    Code:
     UUID=f686a8ce-3094-4b46-b497-b8ee883ba951 /mnt/DataDisk ext4 defaults 0 2
    You must also change the owner of the mount point to your user name in order to use the disk.

    Code:
    sudo chown -R you:you /mnt/DataDisk
    replace 'you' by your user name.

  6. #6
    Join Date
    Aug 2021
    Beans
    12

    Re: Newby Needs Help Mounting HDD

    Thank you,

    when I run: UUID=f686a8ce-3094-4b46-b497-b8ee883ba951 /mnt/DataDisk ext4 defaults 0 2

    I get this:
    bash: /mnt/DataDisk: No such file or directory


    For this one: sudo chown -R you:you /mnt/DataDisk

    I can't get it to work, not sure on the user name, I installed from USB as OEM, but I tried:

    oem@M4:~$ UUID=f686a8ce-3094-4b46-b497-b8ee883ba951 /mnt/DataDisk ext4 defaults 0 2
    bash: /mnt/DataDisk: No such file or directory
    oem@M4:~$ sudo chown -R M4:M4 you /mnt/DataDisk
    [sudo] password for oem:
    chown: invalid user: ‘M4:M4’
    oem@M4:~$ sudo chown -R OEM@M4:OEM@M4 /mnt/DataDisk
    chown: invalid user: ‘OEM@M4:OEM@M4oem@M4:~$ sudo chown -R M4:M4 /mnt/DataDisk
    chown: invalid user: ‘M4:M4’

  7. #7
    Join Date
    Aug 2021
    Beans
    12

    Re: Newby Needs Help Mounting HDD

    Devise: /dev/sda2

    UUID: 15e2d829-2450-4d9a-a4a4-2193dbe97a83

    Partition file: Linux Filesystem

    Contents: Ext4 (version 1.0) — Mounted at /run/timeshift/backup

    Thanks.

  8. #8
    Join Date
    Aug 2021
    Beans
    12

    Re: Newby Needs Help Mounting HDD

    I did create a folder: /media/FILES

    UUID=15e2d829-2450-4d9a-a4a4-2193dbe97a83 /mnt/FILES ext4 defaults 0 2bash: /mnt/FILES: No such file or directory
    Last edited by lenny54linux; August 1st, 2021 at 02:58 AM.

  9. #9
    Join Date
    Feb 2008
    Location
    Texas
    Beans
    29,639
    Distro
    Ubuntu 20.04 Focal Fossa

    Re: Newby Needs Help Mounting HDD

    Moved to mint sub-forum.

  10. #10
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    13,892
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: Newby Needs Help Mounting HDD

    lenny54linux; Well -

    1) Got to have a valid directory for the mountpoint:
    what shows:
    Code:
    ls -al /mnt/
    #or added
    ls -al /media/
    where we are looking to see if "/mnt/DataDisk" does exist - else one will need to create it.

    2) ownership
    Who are "you" on this system:
    Code:
    who
    id
    so we can assign the correct owner to the file system in question. Be aware that this user must have the ability to elevate privileges to administration of the system (sudo rights).

    for example for ME on MY system -would be
    Code:
    sudo chown sysop:sysop /mnt/DataDisk/
    where I am "sysop" on my system.

    my bit to try and help
    THE current(cy) in Documentation:
    https://help.ubuntu.com/community/PopularPages

    Happy ubuntu'n !

Page 1 of 3 123 LastLast

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
  •