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

learn more… | top users | synonyms

16
votes
4answers
12k views

How to create a bookmark under “computer” in the Sidebar of the nautilus file manager in 12.04?

Somehow, I removed the Downloads bookmark in the Sidebar under "Computer". Is there any way I can make a new one? Possibly with the same icon? I still have my Downloads directory. I just don't have ...
16
votes
2answers
21k views

What filesystem for an external Harddrive (Linux/Mac/Windows) [closed]

What Filesystem should I use for an external USB harddrive (500GB), with possibility to share with a Mac and Windows systems, for example at the office. Now it is NTFS but back in the day the NTFS ...
16
votes
2answers
20k views

Too many open files - how to find the culprit

When running tail -f filename, I got the following message: tail: inotify cannot be used, reverting to polling: Too many open files Is that a potential problem? How do I diagnose what's ...
15
votes
4answers
4k views

What file system do I have installed?

Is there any way to check it from command line?
15
votes
5answers
10k views

Is it safe to use Btrfs?

Is it safe to use btrfs in Ubuntu 12.04? Linux kernel version: 3.2.0-24-generic Architecture: x86_64 (64-bit)
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 ...
15
votes
3answers
571 views

5.25" floppies won't mount

I have received some research that is on 5. 25" floppies. My mobo supports 5. 25" disks, and, I have the disk drive. I am not trying to use this media long term, I just want the research data. Update ...
14
votes
3answers
6k views

Broken sudo: can't open /etc/sudoers: No such file or directory

I have a live USB persistent version of Ubuntu 11.04 installed with Unetbootin. After some time I experienced some bugs while upgrading the kernel and trying to use my second screen on my laptop. ...
14
votes
5answers
2k views

Is Btrfs in 10.10 considered stable?

I'm upgrading my laptop to Maverick (10.10) and I noticed btrfs is an option for the filesystem. I read a while ago that the Ubuntu team weren't sure if it was going to be stable for Maverick. Does ...
13
votes
4answers
2k views

What does /dev/null mean in a shell script?

I've started learning bash scripting by using this guide: http://www.tldp.org/LDP/abs/abs-guide.pdf However I got stuck at the first script: cd /var/log cat /dev/null > messages cat /dev/null ...
13
votes
3answers
1k views

How do I stop this constant loss of free space?

I was running Ubuntu, as normal, when suddenly I got a dialog box that said I only had 1.2 GB of free space left. An hour before, I had 30 GB of free space. I deleted some stuff and brought the free ...
13
votes
9answers
17k 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)
13
votes
3answers
24k views

Convert filesystem NTFS -> EXT4?

I have 2 TB of data on an NTFS drive which I would like to convert to EXT4 filesystem. My OS runs on a (comparatively) small 60GB SSD. Is there any way to convert the filesystem, apart from backing ...
13
votes
4answers
3k views

What is the significance of '*' (star, asterisk) in the file listing results?

I have noticed that some of my files have an asterisk at end. Does the asterisk at the end have any particular significance? I think they are mostly executable and displayed in green by the ls ...
13
votes
2answers
596 views

How to see the contents of a file with blank filename?

drwxrwxr-x 2 ubuntu ubuntu 4096 Mar 19 07:30 xxxxx -rw-rw-r-- 1 ubuntu ubuntu 580 Mar 20 07:24 -rw-rw-r-- 1 ubuntu ubuntu 27137 Mar 20 09:10 xxx.js Here there is a file on the second line but ...
13
votes
3answers
40k views

Read Only usb stick that won't let me do anything to it

Somehow I messed up and accidentally made my usb stick into a read only file system. I have tried a bunch of things to delete the files, including the basic (rm -f myfile) and attempting to allow ...
13
votes
4answers
7k views

Web Server Best Practices: Directory Structure & Security

I would like to utilize Ubuntu server as web server, but I want to make sure I follow best practices for setting things up. I want to ensure I set the directory up in the best location and understand ...
12
votes
2answers
1k views

Why Ubuntu will no longer measure file size unit as byte, megabyte, gigabyte, etc?

I read on somewhere that Ubuntu will no longer use the familiar file size units we all know by now (kB, MB, GB, TB) and switch to a different IEC standard (KiB, MiB, GiB, TiB). If this is true, I ...
12
votes
5answers
861 views

Using cd command to navigate directories in Ubuntu which have special characters [duplicate]

When I want to navigate into directories having special characters in their names I get an error message. For example: aman@desktop:~/Aman$ cd !)e$!gn&(reate bash: !: event not found ...
12
votes
4answers
1k views
12
votes
6answers
9k views

How to determine where biggest files/directories on my system are stored?

I was wondering how do you know where the largest files in my system are stored. For example--- Disk Space Used: 1GB Java: 500MB Java Percentage: 50% maybe represented in a pie chart. Maybe? I know ...
12
votes
2answers
6k views

Why can't I copy a 5G file?

I'm trying to backup my VirtualBox, but when I try to copy the .VirtualBox directory to my external hard drive I get an "File too large" error: [130 amanda@luna ~]$ cp -r .VirtualBox ...
12
votes
3answers
2k views

using locate on an encrypted partition

I selected /home/ to be encrypted when I was installing Ubuntu. Now, is it possible to make locate work with an encrypted partition like this?
12
votes
1answer
1k views

Is it possible to delete files when another filesystem is mounted on the path?

Having just written an answer about moving /usr to a new partition I was wondering about deleting files once a new partition has been mounted. To use the example from the question, is it possible to ...
12
votes
3answers
15k views

Can't set permissions for files on an NTFS partition

I remember that I was able to run a Linux .exe that was placed on an NTFS partition earlier before I installed 10.10 RC. But if I try to run it now, I can't run it as it hasn't the execution ...
12
votes
1answer
15k views

How to unmount after using mount --bind option?

I have mounted a hard disk /dev/sda1 on /media/backup. Further, I have issued the following command: mkdir /home/users/Desktop/backup sudo mount --bind /media/backup /home/users/Desktop/backup This ...
12
votes
1answer
3k views

What is the role of the .ICEauthority file?

When I listed files in my home directory, there was a hidden file named .ICEauthority. What is this file, and what is its role?
12
votes
3answers
1k views

'unreachable' home folder

Occasionally, when I log into my Ubuntu server, the prompt says jon@jon-server:(unreachable)/$. Running pwd at this point returns (unreachable)/, however echo $HOME returns /home/jon as expected. If ...
12
votes
2answers
3k views

btrfs partition won't mount after upgrading 64bit Ubuntu 11.10 laptop

I have tried many ideas from the net, but none of them work. This looks correct and in good order **sudo btrfs filesystem show /dev/sda2** failed to read /dev/sr0 Label: none uuid: ...
12
votes
2answers
1k views

Display folder sizes in file manager

In nautilus (or nemo) file manager, the "Size" column shows the filesize for files and the number of items contained in a folder for subdirectories: Number of items is not that important for me, it ...
11
votes
5answers
28k views

Command line option to check which filesystem I am using?

Is there a command that will show which file system (ext3, ext4, FAT32, ...) the various partitions and disks are using? Similar to how sudo fdisk -l lists information about disks and partitions?
11
votes
2answers
1k views

How does linux handle a move command

How does linux handle a move command under the hood? Let's say I move my home dir /home/me and I move this into another directory /home/foo/me How are all the files and directories paths under ...
11
votes
4answers
497 views

Way(s) of browsing the filesystem that are more flexible

I have two related questions, both probably (but not necessarily preferentially) accepting the same answer : When browsing or exploring the filesystem in a GUI, I want to be able to right click on ...
11
votes
1answer
10k views

What is /usr/lib/i386-linux-gnu/ for?

I'm using an application that, when searching for installed dependencies, looks up some .so files in /usr/lib and /usr/local/lib/. Now I migrated on Natty and some files seem to be moved from ...
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 ...
11
votes
4answers
16k views

Solving permission problems when using external EXT4 hard disk with multiple linux installs

Hello I have a external hard drive and since I only use Ubuntu and Fedora I decide to format my hard drive to ext4 everything is fine. The problem is when i mount the drive i need to change the ...
11
votes
4answers
5k views

How can I keep a folder synchronized to an external USB hard drive?

I have a growing music collection which I manually keep in sync with an external USB drive. Sometimes I edit their ID3 tags, add or delete a file in either the hard drive or the USB drive, and I would ...
11
votes
2answers
4k views

How can I convert an ext4 partition to btrfs (or other file systems) without losing data?

I wish to convert my current /home partition to BTRFS (or other file systems) without losing data if possible, what steps should I take for this? is it safe?
11
votes
2answers
24k 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 ...
11
votes
2answers
7k views

Can and should UDF be used as a hard drive format?

Several time recently I've seen UDF suggested as the solution to a cross platform format for a drive used on Linux, Mac OS X and Windows XP and above. I've searched here and not found the same ...
10
votes
4answers
1k views

What does the first character of UNIX mode string indicate?

I'm very familiar with linux file permissions, and special perms (sticky bit, suid, guid) But I don't know what the c stands for? Is it a permission, or something else? I've done some googling with ...
10
votes
6answers
7k views

How to make and restore incremental snapshots of hard disk

I use Virtual Box a lot for distro / applications testing purposes. One of the features I simply love about it is virtual machines snapshots, its saves a state of a virtual machine and is able to ...
10
votes
6answers
8k views

How folders created in /var/run on each reboot

In recent ubuntus (specifically, what interests me the most is 12.04) /var/run is tmpfs, and thus I assume it starts empty with each reboot. Yet, I see there some folders, like /var/run/mysqld and ...
10
votes
4answers
36k views

Force fsck.ext4 on reboot, but really “forceful”

One of my Ubuntu 10.04 servers is giving me trouble. When I run fsck.ext4 -n /dev/sda5 it tells me there are errors in the free inode count, free block count, and more. I have tried: touch ...
10
votes
3answers
7k views

Display files permissions in number format i.e “0755”? [duplicate]

Is there a way to get files/directories permissions in number format "0777" instead of "-rw--r--r" format?
10
votes
1answer
8k views

Reasonable size for “filesystem reserved blocks” for non-OS disks?

When creating a file system ( mkfs ...) the file system reserves 5% of the space for its own use because, according to man tune2fs: Reserving some number of filesystem blocks for use by ...
10
votes
2answers
6k views

Do I need to defrag EXT file systems? [duplicate]

Possible Duplicate: Why is defragmentation unnecessary? I've been told that EXT file systems don't need to be defreagged because of the way they handle writes. Is this true? Would I benefit ...
10
votes
1answer
2k views

How to sync Google Docs with a folder in my filesystem?

I'd like to be able to edit my files offline and it would automatically send the changes to Google Docs and vice versa. Is that even possible? If so, how to do it?
10
votes
3answers
16k views

Can I disable full-disk encryption?

I recently installed Ubuntu 12.10 and it requires a passphrase to boot up (I installed it with an encrypted file system). Do I have to reinstall to change to a standard unencrypted file system?
10
votes
8answers
1k views

How can I make a write-only view of a folder?

I want to have a place on the filesystem that presents a write-only "view" of another folder that I have read-write access to. I'm picturing something that's similar in behavior to an FTP drop box, ...