Questions dealing with Ubuntu's layout of files, permissions, and files that reside in special locations on disk.

learn more… | top users | synonyms

20
votes
5answers
6k views

Find directories with lots of files in

So a client of mine got an email from Linode today saying their server was causing Linode's backup service to blow up. Why? Too many files. I laughed and then ran: # df -ih Filesystem Inodes ...
123
votes
5answers
119k views

How is the /tmp directory cleaned up?

How is the /tmp directory cleaned up? Is it automatic? If so, how frequently is it cleaned up?
0
votes
2answers
116 views

Unable to write to ext4, No space left on device?

After creating a folder in my ext4 partition, copying some data to it, then moving that whole folder to another drive, I became unable to add additional data to the ext4 partition when I boot into ...
0
votes
1answer
44 views

Proper Linux filesystem from Ubuntu ISO file

It is known that one can install a Ubuntu iso file on a usb or hard drive, which itself yields the proper Linux filesystem which consists of folders: bin/ boot/ dev/ etc/ home/ lib/ media/ mnt/ opt/ ...
0
votes
1answer
31 views

Resizing filesystems

I have following filesystems on my Ubuntu 12.04: u@czarnobog:~$ df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/mapper/md1-md1 ext4 31G 27G 2.7G 91% / udev ...
0
votes
1answer
183 views

Why the file has 0755, but 'Permission denied'?

Why the file has 0755, but I got an error 'Permission denied'? root@vagrant-ubuntu-trusty-64:~/.rbenv/versions/2.2.0/bin# ls -la total 14000 drwxr-xr-x 2 root root 4096 Feb 9 20:25 . drwxr-xr-x ...
0
votes
0answers
33 views

Change permissions of / of mounted disk

I've accidentally changed the permissions of /on my system, thus obviously nothing is working anymore now. I can access my server via a rescue system and mount the disk. How can I fix the ...
1
vote
2answers
4k views

I can't access my device partitions?

I can't access my files in other partitions even if I mounted them by mount /dev/sda12? How can I solve this problem? on Using cat /etc/fstab /etc/mtab I got the following output. /etc/fstab: ...
0
votes
1answer
97 views

How to remove disk lock [closed]

I have installed ubuntu 14:04 version, I already write the password on the disk. turns out it was too long for me, I want to disable it, how? I am a beginner, need an answer
3
votes
1answer
937 views

'mount -t ntfs-3g' Fails (exit code 1) but 'ntfs-3g' Succeeds

I'm currently on 12.04LTS and I've installed a couple of updates. (not sure which) Now my nautilus cannot mount any NTFS partition (complaining about exit code 1), and indeed sudo mount -t ntfs-3g ...
0
votes
1answer
58 views

How to get rid of more than one million ghostfiles?

I periodically run Bleachbit 1.0 on my Lubuntu machine (kernel 3.13.0-35-generic). Last time, I checked the option to wipe free disk space, mainly to try it. The program got stuck on a message saying ...
0
votes
0answers
28 views

Missing Files-my “music” folder is lost

I am using 14.04 version of ubuntu,when I opened my files I found my music folder was missing.Clicking on it says somthing spelling error.I have not yet done partition i.e I have no drives,there all ...
0
votes
1answer
66 views

mount boot camp partition

I have my hard drive from my mac it has a boot camp patition, but the mac is dead. Ubutnu sees the partition, calling it /dev/sdc3 and reporting that it has a basic linux data partition. I tried to ...
0
votes
3answers
53 views

How to select a file without opening it?

This is probably a quite trivial question, but I cannot seem to find the answer on-line. I set my file browser to single click opening as it is easier to work with, but, since clicking opens the file ...
0
votes
1answer
59 views

how to automount sda2 partition

How do I mount sda2 from sda1? thufir@doge:~$ thufir@doge:~$ sudo parted -l Model: ATA ST500DM002-1BD14 (scsi) Disk /dev/sda: 500GB Sector size (logical/physical): 512B/4096B Partition Table: msdos ...
0
votes
0answers
98 views

Ways of resolve case conflict when moving files to a Dropbox folder

As documented here, Dropbox appends (Case Conflict) to a file moved in ubuntu to a dropbox folder already containing a file of the same name (ignoring case). I would like to set up alternative ways ...
0
votes
0answers
37 views

How do i change the mount point of a file system? is it safe?

My file system structure looks as follows Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/vg_root-lv_root 38929872 36450548 503672 99% / tmpfs 4025936 ...
26
votes
2answers
18k views

How to open Nautilus at current command line directory?

I was wondering if anybody knew a command that would allow me to open a Nautilus (if that's the right name for the Ubuntu 12.04 graphic/window explorer) window from the command line at the current ...
1
vote
1answer
37 views

Need help deleting a directory

I have a directory in my home directory (the one with My Documents, etc.) with a name that looks a bit like my username (random upper-lowercase alphabetical characters). It suddenly appeared Tuesday, ...
5
votes
3answers
5k views

How to navigate to connected iPhone? Filesystem path to `afc://`?

When I connect my iPhone to Ubuntu 11.10, it gets automounted as afc://ca60751cc4b1ebb427c2f9da324914b0643a21f8/ and I can see that there are photos stored in ...
0
votes
1answer
54 views

How to check for any activity on a physical disk?

I have an SD card that's connected via a USB interface. The output of fdisk -l indicates the following: Disk /dev/sdb: 3965 MB, 3965190144 bytes I have a script that re-initializes multiple ...
0
votes
0answers
11 views

Is there a “session-wise” filesystem encryption?

AFAIK, there are partition encryption, or filesystem encryption like ecryptfs. But both of them only ask permission when mounting. By which I mean, once I mounted them, any other users could access ...
5
votes
3answers
2k views

Which union filesystem is best supported?

I'm interested in knowing the answer to this unanswered question from the Ubuntu Forums: I am trying to get one folder to display the content of two other folders. ... I am a bit troubled by ...
4
votes
2answers
425 views

Cannot mount second drive at “/”

I have a second drive that I want to be mounted at the root. The drive contains the following folders: /home /shared I want those two folders to be accessible at "/". I can mount the drive at ...
250
votes
7answers
223k views

How do I determine the total size of a directory (folder) from the command line?

Is there a simple command to display the total aggregate size (disk usage) of all files in a directory (folder)? I have tried these, and they don't do what I want: ls -l, which only displays the ...
8
votes
3answers
10k views

New ext4 partition and used space

I have fresh ext4 partition, which means I just formated it with mkfs.ext4 -m 0.1 /dev/mapper/abak-home, and there's already 27G space used. Setting reserved root space (-m) to 0 didn't have any ...
0
votes
1answer
46 views

Can't alter/change access rights

I've downloaded some gopro footage to my local hd and then copied the files from my hd to an external drive. Whenever I want to change the access rights it will switch back to read only in Nautilus. ...
0
votes
1answer
92 views

Can't create files on desktop in Ubuntu 14.04

I accidentally created a desktop shortcut in my home directory. To remove it, I did sudo rm -rf Desktop Now I can't create files and folders on my desktop.
8
votes
8answers
7k views

How to create an encrypted partition?

I am trying to create an encrypted partition, and while I format it I get the option to choose the partition type (fat/ext2/ext3/ext4/xfs/reiserfs/minix/ntfs). Is there any benefit of choosing one ...
0
votes
0answers
399 views

help resolve fatal error: sys/cdefs.h: No such file or directory # include <sys/cdefs.h>

I am trying to install wrf-chem on my 14.04 LTS and got the following error messages when i tried to run the test below.please help. Test #4: Fortran Calling a C Function (our gcc and gfortran have ...
9
votes
2answers
7k views

How do I create an encrypted filesystem inside a file?

Recently i've found this interesting tutorial: http://flossstuff.wordpress.com/2011/08/07/using-a-file-as-a-storage-device/ It explains how to create an empty file, format it as ext4, and mount it ...
0
votes
1answer
215 views

extract files from filesystem.squashfs file

I have installed Xubuntu on a USB stick and created some files. Later there was a problem with Xubuntu, so I made a backup and re-installed it. The wayt I made the backup, isn't exacly the right way ...
1
vote
1answer
1k views

Problem with NIS configuration

I tried to configure NIS in a server and a client both running Ubuntu 14.04 following this guide and this official guide. After a reboot the client machine got locked with this message several times ...
0
votes
2answers
27 views

Is there a filesystem that writes everything to nothing?

The user case is that a program writes files which I do not want to preserve to a dedicated folder. So is there a filesystem that drops write request but returns OK/done?
0
votes
1answer
37 views

What is the safest method for repartitioning space from the / partition? [closed]

I've got a 240GB SSD that I'm using as my boot/applications drive and only have Ubuntu 14.04 installed, so no finagling with Windows or OS X installs. I originally partitioned off 40GB of that 240GB ...
0
votes
1answer
32 views

How to migrate to a newer hard disk?

I am using Ubuntu 14.04 LTS and as I am very new to Linux I don't know how to copy my entire setup to a new disk. I have prepared a 500gb Hard disk drive with 5 partitions. I'd like to move my ...
0
votes
1answer
23 views

Safely move (rarely changing) operating system directories to SSD drive

I would like to move some directories that contain binaries to an SSD drive. How should I safely go about it? /usr /opt Please consider safely emphasized. [14.04.1]
2
votes
1answer
220 views

Where does CHEESE store its images?

I have taken some pictures using CHEESE, but now I cannot locate those images, so I can do nothing with them. I can't even delete them for the CHEESE GUI does not allow me to do anything with the ...
0
votes
1answer
469 views

Why do I not see my /bin, /var, (etc.) directories in my root partition?

I recently bought a VPS and when I log in as a root user, I dont see the /boot, /bin, /var, etc. directories. Why is this? This is what I see when I use my ls -la command in the terminal. I am the ...
0
votes
1answer
17 views

Saved document doesn't inform user about no-saving the information

I supported a person who received a .doc in Thunderbird as an email attachment, opened it, filled in a form and saved it. But the user couldn't find it anywhere. Thing is that is was saved in /tmp . ...
0
votes
0answers
51 views

Increased partition size of virtualbox installation succesfully; can't address extra space

and thanks in advance for reading. So I installed Ubuntu desktop (version 14.4) on my 64 bits Oracle VirtualBox (version 4.3.20). All fine. I gave it 10 GiB's of space. Also fine. Run it on an i7 and ...
2
votes
2answers
4k views

Why are boost package libs installed to /usr/lib/x86_64-linux-gnu?

After running sudo apt-get install libboost-all-dev on ubuntu 14.04 amd64 desktop (Trusty Tahr), I found that all the libs are installed into /usr/lib/x86_64-linux-gnu/ instead of /usr/lib/ ...
0
votes
2answers
102 views

How to show the full path of a file or directory in the terminal? [duplicate]

I am new to Ubuntu. I am trying to learn how to SRM a file, however I need to know how the directory name in order to type it out in the terminal. Can someone please help me figure out how to see ...
2
votes
1answer
1k views

Does Ubuntu plan to move to btrfs as default filesystem?

Btrfs seems to have a set of useful features such us snapshots and is default in Opensuse and Suse.Fedora plans to move to it. Does Ubuntu plan to move to it? If not, why ?
2
votes
2answers
62 views

What does the grey slice in disk usage represent?

When I right click on Properties for my ext4 partition I get the following pie chart: The meaning of the blue and white slices are fairly obvious, since they are in the legend to the right, but ...
0
votes
2answers
17 views

Do files under /opt and /var change much other than during software installation?

Do files under the following mount points change other than during software installation? /opt /var Can they be placed on read-only media?
1
vote
0answers
37 views

How to configure VM to mount filesystem share as writable

Here is my situation. I have a host computer running ubuntu server 14.04 It mounts a dev from fstab: /dev/sdb2 /media ext4 rw,nosuid,nodev 0 0 Permissions on the mounted folder are owner=root, ...
6
votes
3answers
1k views

Is it possible to take a snapshot of / (or other) filesystem, like in VirtualBox?

Taking snapshot of root partition will make possible to roll back to previous state. This is very helpful when something went wrong and/or data loss occurs. This feature can be seen in VirtualBox HDD ...
0
votes
2answers
968 views

What is the purpose of the bin directory? [duplicate]

What is the purpose of the bin directory? What are some examples?
0
votes
0answers
71 views

recovery lost data from corrupted file system

trying to restore/backup/save data from a corrupted hdd (windows 7 installed, no boot, no mount). windows just wants to format it and via "computer management -> disk management" its shown as "RAW" ...