Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

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

  1. #11
    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

    ubuntu automagically mounted things to /media
    in my experience

    turns out my external drive is not mounted:
    Code:
    > mount
    /dev/sda9 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/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)
    overflow on /tmp type tmpfs (rw,size=1048576,mode=1777)
    gvfs-fuse-daemon on /home/frank/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=frank)
    /dev/sda10 on /media/LOCAL_HD type ext4 (rw,nosuid,nodev,uhelper=udisks)
    I'm pretty sure this is what happened:
    I tried to get (let's just call my ext drive hitachi) hitachi to mount automatically through fstab - that's a fact, I don't know what that has to do with this.

    Guessing: At some point Deluge didn't see hitachi and created its own files as its default path is /media/HITACHI then it started downloading and filling my hard drive. Because going through the files, there are dozens of empty folders and the only real files are recent downloads. though there are 3 folders there that Deluge has nothing to do with.

    Well I'm going rm the files and the plug my hitachi back in and see what happens.

  2. #12
    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

    whoa rm is fast
    just deleted 9GB in the blink of an eye

    got space? yup.

    now to plug in...

    okay

    things look back to normal

    I use xmbc. Everytime I log in and run it can't see the files.
    So i go into Thunar, click on the drive (automagically mounting it) and return to xmbc and all is well.

    I was just hoping hitachi would stay mounted whenever plugged in. It only seems to mount when I open it a file browser. Is this where fstab comes in?

  3. #13
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,189
    Distro
    Xubuntu 22.04 Jammy Jellyfish

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

    That is a fact on only mounting through /media ->file manager(usb devices). If you want the usb mounted through fstab ...can be done, will have to jump through some hoops to make it happen.....
    Right off the top of my head I do not recall how...the fstab entry can only have validation if the drive is inserted else your log files fill up with errors and other unwanted side affects. trying to recall about the fstab's mount options ...The important thing is there is a way, will do some research and see what I can come up with.

    rm files: yeah, the way linux deals with files is a wonder in it's self (just delete the pointers and free up the inode, no messing around coping data for nothing).

    -------------------------------
    In my efforts to assist: ->remaining to be done--
    1. mount usb device through fstab
    2. mount sda8 (does it still have a valid operating system on it ??)
    3.mount sda10 Perhaps make it a shared partition between deluge,ubuntu,mint and windows ????? (re -partition to ntfs if so)
    4. Do you want to make a sda11 partition ?

    Am I all squared away at this time ?
    how bout that <==BDQ

  4. #14
    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.

  5. #15
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,189
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    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

  6. #16
    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.

  7. #17
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,189
    Distro
    Xubuntu 22.04 Jammy Jellyfish

    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

  8. #18
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,189
    Distro
    Xubuntu 22.04 Jammy Jellyfish

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

    I'm Back ->
    I agree I should use NTFS hummm do not know why/how I missed that.
    1. verify again the proper UUID as discrepancies between what we perceive:
    with the usb drive connected, determine the device's UUID:
    Code:
    ls /dev/disk/by-uuid -lah
    or this may be more readable:
    Code:
    sudo blkid
    2. Insure that the package "ntfs-3g" is installed (search in synaptic)
    3. copy paste this line into /etc/fstab:
    Code:
    UUID=youruuidnbr /media/HITACHI ntfs-3g auto,users,permissions 0 0
    courtesy of bodhi.zazen; insure a space delimiter after the UUID.
    4. re-mount -> looking for errors
    Code:
    sudo mount -a
    looking good ? <== BDQ

  9. #19
    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

    looking good!

    ntfs-3g wasn't installed so glad you mentioned that. maybe that was my fstab problem all along. (but then not sure what Ubuntu was doing 'automagically')

    mount -a complained that the folder didn't exist so created it and voila - it mounted.

    Then tried a reboot and no problems.

    Thanks Bashing-om! I learned a lot and finally getting this running automatically is a great feeling.


  10. #20
    Join Date
    Jul 2010
    Location
    ozarks, Arkansas, USA
    Beans
    14,189
    Distro
    Xubuntu 22.04 Jammy Jellyfish

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

    Hey ...In spite of my faults, we DO good work !

    I am ever pleased that you are, and your thanks gratifys .

    happy ubuntu'n

Page 2 of 2 FirstFirst 12

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
  •