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

learn more… | top users | synonyms

0
votes
1answer
174 views

How do I expand my filesystem? I have Ubuntu MATE on a Raspberry Pi 2

I have Ubuntu MATE on my 32gb micro SD card using a Raspberry Pi 2. I really need to know how to expand my file system. I looked it up, but all I got was an error (value out of range). I will list ...
5
votes
4answers
7k views

2015: Is BTRFS stable?

I know, questions like this have been asked before, but I'd like to get some up to date experiences.. From what I've read in various discussions, BTRFS seems like it's relatively stable, but once in a ...
0
votes
0answers
22 views

init.d location

I was looking through "man hier" but did not find the location of the folder init.d. The issue is that, it suddenly appeared in my home directory and has a little lock as if I am not able to access it....
2
votes
1answer
24 views

I have software (blender 2.76b) running as an “executable” from my home/documents folder. Should I move it to opt? ( (k)ubuntu 14.04)

I'm running (k)ubuntu 14.04 and everything I've read tells me to install 3rd party software in opt. everything is working fine but I want to know if I'm going to encounter problems later with add-ons ...
0
votes
1answer
22 views

How to run an application on a disk partition ubuntu

I have loaded /dev/pmem0 filesystem on /mnt/ramdisk. output of df command: Filesystem 1K-blocks Used Available Use% Mounted on /dev/pmem0 307200 4120 303080 2% /mnt/...
17
votes
3answers
14k 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 ...
44
votes
9answers
262k 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 ...
0
votes
1answer
74 views

How can I make proper use of subvolumes in btrfs?

In the past, I've always used three ext4 partitions to fulfill my needs: /dev/sda2: / /dev/sda3: /home /dev/sda4: /mnt/Data Right now, I'm using Ubuntu 15.04 with the btrfs filesystem. After ...
9
votes
4answers
2k views

NTFS -> EXT4 migration, where did 120 GB go?

wim@wim-ubuntu:~/Desktop$ mount | grep media /dev/sdc1 on /media/data type ext4 (rw,nosuid,nodev,uhelper=udisks) /dev/sdb1 on /media/wd type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,...
4
votes
2answers
2k views

Is there a way to make Thunar display “recursive” file size?

I'm using Thunar 1.6.3 and currently when I'm looking at a bunch of folders it looks something like this: Folder 1 8,2 kB Folder 2 4,1 kB Folder 3 4,1 kB Folder 4 0 kB ...
0
votes
1answer
63 views

Symlink does not work for dropbox

I am backing up home folder by create a symlink in dropbox. What I did: cd ~/Dropbox mkdir backup && cd backup ln -s ~ What I checked: ln -l. The symlink is created. The dropbox folder ...
2
votes
2answers
56k views

Recover from a corrupted filesystem when fsck do not help

Something went wrong with my filesystem, Ubuntu set it to read-only and now under Ubuntu Live Disc, fsck can't fix it. I'm running 13.04 and it won't boot - at startup, it just shows the grub rescue ...
0
votes
0answers
12 views

Is there any downside to using hardlinks over copying?

Let's say I have a large file (over 1 GB) I want to copy to another place on my partition. Is there a downside to just creating a hardlink (ln /path/to/large/file /path/to/target) instead of using cp?...
0
votes
0answers
26 views

Giving r-x permissions to directories of other users

I have an Ubuntu 14.04.1 server with the such permissions scheme (given below in user:group format): root: root super: sudo master master1: master master2: master user1: simple1 user2: simple2 ... ...
0
votes
0answers
20 views

How file advisory locks in Unix system prevent unlrelated process from corrupting data?

I'm reading about Linux OS system (which is the kernel for Ubuntu) and reached the notion of advisory locks. According to Wikipedia, a programmer can use these locks if he wishes to do so, but he ...
0
votes
0answers
57 views

“sudo btrfs filesystem defragment -r /” can't defrag immutabe files, right?

Files made immutable by sudo chattr +i can't be defragmented by "sudo btrfs filesystem defragment". I get the message: "ERROR: defrag failed on /path/filename: Success total 1 failure" Is this a bug ...
0
votes
0answers
14 views

Bad practice to keep many subdirectories in single directory [duplicate]

I was wondering if it is bad practice (or performance, etc.) to keep many (10k+) sub-directories in a single directory. Is it better or the same to group those sub-directories into more sub-...
0
votes
1answer
69 views

Unable to access “136 GB Volume”

This error message is shown every time I try to access the flash drive. Error mounting /dev/sdc1 at /media/hp/868E-F233: Command-line`mount -t "exfat" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=...
0
votes
1answer
116 views

How do I link the OpenAL library to eclipse in Ubuntu?

I just downloaded the OpenAL library using the command sudo apt-get install libopenal1 libopenal-dev, now I can't find where the library is on my system and how should it be linked with Eclipse. I am ...
2
votes
0answers
194 views

error:unknown filesystem. Entering rescue mode… grub rescue

Here's what's happening: I think my laptop ran out of power and shut itself off (while the lid was closed). When I started it back up I get: error:unknown filesystem. Entering rescue mode... grub ...
0
votes
0answers
15 views

How to find the first device address of request using blktrace?

I have traces of running an "f2fs" on an usb-drive. I would like to use them as inputs to DiskSim. DiskSim requires the first block number that has been traced. Is there a way I can find that by ...
0
votes
0answers
33 views

The volume “Filesystem root” has only 0 MB

Yes this is a question that on surface has been asked previously. The difference with this question is that all the answers supplied make no results that work to fix this problem. I read, understood ...
15
votes
3answers
46k 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 ...
0
votes
0answers
32 views

xfs on raid0(mdadm) proper mounting

Reading manuals on howto tune xfs on raid is totally crazy. In my case I have raid0 of 2 disks with 512K chunk size. Physical disk block size is 4096 The correct su and sw should be su=512k and sw=2? ...
0
votes
0answers
22 views

How do I move a .iso file to root in Ubuntu? Tells me I do not have permissions

To create a bootable sd card I need to move the Ubuntu.iso to root so that Unetbootin will see it. The system tells me I do not have permissions.
21
votes
4answers
49k 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 >...
19
votes
7answers
22k 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 ...
2
votes
3answers
8k views

Why can not change the file /proc/sys/net/ipv4/ip_forward?

$ sudo echo 1 >/proc/sys/net/ipv4/ip_forward bash: /proc/sys/net/ipv4/ip_forward: Permission denied then I try to get write privilege, also failed. $ sudo chmod a+wx /proc/sys/net/ipv4/...
63
votes
2answers
35k views

Whats the .local folder for in my Home Directory

What is the ~/.local folder good for and is it safe to remove the content within this folder?
0
votes
1answer
61 views

Desktop shortcuts getting corrupted in Ubuntu 14.04 LTS

If I create a desktop shortcut in Ubuntu, for my folder(s) off my local drive, and when I login the next time, the shortcut link will be EXPIRED! If I try clicking that link, I get a message that the ...
1
vote
2answers
34 views

File system goes read-only when using file explorers

I have a problem with my 15.10 system and it goes as follows: When using Nemo or Nautilus (these are the two I've tried) works fine as long as I explore my home directory only. Visiting 'File System'...
2
votes
2answers
87 views

mounting error to access the drives in ubuntu 15.04

While trying to mount the drive it showing me an error like below...and  drive is not being mount ... “ Error mounting /dev/sda3 at /media/ubuntu/B840AE6C40AE30D4: Command-line `mount -t "ntfs" -o "...
15
votes
2answers
11k 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 /media/LACIE/...
4
votes
3answers
500 views

Size of device file ( missing in ls -l output )

When I try to print the device file output shows binary data in hexadecimal format. But upon doing a ls -l /dev/sda I get: brw-rw---- 1 root disk 8, 0 Jan 29 12:29 /dev/sda I don't ...
1
vote
1answer
32 views

Mount a disk at different points

What if I mount the same disk at two locations using different file systems? Will they just be like hardlinks referring to the same location or would it cause any issues? ex: # mount -t ext3 /dev/...
15
votes
4answers
34k views

How do I change UUID of a disk to whatever I want?

I have an unique situation where I need to change UUID of usb flash drive to previous UUID. I formatted it and obviously number changed... I've ubuntu server setup with 1TB hdd, and 4GB usb flash ...
1
vote
1answer
62 views

Switching back to read-only filesystem

I am using the Nexus 4 with UbuntuTouch installed. I switched to a writable filesystem by this command: sudo mount -o remount,rw / and it worked perfectly. How to switch back correctly to read-...
0
votes
3answers
122 views

How to make a line of directories with one command?

With the mkdir command if I want this location to exist ~/test/panda/fat when only the ~ part of it exists so far I have to do something like this: mkdir ~/test mkdir ~/test/panda mkdir ~/test/panda/...
8
votes
3answers
4k views

What can I move to RAM drive to have the system working faster?

Which files/directories can I move to RAM drive to have the system working faster? I'm planning to upgrade my laptop's memory to 8GB soon, so I'll have some fast memory to use. How to configure the ...
0
votes
1answer
68 views

Recover unreadable directory on ext4 partition

One of my directories in a ext4 filesystem on my SSD became unredable and I need to recover the files. Here is what I did to crash the filesystem: I accidentally created 1.5 million small files in ...
0
votes
0answers
41 views

mount xbox 360 formated disk

I have a game save data on a usb pen drive. Ubuntu doensnt recognize the disk file system though. I used the command fdisk -l, and tried installing netware 386 packages, but the disk still wound ...
138
votes
1answer
95k views

Differences between /bin, /sbin, /usr/bin, /usr/sbin, /usr/local/bin, /usr/local/sbin [duplicate]

I'm running an Ubuntu Server 13.04, but I see the same on a 12.04: I have six directories with command files. These are: /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin What are the ...
1
vote
1answer
117 views

How to format a FAT32 USB as EXT4

I have a USB device /dev/sda1 and I want to format it as ext4. I have tried sudo mkfs.ext4 /dev/sda1 It gives warning, goes ahead and completes formatting without error. But when I check it using ...
1
vote
1answer
59 views

Accidentally Wiped Root Partition - System Still Running

Alright, this is one of those times when I am are saying... Breathe deep, don't panic. What happened? As a usual part of leisurely tinkering with my system, I was trying write a 24.5 MB img file to ...
1
vote
1answer
78 views

After update chrome won't open desktop is read only

I'm running Ubuntu 15.10 and just did a software update via the software update manager. Now chrome will not open neither will Firefox and if I try to copy anything to my desktop I get an error ...
2
votes
3answers
100 views

Why are there redundant directories for .desktop files?

I know that the .desktop files of installed applications will be found in /usr/share/applications. Today, I came across the directory /usr/share/app-install/desktop. It contains the same .desktop ...
40
votes
3answers
58k 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?
1
vote
0answers
26 views

Directory converted to a file

I have an external HD formatted to ext4. Somehow a directory is now showing up as a file (i.e. it is missing the 'd' in the attributes). fsck does not show any errors. I don't believe that the ...
0
votes
1answer
37 views

WD Passport external device not recognized

I am getting following error when I connect my external HDD. Error mounting: mount exited with exit code 13: The disk contains an unclean file system (0, 0). The file system wasn't safely closed on ...
0
votes
0answers
127 views

“My Passport” USB Drive corrupted

My Passport drive corrupted. When I type: dmesg | tail I get: [ 667.778316] sd 6:0:0:0: [sdb] CDB: Read(10) 28 00 00 00 00 00 00 00 08 00 [ 667.778321] blk_update_request: I/O error, dev sdb, ...