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

learn more… | top users | synonyms

95
votes
6answers
28k views

How to understand the Ubuntu file system layout?

In Windows there’re perhaps only a couple of important folders (by important I mean important in my logical picture of the Windows file system) in the installation drive (in my case C:\). Namely ...
52
votes
9answers
81k views

What is the equivalent to the Windows “Program Files” folder? (Where do things go when I install them?)

What is the Ubuntu equivalent to the Windows C:\Program Files folder? This is where Windows stores the system wide data for applications.
20
votes
8answers
206k views

“No root file system defined” error while installing ubuntu

I am new to linux/ ubuntu and just downloaded the v11 of ubuntu to learn linux. I faced this "No root file system is defined" error while trying to install it. This is how I was proceeding - ...
31
votes
4answers
35k views

How do I avoid the “S to Skip” message on boot?

After upgrading my laptop from karmic to lucid, my fat32 partition won't mount automatically. I get the message: The disk drive for /osshare is not ready yet or not present Continue to wait; or Press ...
61
votes
5answers
24k views

Why is defragmentation unnecessary?

Why is defragmenting unnecessary in Ubuntu?
52
votes
10answers
69k views

How can I securely erase a hard drive?

I'm planning on selling a USB external hard drive that currently contains an old Ubuntu installation with stored passwords and banking information. How can I securely erase the drive before selling ...
26
votes
1answer
27k views

Ubuntu 13.04 to 13.10: Filesystem check or mount failed

I attempted to upgrade from Ubuntu 13.04 to 13.10 today, and mid upgrade the system started flaking out, and eventually locked up entirely. I was forced to restart the computer, and am now unable to ...
25
votes
4answers
219k views

How to make read-only file system writable?

I am not sure since when the filesystem on my digital audio player has been changed to be read-only. I cannot copy files into it or remove files on it. Are there some possible reasons for the ...
99
votes
5answers
94k 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?
34
votes
4answers
84k views

How to get a drive formatted with exfat working?

In Ubuntu 13.04 there was an option to use the PPA by Relan in order to get ExFat functionality. Seeing that in Ubuntu this functionality is now available from the repositories without the PPA I tried ...
29
votes
2answers
48k views

How do I change file system in recovery mode to read-write mode?

I have messed up my sudoers file and I want to change the permission on it. When I login in recovery mode, I cannot run the command chmod as it is read-only option. I tried mount -o remount,rw / in ...
14
votes
9answers
18k views

How to hide a(n) (NTFS) partition from ubuntu

I need to hide an NTFS partition from listing in the nautilus. How can I achieve that? Is there any tool to do that? And how can I hide files in ubuntu (except . operator)
49
votes
7answers
147k views

How do I view all available HDD's/partitions?

I found a 6 GB IDE HDD in my basement. I want to plug it in and see what might be on it. The drive seems to be recognized in BIOS. I can't find it in Ubuntu to view files, and Ubuntu is the only OS ...
28
votes
3answers
18k views

How to move Ubuntu to an SSD

My current situation is: One hard disk Dual boot Ubuntu 11.04 and Windows 7. Partitions: 100MB Windows System thingy 144GB Main Windows 160GB Ubuntu 4GB Swap 12GB System Restore stuff Now I want ...
30
votes
2answers
47k views

How do I install and mount an exFAT partition? [duplicate]

I have searched around here and with Google, and none of the instructions I have found work with Oneric. How do install exFAT and mount an exFAT partition in the latest release of Kubuntu?
28
votes
4answers
4k views

Importance of Swap Partition

What is the purpose of a swap partition? How do I know I have just enough swap partition? Not too much/little. My Ubuntu PC is used for typical stuff: Web (email, facebook, etc.) Some movies ...
11
votes
4answers
8k views

How do I clean up my harddrive?

Not to long ago I was using only 35% of my HD. Just recently it shot up to 54% and my diskspace is 16gb so that's more then 3gigs that have been taken. From what I remember I failed to build mysql, I ...
6
votes
3answers
10k views

ext4 partition size / free space discrepancies

While creating a 250GiB backup partition for my data, I have noticed lots of discrepancies between reported partition size and free space in Nautilus, gParted, df, tune2fs, etc. At first I thought it ...
11
votes
2answers
25k views

GRUB: “invalid arch independent ELF magic” after install on SSD [duplicate]

I've got a brand new laptop with a 128GB SSD drive. I read that aligning the partitions to match the Erase Block Size of the SSD is important. I followed William Scott's guide SSD Tweaks in Linux and ...
6
votes
2answers
2k views

Why has Ubuntu moved the default mount points?

Why has Ubuntu and many other Linux distributions moved the default mount points from /media to /media/$USER Example I plug in a USB drive and it's name is EXT4-250GB-USB it used to show up in ...
45
votes
8answers
29k views

How to find (and delete) duplicate files

I have a largish music collection and there are some duplicates in there. Is there any way to find duplicate files. At a minimum by doing a hash and seeing if two files have the same hash. Bonus ...
29
votes
3answers
225k views

How do I remount a filesystem as read/write?

I'm trying to mount an hfsplus filesystem in a Xubuntu 12.04 VM (kernel version 3.2.0-23-generic) but when I type mount -o remount, rw /dev/sdb3 in command line it returns not mounted or bad option. ...
23
votes
3answers
15k views

Is there a simple way to add exFAT support? [duplicate]

When I insert a USB stick or camera flash card I get the following error: unknown filesystem type 'exfat' Is there a simple way to add exFAT support to Ubuntu without kernel patching?
4
votes
2answers
1k views

Which book should I buy to learn file system in Ubuntu? [duplicate]

Possible Duplicate: How to understand the Ubuntu file system layout? I am very new to Ubuntu and Linux and looking to learn Ubuntu/Linux. Which book should I buy to learn file system in ...
6
votes
3answers
13k views

Location of file folders of installed programs

I'm new to Ubuntu and will like to know where i can find the location of program files of programs installed from the Ubuntu Software Center or the Command Line Interface
25
votes
4answers
29k views

How do I use OverlayFS?

This answer and email message indicate that something called "OverlayFS" is available in Ubuntu 11.10 and will forcefully replace aufs in Ubuntu 12.04. How do I use it? Where is its documentation?
45
votes
4answers
14k views

Why have both /mnt and /media?

It seems to me that having both /mnt and /media is a little redundant. Is there any tangible difference between the two that I'm not aware of? Is there a standard that most people follow for where to ...
16
votes
4answers
5k views

Why is moving directories to /dev/null dangerous?

When trying to move a test_dir directory to /dev/null, I get the message mv: cannot overwrite non-directory ‘/dev/null’ with directory ‘test_dir/’ Then why do people say "Don't run the command sudo ...
7
votes
2answers
8k views

Can I change personal folder locations?

I did this in Windows 7. My Documents, Videos, Music and other personal folders are in D:\ because it is my media disk. In case of a system failure, I will always have access to these files when I ...
23
votes
2answers
4k views

What does `~/ ` mean?

I'm new to Linux and Ubuntu. People keep using ~/filename in their answers to my questions. What does ~/ mean?
7
votes
1answer
423 views

What file size units do applications on Ubuntu use?

I have noticed that different applications use different units, or mean different things by them. For example, I have come across kB, KB, KiB, Kb and K. How many bytes do each of these units ...
7
votes
2answers
1k views

How to mount an internal HDD on start-up?

I have a 500GB internal HDD where I store all my music and photos but it is annoying to manually mount it after a restart and I was wondering how to mount it automatically and make it available to ...
7
votes
3answers
9k views

How well is the HFS+ filesystem supported?

How well does Ubuntu support HFS+ (i.e. Mac formatted) filesystems? Can it read and write to them, and are there any potential problems to watch out for?
2
votes
3answers
329 views

Retrieving files from broken wubi installation

My wubi installation of Ubuntu 12.04 is stuck in an infinite login screen loop. I have tried following the advice on other posts but nothing has worked so now I'm trying to retrieve a few files from ...
20
votes
6answers
119k views

How to fix “sudo: unable to open … Read-only file system”?

The title might not be as descriptive as I would like it to be but couldn't come up with a better one. My server's file system went into Read-only. And I don't understand why it does so and how to ...
16
votes
4answers
12k views

Where can I find the application executables in the filesystem?

Where are executables for programs stored in Ubuntu? An application (Komodo Edit) is asking me to identify an application to be used as a web browser. I've become used to just entering the ...
7
votes
4answers
26k views

Why has my file-system turned read-only after updates?

I'm running 11.10 and I applied some updates. After that whenever I use my computer, I can, but only for about 2 or 3 minutes before it becomes read-only. Any sudo command entered gives me the ...
8
votes
4answers
13k views

Very slow boot due to mounting filesytem

I just installed Ubuntu 11.04 over an older version of Ubuntu, and am dual-booting with Windows 7. Most things seem to be working well (i.e. wifi, sound, etc.) but boot time is problematically long. ...
4
votes
3answers
723 views

Very large log files, what should I do?

(This question deals with a similar issue, but it talks about a rotated log file.) Today I got a system message regarding very low /var space. As usual I executed the commands in the line of sudo ...
24
votes
3answers
21k views

Use of /opt and /usr/local directories in the context of a PC

What is the difference between /opt and /usr/local directories and what kind of programs should be installed to them? I referred to Linux File-system Hierarchy but the explanation is not that clear. ...
19
votes
8answers
31k views

Why do my gvfs mounts not show up under ~/.gvfs or /run/user/<login>/gvfs?

From what I read, when mounting a network share via nautilus or gvfs-mount the mount point should be in ~/.gvfs. This seems not to be the case for me: I tried mounting both an FTP and SMB share via ...
17
votes
2answers
2k views

How to find the creation time of a file?

I need to find the creation time of a file, when I read some article about this issue, all mentioned that there is no solution like Site1, Site2. When I tried stat command it state Birth: - So how ...
9
votes
2answers
13k views

Why does Ubuntu refuse to execute files from an NTFS partition?

I mount an NTFS partition (where I've got some Linux binaries and scripts alongside with Win32 and data files) with the following fstab line: /dev/sda5 /mnt/dat ntfs-3g ...
15
votes
2answers
1k views

'Installing' Applications, where to put folders?

I've just bought a game (Machinarium) which does not come with a deb file neither is it a ./configure, make etc type of application. I can just run it. Where is the best place to put it so i can ...
8
votes
3answers
13k views

How to disable cryptswap?

How can I disable cryptswap? I would like an unencrypted swap like before. This is on an ubuntu 9.10 system.
6
votes
2answers
22k views

filesystem types for partitions [closed]

I am going to dual-boot install Ubuntu1 10.04 on my laptop with Windows 7. I was wondering what filesystem types (such as ext2, ext3, ext4, ReiserFS and whatever might come into mind) are ...
4
votes
2answers
14k views

Gtk-WARNING : Calling Inhibit failed

I was trying to use gedit, when I came across the following problem: myPC@TM77:~$ sudo gedit /etc/pm/config.d/config (gedit:12512): IBUS-WARNING **: The owner of /home/myPC/.config/ibus/bus is not ...
7
votes
4answers
2k views

Drive reporting incorrect free space

So I swapped my shiny SATA SSD for an even shinier PCI-E SSD. I run my core OS on the SSD because it's silly-fast. I did this on my old SSD so I created a new EXT4 partition and then just dded the ...
3
votes
1answer
1k views

Recover data using Photorec onto an External Drive

I lost my Windows Vista while installing Ubuntu. Few people suggested me to use Photorec to recover the data. I already installed testdisk. The place where I am confused is: I attached an external ...
1
vote
1answer
4k views

Unknown filesystem error: grub rescue [duplicate]

Possible Duplicate: Grub rescue - error: unknown filesystem After using testdisk 6.11, I got the error message: Unknown filesystem error: grub rescue To fix it, I used Boot-Repair, but ...