Results 1 to 4 of 4

Thread: path to backup partition confuses me

  1. #1
    Join Date
    Jan 2008
    Location
    Davison, Michigan, U.S.A.
    Beans
    1,112

    path to backup partition confuses me

    I created a backup partition linked the /media directory. This may sound odd but I can not for the life of me remember how I linked them. Maybe I did it when I installed the OS. Anyway, the point of this post is to ask this...
    Why is the path to the backup partition /media/username/backup instead of /media/backup. In the file browser when I click on the media folder I go to a /username folder which is empty. When I click on the backup folder under "other locations" I am in the backup folder with a path of /media/username/backup.

    Am I missing something obvious? Did I link the backup partition to /media incorrectly? I just do not understand this.
    Last edited by sofasurfer; 4 Weeks Ago at 04:22 AM.

  2. #2
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: path to backup partition confuses me

    File browser now creates new mounts in /media/$USER, it used to not include the user.

    So if you created a partition with the label backup, it would auto mount to /media/$USER/backup.
    If internal partition often better to create mount point, give yourself ownership & permissions & add mount entry in fstab, so on reboot it is auto mounted without you having to click on it in your file browser.

    Post this:
    ls -l /media/$USER

    and:
    lsblk -o NAME,LABEL,PARTLABEL,SIZE,MOUNTPOINT | egrep -v "^loop"
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

  3. #3
    Join Date
    Jan 2008
    Location
    Davison, Michigan, U.S.A.
    Beans
    1,112

    Re: path to backup partition confuses me

    OK, here are the outputs...

    Code:
     
    $ ls -l /media/$USER
    total 0
    
    $ lsblk  -o NAME,LABEL,PARTLABEL,SIZE,MOUNTPOINT | egrep -v "^loop"
    NAME   LABEL  PARTLABEL   SIZE MOUNTPOINT
    sda                     223.6G 
    ├─sda2                      1K 
    ├─sda3                    512M 
    ├─sda5                   74.1G /
    └─sda6 BACKUP            50.2G 
    sr0                      1024M
    After I click on the backup partition in the file browser the commands show...

    Code:
     ls -l /media/$USER
    total 4
    drwxrwxrwx 3 root root 4096 Apr  8 14:41 BACKUP
    
    $ lsblk  -o NAME,LABEL,PARTLABEL,SIZE,MOUNTPOINT | egrep -v "^loop"
    NAME   LABEL  PARTLABEL   SIZE MOUNTPOINT
    sda                     223.6G 
    ├─sda2                      1K 
    ├─sda3                    512M 
    ├─sda5                   74.1G /
    └─sda6 BACKUP            50.2G /media/daryl/BACKUP
    sr0                      1024M
    Last edited by sofasurfer; 4 Weeks Ago at 05:49 PM.

  4. #4
    Join Date
    Jun 2009
    Location
    SW Forida
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: path to backup partition confuses me

    That then is all per the defaults.
    If you want it mounted anywhere else, you have to specify in fstab.

    I do not like Disks as it may not use correct parameters. Better to use template/example and adjust for your specifics
    https://askubuntu.com/questions/1649...unt-at-startup
    https://help.ubuntu.com/community/Mo...dowsPartitions
    http://ubuntuforums.org/showthread.php?t=1983336
    Create mount point, mount & edit fstab from user Morbius1 in Post # 6 - suggest using templates instead.

    If you need specify example with your details, post these:
    cat /etc/fstab
    sudo blkid -c /dev/null -o list
    or
    lsblk -o NAME,LABEL,PARTLABEL,SIZE,fsused,MOUNTPOINT,uuid | egrep -v "^loop"

    ** To find the correct UUID for your partitions:
    sudo blkid -c /dev/null -o list
    ** Then add the template with the correct UUID and mount point to fstab:
    sudo cp /etc/fstab /etc/fstab.backup
    sudo nano /etc/fstab
    ** And when you are done editing fstab and saving it run the following command to test for errors and mount the partitions without requiring a reboot. You will know before you reboot if something is amiss. Make sure you have partition unmounted if previously mounted:
    sudo mount -a
    Last edited by oldfred; 4 Weeks Ago at 07:34 PM.
    For more info on UEFI boot install & repair - Regularly Updated :
    http://ubuntuforums.org/showthread.php?t=2147295
    Please use Thread Tools above first post to change to [Solved] when/if answered completely.

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
  •