All Questions

Tagged with
Filter by
Sorted by
Tagged with
-1
votes
0answers
71 views

Deleted files on ext4 fs reappear after 2 hours

Files deleted (or moved or overwritten) on ext4 drive (this is backup partition) reappear after about 2 hours. There is no way the data is anyhow stored somewhere else to be restored from, because of ...
0
votes
2answers
34 views

fsck in recovery mode does not work

When I run fsck in recovery mode, it says that sda3 is mounted. /dev/sda3 is mounted e2fsck: cannot continue, aborting. However, when I try to umount sda3, it is busy. umount: /: target is ...
0
votes
0answers
23 views

Linux mkfs.f2fs Error: Device size is not sufficient for F2FS volume

I am trying to mount an F2FS file system on an Ubuntu 16.04 LTS machine running Linux version 4.4.178+. When I try to run: sudo mkfs.f2fs /dev/sda2 the system returns: F2Fs-tools: mkfs.f2fs Ver: 1....
0
votes
1answer
22 views

Ubuntu lsblk drive size

I am setting up a ZFS NAS using Ubuntu 18 with 8 hard drives for storage. When I use sudo lsblk -P to check what the drive names are, I only see sdb-sdh. I know this is because it will skip over the ...
0
votes
0answers
16 views

Got stuck in Emergency mode with ACPI Error

I am using ubuntu 16.04. I probably have done sth which damaged the system file. After reboot, I am stucked in emergency mode. The error is about ACPI like below. I am not sure what is wrong here. ...
1
vote
1answer
44 views

Find hostname of Mac OS client for NFS /etc/exports (permission denied)

I'm trying to set up an NFS server to browse files from a remote Ubuntu server on a Mac client. I'm having trouble finding out what to put as my client hostname/address in the /etc/exports entry. I ...
0
votes
0answers
83 views

How can I copy sparse files from a ext4 file system to an exfat file system and keep the apparent size?

My issue is that I am trying to copy files from my Ubuntu linux system which uses a ext4 file system to a Sandisk 1TB USB card, which uses an exFat system. In the ext4 system, the entire directory ...
0
votes
0answers
57 views

Using rm --one-file-system to only delete files on the local filesystem

I have a FUSE mount located in /media/writable, however, sometimes this FUSE mount disconnects, but some programs will still attempt to write to /media/writable. When I restart the FUSE mount service,...
-1
votes
1answer
209 views

How to access external hard drive from Ubuntu Shell and Python code [duplicate]

I am running out of space in my local device. I have external hard disk. I want to point my python code to write to directory there. How can I know the full path for the hard disk? I tried to go to ...
0
votes
1answer
21 views

When boot into a live Lubuntu from a bootable flash drive, what filesystems on the disk are mounted automatically?

Assume a computer has Lubuntu installed on its disk. Booting into a live Lubuntu from a bootable flash drive is often a way to access filesystems on the disk that are required to be not mounted. So I ...
0
votes
1answer
44 views

Can't log in desktop environment after moving `/` and `/home` into different LVs and enlarge swap

I enlarged LV swap from 1G to 4G. I also moved / and /home in a single PV to two different LVs, by shrinking LV root and create LV home on the freed space, and then following https://askubuntu....
0
votes
1answer
71 views

Accidentally turned home directory in ubuntu to read only. How to turn this back?

I accidentally turned turned my home directory in ubuntu to read only. sudo chown -RW $USER: $HOME
2
votes
0answers
67 views

Recover accidentally deleted custom files

I accidentally deleted important custom (not known-or-commercial) files from my scientific researches on image processing. I created the files by collecting raw digital signals from an image sensor. ...
1
vote
2answers
34 views

Removing files in a folder with specific pattern

I have 20 Files in a folder. 10 files naming pattern is PTT-20190118-WA0010.wav and other 10 files naming pattern is PTT-20190118-WA0010_s.wav. How to delete files with "PTT-20190118-WA0010.wav" ...
3
votes
1answer
104 views

How can I re-partition a hard/ssd-drive without losing data?

When I got my notebook with a 512GB SSD, I reformatted it and installed Ubuntu. I've followed Ubuntu's suggestion to partition the drive, so I have it partitioned as follows: $ sudo parted -l Model: ...
0
votes
0answers
26 views

What are the contents in /sys/block when ubuntu is a virtual machine?

I am very confused to how /dev/dm-1 was being used as a swapspace by my Ubuntu guest Virtualbox VM. gparted doesn't show these drives. What is going on here? How does the same drive dm-1 have ...
0
votes
3answers
75 views

Demonstrate file encoding

I am developing some training and would like to demonstrate file encoding. What I am trying to accomplish is create a text file with one type of encoding that show up as nonsense when read by Linux. ...
0
votes
2answers
52 views

Symlinks doesn't change its timestamp when editing file

When I have a file a.txt and do ln -s a.txt b.txt, then I edit a.txt, a.txt's timestamp changed. But when I edit b.txt, b.txt doesn't change its timestamp. Only a.txt is changed. Why didn't b.txt's ...
1
vote
2answers
41 views

Swapping a mounted drive between machines - is it possible?

Let's say I have a storage device called A. I install A into my machine M1 (which contains a drive called B which is a unix boot drive containing the operating system). I then boot up M1 and mount ...
1
vote
1answer
150 views

GParted, shrink lvm partition to give boot more space

I keep having issues due to my boot drive running out of space. It fills up as soon as I try to sort out packages with apt-get upgrade, or if for any other reason dependencies try to be resolved or ...
1
vote
1answer
74 views

Partition usage double of what is stored in file system

I am running Ubuntu 16.04 in a VMWare VM. My root partition /dev/mapper/vg_ldt-lv_root is almost full, which is mounted to /: $ df -h Filesystem Size Used Avail Use% Mounted on ...
1
vote
1answer
363 views

How can I create a bootable flash drive for Lbuntu and also store temporarily other personal files in the same flash drive?

I have a flash drive, whose information given by sudo fdisk -l is Device Boot Start End Sectors Size Id Type /dev/sdb1 1 7864319 7864319 3.8G c W95 FAT32 (LBA) I would like to ...
2
votes
2answers
129 views

merge /var with /

My ubuntu desktop got /boot/ full of old kernels which caused update-initramfs to fail, which caused /var to get full with /var/tmp/mkinitramfs* files. The problem is that both /boot, /var are ...
0
votes
1answer
875 views

Usability is compromised on Ubuntu because of read-only filesystem error

Over the past couple of days Ubuntu has been progressively locking me out of the the system. I can't open some programs and the last straw was a few minutes ago when it refused to save a screenshot. ...
1
vote
1answer
104 views

The output of du -sh /tmp is much greater than the sum of du on each file and directory in /tmp. Why? [duplicate]

This system is linux mint 18.3, basically ubuntu. sudo du --apparent-size -sb /tmp yields 476mb on my system currently. if I run sudo du --apparent-size -sb /tmp/* /tmp/.??* and add it all up, I get ...
1
vote
1answer
33 views

How is file with continuously increasing size being copied

Let's imagine this situation: A file is being continuously appended by text in a while true loop with no sleep between iterations. while true do echo "foo" >> source.file done Another ...
1
vote
1answer
374 views

setgid bit in umask of systemd service script

I have a downloader service running, and I'd like it to set the setgid bit of every directory it creates. Its already doing so, but I suspect that's because at the moment, the parent directory also ...
0
votes
2answers
42 views

Is there a way to prevent files to be create or uploaded beyond 8mb

I just want to make sure my students to be uploading, creating or storing files not bigger than 8MB in our file repository. Is it possible for me to do it in ubuntu linux?
0
votes
1answer
458 views

What is file-like objects in linux?

Linux Philosophy Linux borrows heavily from the UNIX operating system because it was written to be a free and open source version of UNIX. Files are stored in a hierarchical filesystem, with the top ...
1
vote
2answers
18k views

Fix read only file system usb

I have a usb flash memory which I can't do anything on it because its read only: sudo fdisk -l Device Boot Start End Sectors Size Id Type /dev/sdc1 * 2048 7864319 7862272 3.8G ...
-1
votes
1answer
625 views

mount: wrong fs type (VFAT, Ubuntu VM on macOS, SD card) [closed]

I am trying to install Arch Linux on a Raspberry Pi B. I am doing this in an Ubuntu VirtualBox VM (trying Ubuntu instead of installing to free up space). I have followed this tutorial to get the SD ...
-1
votes
1answer
1k views

Get file system free space in /proc

I wanna know if exist some file in /proc that shows the file system free space like the Ubuntu's command: df -h root@localhost:~$ df -h S. files SIZE USE FREE %...
0
votes
1answer
582 views

How to check the logs to see what process created a file? [duplicate]

The file dead.letter keeps appearing in my home folder. I want to know what process is responsible for this, but there is no information on the creator of a file in the file itself. However, I believe ...
3
votes
2answers
2k views

How to name volume in linux so that I can recognize each volume in filesystem?

I see this folder structure on Ubuntu. It comes by size of each volume. Three volumes are coming with sizes. One volume is for files shared between Ubuntu and Kali and other two are of Kali Linux. It ...
0
votes
1answer
321 views

How to seperate two swap partitions Ubuntu is using? One I have created for Kali

I installed fresh Ubuntu and then Kali. Installed Ubuntu with "/", "/home" and Swap partition. Left unallocated space for Kali. After Ubuntu, I installed Kali in similar way as above. Kali was ...
0
votes
1answer
354 views

/etc/fstab and parallel filesystem check (fsck)

FSCK(8) says: The root filesystem will be checked first unless the -P option is specified (see below). After that, filesystems will be checked in the order specified by the fs_passno (the sixth) ...
1
vote
0answers
852 views

Docker filesystem has no open files but cannot unmount

I have an ext4 filesystem mounted on /var/lib/docker, using Ubuntu 14.04. I ran umount /var/lib/docker and got: umount: /var/lib/docker: device is busy. I had already shut down docker with ...
0
votes
1answer
365 views

error in mounting drive on Ubuntu Mate terminal

I am trying to access files in the partition named "Envision" from the Ubuntu Mate terminal. The output of df -h is as follows Filesystem Size Used Avail Use% Mounted on udev ...
1
vote
0answers
615 views

Corrupt ext4 file system

I have a RAID 1 (hardware) array, where the system crashed, and I removed the hard drives. It is my understanding that a RAID 1 drive should work as an individual drive, as the RAID data is stored at ...
5
votes
1answer
304 views

åäö filenames not working after moving website to new host

I recently moved a Wordpress site from one.com to a linux vps server running Ubuntu 16 with Apache. Everything works fine except images with åäö which show as broken, right clicking and copying the ...
1
vote
1answer
2k views

I/O error after power failure, filesystem remounting as read-only [closed]

I have a production ESXI server with loads of VMs. I had a power outage a few hours ago that was so long my UPS's battery drained. The automatic shutdown mechanism wasn't working for some reason so ...
0
votes
1answer
274 views

Problem with the permissions of newly created /tmp

On an Ubuntu 14.04 system I had to enlarge the /tmp folder, and instead of resizing partitions I unmounted the partition mounted to /tmp and created a new file mounted to /tmp, following the ...
1
vote
1answer
2k views

Lvextend don't find free space

I'm trying to expand my lvm partition on Ubuntu 16.04, but lvextend -l +100%FREE /dev/Server0-vg/root shows New size (3861 extents) matches existing size (3861 extents) Run `lvextend --help' for ...
3
votes
2answers
554 views

freshly created partition missing even after partprobe, shows no such device or address

On Ubuntu 14.04 I am trying to create new partitions but it's failing to create the filesystem fdisk -l /dev/sde WARNING: GPT (GUID Partition Table) detected on '/dev/sde'! The util fdisk doesn't ...
1
vote
0answers
716 views

mkdosfs to format dashcam SD card FAT32 with 32kb cluster size

I am trying to write a script to reformat a dashcam SD card, as is recommended by the manufacturer. I can do this on a windows system with a simple python script, a snippet here: ... fm = windll....
1
vote
0answers
111 views

mhddfs filesystem hangs after a while with large directory

I have 2 RAID1 of 4TB each which are joined together with mhddfs. There is one directory that exists on both disks that contains hundreds of thousands of files. There is a lot of read/write happening ...
20
votes
5answers
59k views

Cannot remove file: “Structure needs cleaning”

I have an external hard drive which is encrypted via LUKS. It contains an ext4 fs. I just got an error from rsync for a file which is located on this drive: rsync: readlink_stat("/home/some/dir/...
2
votes
2answers
4k views

How to stop auto mounting of devices in Ubuntu?

I have an Ubuntu 16.04 LTS desktop system that I use to rescue disk drives (using dd or ddrescue). Whenever I plug in a disk drive it is automatically mounted and shown in the file manager. I don't ...
1
vote
0answers
1k views

Can't access folders anymore: Input output error

I was using my pc and downloading some stuff from the internet and all of a sudden one of the folders MIT6.046JS05 got removed. I couldn't see it in Nautilus anymore. I tried ls with command line and ...
1
vote
1answer
466 views

Linux distribution with out-of-the-box exFAT support

I have to create a live USB media I can boot a machine with that has no network devices. At the same time, it has to be capable of writing to/reading from exFAT formatted devices. I had to find out ...