Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: /media has my external drive mounted and won't let go

Hybrid View

  1. #1
    Join Date
    Jan 2008
    Location
    Canada
    Beans
    430
    Distro
    Kubuntu 14.10 Utopic Unicorn

    Question /media has my external drive mounted and won't let go

    I'm running Voyager 64bit which is basically xubuntu on an 11GB partition.

    After installing humble bundle 6 I ran out of space (/ and home on same partition)

    I successfully expanded the space with a live boot of gparted last night to 16GB.

    Tonight I'm out of space again.

    I have an external drive regularly attached that Deluge uses.

    I unattached the drive, rebooted, and find part of it still in /media, I guess as much as would fit (properties said 20GB (??))

    I probably manually mounted it some time ago when trying to learn how to have it mount automatedly.

    How to unmount and just have it mount when attached and not use local space?

  2. #2
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    12,484
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: /media has my external drive mounted and won't let go

    finny388; Hi !

    Firstly, I would be concerned with the disk space usage, and start with checking my log files for huge ones.

    media mounts: do you properly unmount the drive prior to unplugging it?
    Is there an entry in /etc/fstab file for media ? As usb devices are auto detected and mounted to media I do not believe there is a need to list the device in fstab ?


    just try'n to help <==BDQ

  3. #3
    Join Date
    Jan 2008
    Location
    Canada
    Beans
    430
    Distro
    Kubuntu 14.10 Utopic Unicorn

    Re: /media has my external drive mounted and won't let go

    thanks
    Firstly, I would be concerned with the disk space usage, and start with checking my log files for huge ones.
    It appears that /media is the space problem. Many files/folders for my external drive are mirrored there.

    I don't know how to check logs

    here is my fstab

    Code:
    # /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>
    proc            /proc           proc    nodev,noexec,nosuid 0       0
    # / was on /dev/sda9 during installation
    UUID=7d503083-eac3-4bb7-af6a-e05cca8157f3 /               ext4    errors=remount-ro 0       1
    # swap was on /dev/sda5 during installation
    UUID=49d823b5-af8b-494d-86be-df3d29a41636 none            swap    sw              0       0
    # FH
    #/dev/sda11     /media/LOCAL_HD ext4    umask=000       0       0
    #/dev/sdb1      /media/HITACHI  ntfs-3g umask=000       0       0
    #HITACHI
    #UUID="482EDE3C2EDE22AC"
    #LOCAL_HD
    #UUID="8484529f-db3d-40dd-b950-8bcf2030cfa6"

  4. #4
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    12,484
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: /media has my external drive mounted and won't let go

    finny388; yuk!

    fstab entry for sda11 is invalid mixture of ubuntu/windows options.

    and again I do not see why you need to mount the usb devide in fstab ( i run usb drive formated fat32 with no probs at all auto mounting)
    related: is sdb1 the usb drive ?
    This is a great tutorial on fstab:
    http://ubuntuforums.org/showthread.php?t=283131
    and a primer:
    https://help.ubuntu.com/community/Fstab

    lets look at what your partitions look like and your UUID assignments;
    terminal code:
    Code:
    sudo fdisk -l
    sudo blkid
    definitely check log file sizes:
    Code:
    ls -la /var/log/
    anything "large" :
    Code:
    cat /var/log/<filename> | less
    to get an idea of what is going on.
    then all old files may be safely deleted.
    one step at a time gets it done ==>BDQ

  5. #5
    Join Date
    Jan 2008
    Location
    Canada
    Beans
    430
    Distro
    Kubuntu 14.10 Utopic Unicorn

    Re: /media has my external drive mounted and won't let go

    yes, sdb1 was the external usb drive (below it is my usb key with gparted)

    Code:
    > sudo fdisk -l
    
    Disk /dev/sda: 250.1 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x29133921
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048   104856254    52427103+   7  HPFS/NTFS/exFAT
    /dev/sda2       104856255   136327589    15735667+  1c  Hidden W95 FAT32 (LBA)
    /dev/sda3       488355840   488397167       20664   ef  EFI (FAT-12/16/32)
    /dev/sda4       136331262   482211839   172940289    f  W95 Ext'd (LBA)
    /dev/sda5       136331264   146571263     5120000   82  Linux swap / Solaris
    /dev/sda6       146573312   171149311    12288000   83  Linux
    /dev/sda7       171151360   195727359    12288000   83  Linux
    /dev/sda8       195729408   220305407    12288000   83  Linux
    /dev/sda9       233971712   269461503    17744896   83  Linux
    /dev/sda10      269463552   482211839   106374144   83  Linux
    
    Partition table entries are not in disk order
    
    Disk /dev/sdb: 4022 MB, 4022337024 bytes
    124 heads, 62 sectors/track, 1021 cylinders, total 7856127 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: 0x00041fd5
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sdb1   *          62     7849447     3924693    b  W95 FAT32
    Code:
    > sudo blkid
    /dev/sda1: LABEL="Windows7" UUID="D074D6AA74D69298" TYPE="ntfs" 
    /dev/sda2: LABEL="RECOVERYM-^UGV" UUID="86F4-D40A" TYPE="vfat" 
    /dev/sda5: UUID="49d823b5-af8b-494d-86be-df3d29a41636" TYPE="swap" 
    /dev/sda6: LABEL="MINT13_XFCE" UUID="13f65ba2-df3f-4823-9f64-3560b9cee6e0" TYPE="ext4" 
    /dev/sda7: LABEL="MINT12_KDE" UUID="24b232e3-341f-48d7-b602-4d32a822ce30" TYPE="ext4" 
    /dev/sda8: LABEL="UBUNTU1204" UUID="af948a83-eadb-46e1-94fa-8629271a7b0b" TYPE="ext4" 
    /dev/sda9: LABEL="VOYAGER" UUID="7d503083-eac3-4bb7-af6a-e05cca8157f3" TYPE="ext4" 
    /dev/sda10: LABEL="LOCAL_HD" UUID="8484529f-db3d-40dd-b950-8bcf2030cfa6" TYPE="ext4" 
    /dev/sdb1: LABEL="GPARTED" UUID="8616-CB80" TYPE="vfat"
    ls -la /var/log/

    Largest log file is 1.7M. The rest are less than 1M at 15K, 40K, a couple 500K

    Code:
    > cat /var/log/<filename> | less
    bash: syntax error near unexpected token `|'
    I do know that all the space used up is in /media. There are many large files in there. I don't need them.

    Do I just delete the folder HITACHI and all its contents or do I have to unmount it or both? (HITACHI is the drive name of my Hitachi external harddrive)
    Last edited by finny388; October 17th, 2012 at 05:49 AM. Reason: Clarification

  6. #6
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    12,484
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: /media has my external drive mounted and won't let go

    I am looking... may take me a while to digest this ... and is late here my time, I am tired and at this point I tend to make stupid judgment calls, so will look this over and advise in my AM.
    Obviously will have to edit /etc/fstab.. I will be careful in my advisement.

    I notice the boot flag is set for the sdb1 usb device, are you booting ubuntu from the device ?

    sda11 ? is that to be a shared data partition ? and shared to all 3 operating systems - I see mint, windows and ubuntu ?

    The current /media folder ..insure all are duplicates and as far as correcting fstab --- delete everything. If required we will make a mount point there later.
    just try'n to help <==BDQ

  7. #7
    Join Date
    Jan 2005
    Location
    South Africa
    Beans
    2,098
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: /media has my external drive mounted and won't let go

    Quote Originally Posted by finny388 View Post
    I unattached the drive, rebooted, and find part of it still in /media, I guess as much as would fit (properties said 20GB (??))
    That is more than likely the result of a failed mount (e.g. your disk was not connected and deluge started writing there).

    Just delete the content (make sure the drive is not connected )

    Edit
    I see that you already might have figured that out.
    Last edited by Wim Sturkenboom; October 18th, 2012 at 06:01 AM.
    If you don't make backups of your important data, your data is obviously not important to you.

  8. #8
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    12,484
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: /media has my external drive mounted and won't let go

    @ Wim Sturkenboom Tks, appreciate others looking over my shoulder - correct me when I am in error !

    @ finny388: On target, did the homework, and here is my suggestion for the usb device:
    Lets make the mount point in /media -> greater versitility as shows up when mounted in both the places pane and the desktop; thus:

    plug in the usb drive and:
    verify the uuid (again !):
    Code:
    ls /dev/disk/by-uuid -lah
    Code:
    sudo mkdir /media/HITACHI
    make a back-up of the current /etc/fstab -> cause anything can happen !
    Code:
    cp /etc/fstab /etc/fstab-old
    now for our edit in /etc/fstab:
    Code:
    gksudo gedit /etc/fstab
    copy/paste this as one line line into /etc/fstab:
    UUID=8616-CB80 /media/HITACHI vfat user,uid=1000,gid=100,utf8,dmask=027,fmask=137 0 0

    is the uuid correct ?
    save the changes .. exit out of gedit .....reboot ( I prefer re-boot rather than re-mounting).

    Thanks to bodhi.zazen and others !

    Please to advise on the results.
    after all these years->still learning <==BDQ

  9. #9
    Join Date
    Jan 2008
    Location
    Canada
    Beans
    430
    Distro
    Kubuntu 14.10 Utopic Unicorn

    Re: /media has my external drive mounted and won't let go

    Thank you for all your help bashing and all
    Sorry such a late reply

    I tried to add to fstab as per your instructions bashing-om.

    It failed to mount which halted boot with a "Status 32".

    This is the line I added:
    Code:
    UUID=482EDE3C2EDE22AC /media/HITACHI vfat user,uid=1000,gid=100,utf8,dmask=027,fmask=137 0 0
    It is an NTFS drive. Maybe vfat caused the error.

  10. #10
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    12,484
    Distro
    Xubuntu 16.04 Xenial Xerus

    Re: /media has my external drive mounted and won't let go

    Well, that is a distinct possibility....I go look at the epitome of fstabs:
    http://ubuntuforums.org/showthread.php?t=283131
    and:

    http://ubuntuforums.org/showthread.php?t=1604251
    I'll Be Back <== BDQ

Page 1 of 2 12 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
  •