Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Somehow I have created a mount point for FAT32 space which I have no idea how to remove. This mount point was intended to be for my external HDD. But, as my external HDD turned to be none FAT32, I got the mount point without knowing on what partition it is based on.
The new mount name is "ex_hdd" and is under /media and it is taking 19GB. However, I can not find it when I run the mount command:
Quote:
/dev/sda5 on / type ext3 (rw,relatime,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
/sys on /sys type sysfs (rw,noexec,nosuid,nodev)
varrun on /var/run type tmpfs (rw,noexec,nosuid,nodev,mode=0755)
varlock on /var/lock type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
udev on /dev type tmpfs (rw,mode=0755)
devshm on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
lrm on /lib/modules/2.6.24-19-generic/volatile type tmpfs (rw)
/dev/sda7 on /home type ext3 (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/hasan/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=hasan)
/dev/scd0 on /media/cdrom0 type iso9660 (ro,nosuid,nodev,utf8,user=hasan)
/dev/sdb1 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal)
I tried the command umount but it gave me the message
Distribution: slackware, suse, anything that begins with S
Posts: 46
Rep:
When you say it is taking up 19Gb, what do you mean? If there is nothing mounted on the mountpoint, then it's just an empty folder. What happens when you do
ls /media/ex_hdd
There will be an entry for the mountpoint in the file /etc/fstab that you should be able to simply remove, however editing this file without knowing what you are doing can be dangerous, so learn a little about it first. (or if you are using a distro with a gui then you could use that to remove the mountpoint entry)
edit: to find out which partitions are mounted use the command df -h (which actually shows diskspace free and used, but it also shows if a partition is mounted)
Many thanks for your help.
The command "ls /media/ex_hdd" shows nothing as there is nothing under ex_hdd.
The 19GB figure is what I got from the properties of the mount/folder it says Free Space 19.0 GB
I'm wondering if my original attempt to mount the external HDD didn't work and I just created a normal folder under /media. Would it be OK, if I just delete this?
Distribution: slackware, suse, anything that begins with S
Posts: 46
Rep:
It's just an empty folder then and could safely be deleted, however depending on how your system is set up it might get recreated at next boot time. If you have a gui config app for disk's I'd use that to remove the entry for it. If not you want to remove the line from your /etc/fstab that will look a bit like this
Quote:
/dev/sda1 /media/ext_hdd fat32 defaults 0 0
Be carefull though if you do it by hand and make sure you are not removing an entry that is vital to your system booting.
Or if the entry doesn't exist, no worries and the folder can just be deleted.
edit: The 19Gb thing is because it is just a folder that is on /, so oyu have 19G free on /
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.