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

learn more… | top users | synonyms

2
votes
2answers
1k views

'cat': can't open file: Permission denied

I am trying to copy the whole / directory to some other location. When doing cp recursively, it fails on some files like:- / # ls -lrt /sys/module/nf_conntrack_ipv4/uevent --w------- 1 root ...
0
votes
0answers
35 views

Unable to mount root filesystem after cloning volume with dd

I am trying to clone a Ubuntu install on an 8GB SD card. I created an image of the volume using dd, then copied this image onto another SD card using dd again. The SD card contains 2 partitions: a ...
0
votes
1answer
140 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 ...
0
votes
0answers
19 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 ...
3
votes
1answer
23 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
21 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% ...
0
votes
1answer
42 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 ...
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 ...
0
votes
0answers
24 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
17 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
30 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
12 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 ...
0
votes
1answer
46 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 ...
0
votes
1answer
48 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 ...
0
votes
0answers
11 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
27 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 ...
1
vote
0answers
19 views

Ubuntu 15.10 doesn't seem to support sparse files

On Ubuntu 15.10 using ext4 when I perform truncate -s 512M test.img du -h test.img the output is 513M test.img however if I run du -h --apparent-size test.img the output is 512M ...
0
votes
0answers
23 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
21 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.
1
vote
2answers
29 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 ...
4
votes
3answers
450 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
31 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 ...
1
vote
1answer
48 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 ...
2
votes
2answers
69 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 ...
1
vote
3answers
113 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 ...
0
votes
1answer
45 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
25 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 ...
1
vote
1answer
65 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
76 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 ...
1
vote
0answers
25 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
32 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
31 views

SFTP access and editing files outside the home folder

I would like to be able to edit all files on Ubuntu server 14.04 using Filezilla and SFTP. Is there another way to do that except connecting with root user ? If I connect with other user, then I ...
0
votes
0answers
67 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, ...
1
vote
1answer
51 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
61 views

What's the “/sys” directory for?

A while ago I noticed this directory that I had not ever seen before, /sys. I researched a bit and read that "modern Linux systems" often have this directory, and that it manages devices. I thought ...
0
votes
0answers
66 views

Proper way to mount a hfs+ dive for read and write

So I have this drive from my old Mac Pro which contains a lot of data (about 1.5TB). I switched to a Linux box (running Ubuntu 15.10) and now I need r/w access to it. I got it working using this ...
0
votes
0answers
749 views

blk_update_request: I/O error, dev fd0, sector 0

This happened after a kernel update. Whenever I try to boot, my computer says "Error getting authority: Error initializing authority: Could not connect: No such file or directory (g-io-error-quark, 1) ...
0
votes
0answers
31 views

Partition system id FDISK

if I change a partition system id to FAT16 with fdisk command and make another file system such as ext2 on that partition with mkfs command what is problem? every thing is ok ! so what does (partition ...
0
votes
1answer
334 views

Mount FAT32: Can't find a valid FAT filesystem

Xubuntu 14.04. nfts-3g is installed. /dev/sdc is the Flash drive. I have created new partition with fdisk (tried with cfdisk too). Tried with W95 FAT32 code and W95 FAT32 (LBA) code. ("b" and "c" in ...
0
votes
0answers
22 views

GUI for managing persistent network filesystem mounts

Is there a GUI for managing persistent network filesystem mounts? I presume it would be a thin GUI layer on top of /etc/fstab file?
3
votes
2answers
422 views

Utility says there's no more free disk space, when there's plenty

Somehow my system is in a pickle. $ sudo apt-get install -f Reading package lists... Done Building dependency tree Reading state information... Done Correcting dependencies... Done The ...
9
votes
1answer
736 views

Can I hide files so that they are hidden on both Windows and Linux?

I have my computer set up to use the same home folder / user profile for Linux and Windows. As a consequence I have files like NTUSER.DAT that are hidden on Windows showing up when I ls and in my file ...
0
votes
1answer
19 views

is there anything else to fix ext4 14.04 encrypted root? should I stay with ext4 or is another more likely to last longer?

I can't get 14.04 to boot but from a 15.10 partition I can: ~$ sudo fsck.ext4 -v /dev/mapper/vgcrypt-lvroot e2fsck 1.42.12 (29-Aug-2014) /dev/mapper/vgcrypt-lvroot contains a file system with ...
1
vote
1answer
39 views

Why doesn't my dvd/cd-rom show up with the “mount” command?

So, mount is supposed to show all file systems mounted in the OS file system. However, this is not the case for my system: the drive is called cdda//:sr0/, and no part of this is revealed in the mount ...
0
votes
2answers
20 views

Two Linux OSes on same machine - can edit files on the other OS safely?

I originally had an Xubuntu 14.04 (32 bit) on my machine. I have now also installed a Ubuntu 14.04 (64 bit) on the same machine and plan to migrate eventually there. In both OSes I have access to ...
0
votes
3answers
65 views

Is it safe to use a disk after a successful fsck?

I had not used my venerable ThinkPad T400 for about 2 weeks. I booted normally but was told to run fsck manually because of errors. I'm using 12.04 and the disk in question is ext4, a Samsung Evo ...
2
votes
1answer
29 views

how can I read the specific block of a file

Suppose I have a file /foo/bar. stat /foo/bar can show the inode information of it -- something like this: Size: 9511068 Blocks: 18584 IO Block: 4096 regular file Device: ca01h/51713d ...
1
vote
1answer
1k views

What will be the default filesystem in 16.04?

Has it been decided what the default filesystem for Ubuntu 16.04 LTS will be? Will it still be ext4? ext4 is great, but it was already great in ancient Ubuntu 9.10. Ironically, Wikipedia states ...
7
votes
6answers
773 views

How to count the total number of files/folders on a system?

How can I count the number of all files/folders that exist on a system, using the command-line? I can find it out using a GUI, simply by opening the properties window for the entire / folder, but it ...
0
votes
0answers
18 views

Where is the device for this folder?

Im trying to mount my smart-phone, and transfer some files, but when caja opens the disk it never does it right, and certain functionality like search doesn’t work right. So I just want to mount the ...