0
votes
0answers
13 views

Is it possible to recover ext4 journal state before inode corruption?

First of all I'll describe my situation: I decided to make some partitions cleanup, resize, etc (not creating damn backup). Then I wanted to shrink filesystems, so I closed computer and booted some ...
0
votes
0answers
23 views

Forcing ext4lazyinit to finish its thing?

Is there any way to 'force' ext4lazyinit to finish the thing it does with maximum priority? Something like "I don't care about my system's ressources, just do your job as fast as you can"? I should ...
0
votes
1answer
21 views

How to modify the starting boundary of an ext4 partition?

There are 4 partitions on the disk. parted /dev/sda --script -- print ... 1 1049KB 50.0GB ... ext4 2 50GB 82GB ... linux-swap 3 82GB 100GB ... ext4 4 100GB 1000GB ... ext4 My goal is to ...
1
vote
0answers
27 views

Ext4 allocation pattern with random writes in sparse file

If I create a large (a few GB) sparse file in ext4, and then write randomly throughout the length until all 4k blocks have been "touched", in the absence of other heavy write load, can I expect that ...
1
vote
1answer
78 views

I accidentally formatted the wrong volume - is it possible to restore the previous Ext4 filesystem?

I know that a similar question has already been asked. This morning I accidentally formatted the wrong volume, containing mostly video files (about 30GB each). I am currently trying to restore the ...
1
vote
0answers
45 views

ext4 superblock backup locations are different from what is documented

When I format an ext4 filesystem the mkfs says: Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000 My sparse_super flag is ...
1
vote
0answers
22 views

ext4 superblock checksum?

I'm reading the ext4 superblock, but its s_checksum (offset 0x3FC) is always zero. Also the s_checksum_type (offset 0x175) field is zero as well, however according to ...
1
vote
1answer
63 views

Changing fstab options

What happens when file-system options in fstab are changed? Speaking of an already populated file-system, would changing options in fstab cause issues? For example, if one were to enable or disable ...
0
votes
0answers
197 views

Is ok to limit writes on SSD/EXT4 by setting commit parameter in fstab?

I've installed an SSD on my / (Linux scv 3.8.0-34-generic #49~precise1-Ubuntu SMP Wed Nov 13 18:05:00 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux). If I leave the default settings in /etc/fstab I can see ...
3
votes
2answers
187 views

Is there anything faster than `find . | wc -l` to count files in a directory?

Not uncommonly I have to count the number of files in a directory, sometimes this runs into the millions. Is there a better way than just enumerating and counting them with find . | wc -l ? Is there ...
0
votes
2answers
467 views

Shrinking ext4 partition: fdisk won't allow to recreate the partition at the same start block

Last time I shrank a partition, it was just as easy as deleting it and recreating it from the same start sector. But this time, fdisk won't allow to recreate the partition from sector 63, it forces ...
1
vote
0answers
168 views

Contiguous physical allocation of a set of files in linux filesystem (ext4)

I have a set of files that I wish to be allocated contiguously in the filesystem. I will be accessing all these files sequentially in a single read one after the other and I want to optimize reading ...
0
votes
1answer
153 views

EXT4 external hard drive for use with multiple systems

I recently bought a external hard drive to store some data on. I use Linux but I am not a power user. If I format the drive to EXT4, is it possible for the permissions to ever screw up and I lose ...
3
votes
2answers
15k views

Creating ext4 partition from console

I have a volume /dev/sda1 (1.2 TB) containing an NTFS partition using 0.6 TB space. I want to make an ext4 partition in the remaining 0.6 TB space. I have not tried anything yet because I don't want ...
0
votes
1answer
199 views

e2image restore file system metadata

I'm trying to recreate file system metadata on a virtual disk. I can save this metadata using e2image, and the e2image man page tells me I can use e2image -I to restore the file system. Unfortunately, ...
0
votes
3answers
262 views

Using ext4 hard drive on Windows XP Pro machine?

Have an old laptop with Windows XP Pro and a new one with Linux Mint 13 LTS. I want to transfer my personal files from the old machine to the new one. Firstly I thought using crossover cable but I ...
0
votes
2answers
86 views

How to analyse timestamp in ext4 manually?

I am doing research on Ext4 and I believe I understand the fundamentals of Ext4. Ext4 stores timestamps. In my assignment, I have proposed to analyse the timestamp of Ext4 MANUALLY instead of typing ...
0
votes
1answer
421 views

Recover Linux ext4 partition formatted(erased) to hfs+

I have a Linux partition with ext4 and I accidentally formatted it with Mac OS X Disk Utility to HFS+ (Mac OS X Extended Journaled). I tried to recover it with http://www.r-studio.com/ on Windows but ...
5
votes
2answers
515 views

stat and ls show wrong file size (terabytes wrong)

Ok, I have a bunch of vCard files, all about 200 to 300 Bytes in size. While trying to get them archived, I wondered why that takes so long and discovered that there is one file with a wrong size. ...
0
votes
1answer
133 views

Rescue data from ext4 ISO image?

so, my SD card got broken and cannot be read completely (escpacially the directory I want to read from has problems). I was able to create an ISO image of the partition using dd but cannot mount it. ...
0
votes
1answer
1k views

Corrupted linux partition: EXT4-fs error loading journal

I have a Linux partition (Ubuntu 12.10 upgraded to 13.4) on a machine that originally came with Windows 7. Windows 7 was working unusually slow (still is, and was still running slow after ...
0
votes
2answers
259 views

Linux: Should off-site backups be stored in ext3 or ext4?

We have been using ext3 for Linux server off-site backups. With everything else on CentOS 6 being ext4, I'm wondering if it would be a better idea to also have the off-site backups in ext4 too? The ...
5
votes
1answer
314 views

Linux shows several folders with the exact same name

I recently used a mac to copy several files and folders to a USB drive (ext4 through ExtFS), and now in Linux (Xbian) two folders in the root of the drive are shown four times. The output of "ls ...
2
votes
2answers
8k views

How do I read the Ext4 partition of my SD card on Windows? [duplicate]

I have a 32 GB SD card with one FAT32 partition and one Ext4 partition. If I mount the SD card to the computer I can read the FAT32 partition in Windows just fine. But how do I read the Ext4 ...
0
votes
0answers
83 views

setting system time at startup from ext4 filesystem

I have a pc with no battery backup and using ubuntu 12.04 with ext4 it will constantly ask me to handle the situation by saying that my superblocks last write is in the future. So I wonder - can I ...
1
vote
2answers
113 views

I have an ext3 iso disk image. Can I use it and write it to a ext4 partition?

Is it possible to do so ? I am migrating to EXT4 because of the SSD drive that has TRIM funtion. I have to have ext4 partion.
0
votes
2answers
828 views

mkfs.ext4 errors

I've just installed Kali Linux and am working with an img file I created from dd (/dev/zero). When I go to do mkfs.ext4 on it, I get mkfs.ext4: Device size reported to be zero. Invalid partition ...
1
vote
2answers
984 views

Is it safe to disable ext4 journaling on root and home partitions?

On my ArchLinux laptop I have / and an ecryptfs encrypted /home partition formatted with ext4. Both contains importand (backuped) data. Is it safe to disable ext4 journaling when partitions contains ...
0
votes
2answers
760 views

rm -rf extremely slow & slows down server

I did a rm -rf foldername in an attempt to delete a folder containing 10,000s of 25KB files. Question Why is it taking so long (Almost 30 minutes)? Why did the server became extremely slow, even ...
1
vote
1answer
318 views

HDD is preventing ubuntu from installing

I have recently attempted to install ubuntu on my laptop, replacing windows 7. The HDD was working fine with windows 7. On my first attempt to install ubuntu it kept giving me an error that was ...
0
votes
0answers
118 views

Setting up Fedora alongside Windows 8 with special considerations

I've recently found myself much more comfortable using the console and other tools on my Mac than their counterparts with Windows. Specifically, these tools include LaTeX/xindy, emacs and its load ...
2
votes
1answer
7k views

Disable journaling on ext4 filesystem partition

I'm running Linux Mint on an SSD. I've read how one optimization is to disable journaling. However, when I run the command: sudo mke2fs -t ext4 -O ^has_journal /dev/sda1 I get an error saying that ...
0
votes
1answer
288 views

Linux fine tuning for Vertex 3 SSD

I've been reading about optimizations for SSD disks on Linux, there is lots of info out there although very confusing and most feel outdated so I'd be grateful if someone sheds some light on the ...
1
vote
2answers
361 views

Why doesn't Ext4 cache directory size?

Once again I'm cleaning up my desktop because I'm running out of HDD space and everytime I call 'du -sh ~', it takes a really long time to calculate the current size of the directory. From my ...
2
votes
1answer
2k views

What is EXT4-fs error (device md0): ext4_mb_generate_buddy:739: group 10770, 0 clusters in bitmap, 32768?

On my Ubuntu Server 12.04 I got this errors (via dmesg): [ 1104.544121] EXT4-fs error (device md0): ext4_mb_generate_buddy:739: group 10771, 0 clusters in bitmap, 32768 in gd [ 1104.549227] EXT4-fs ...
2
votes
2answers
1k views

Parted has no 'resize' command available

I'm trying to resize a partition using parted, but it has no the 'resize' command available gchain@archbogchain@archbook:~$ sudo parted /dev/sdb GNU Parted 3.1 Using /dev/sdb Welcome to GNU Parted! ...
1
vote
1answer
538 views

Reverse lookup of inode/file from offset in raw device on linux and ext3/4?

In linux, given an offset into a raw disk device, is it possible to map back to an partition + inode? For example, suppose I know that string "xyz" is contained at byte offset 1000000 on /dev/sda: ...
1
vote
1answer
826 views

Slow rm performance on an ext4 partition

Removing what seems to me to be a moderate number of files takes a very long time. For example: $ pv linux-3.0.16.tar.bz2 | tar xj 73.2MB 0:00:16 [4.55MB/s] $ pv linux-3.0.16.tar.bz2 | tar xj 73.2MB ...
1
vote
1answer
271 views

EXT4-fs error (device loop0) ext4_mb_generate_buddy

I've been randomly getting theses in my /var/log/messages [5747511.945300] EXT4-fs error (device loop0): ext4_mb_generate_buddy: EXT4-fs: group 1: 29505 blocks in bitmap, 29455 in gd Not had any ...
0
votes
1answer
442 views

western digital caviar black. EXT4-fs error

Recently I update my HDD on desktop machine, and bought WD Caviar Black. But after I format & copy information to it (using dd), and fix partitions size: I have next errors in kern.log: Aug 27 ...
0
votes
1answer
89 views

Quick way to empty a partition

I have a partition, formatted ext4, that I want to empty completely. I will be repeating this write-then-empty process repeatedly, so I want the emptying step to be as quick as possible. One option ...
1
vote
1answer
432 views

On Linux allow a file to be read/write but not deleted

Is there a way in Linux on a ext4 file system that I can make a file readable and writeable but not deletable? The directory that the file resides in still needs to be writeable by the owner of the ...
0
votes
1answer
80 views

Dealing with different usernames when mounting removable media in Linux

I have a laptop in which my username is, say, "foo". I have an external drive, formatted with Ext4, for which all files are owned by "foo" (at a filesystem level). Now, I have a desktop in which my ...
3
votes
3answers
480 views

Are there any reasons why I wouldn't want to format a USB flash drive in HFS+ for Linux/Mac usage?

There have been other questions regarding the use of HFS+ formatted drives on Linux (e.g. this); however, I am specifically interested in knowing if this is a good idea for a particular purpose. I ...
1
vote
1answer
620 views

How could I easily pack a directory to an ext4 loop partition image?

I would like to pack the content of a directory into an ext4 partition image easily, without mounting a loop device. Background: I am building a version of Android which will mount system partitions ...
2
votes
1answer
529 views

Hard drive partition size wrong. How do I resize without loss of data?

$ fsck fsck from util-linux 2.20.1 e2fsck 1.42 (29-Nov-2011) The filesystem size (according to the superblock) is 610471680 blocks The physical size of the device is 536870911 blocks Either the ...
0
votes
0answers
458 views

Cannot mount harddrive from HP ProBook via SATA-USB adapter

I'm trying to mount harddrive from HP ProBook 4525s to another computer for data backup from damaged laptop. There are two ext4 and one swap partition on hdd. I'm using SATA-USB adapter, but after I ...
4
votes
1answer
867 views

Why are the sizes of 2 directories different if the data within the directories is identical? They are identical ext4 partitions and disks

root@phoenix:~# ls -ld /backups/external?/var/subsonic/thumbs/110 drwxr-xr-x 2 root root 73728 Mar 4 15:35 /backups/external3/var/subsonic/thumbs/110 drwxr-xr-x 2 root root 69632 Mar 4 15:35 ...
0
votes
0answers
475 views

Booting an EXT4 image file from GRUB2

My friend needed a fast HDD so I gave her my small 64GB SDD. This SSD had my Linux install on it. I used dd to make an image of the partition (boot, root and home on one partition). This partition is ...
1
vote
1answer
69 views

Is it possible to fork a symlink?

I have my configuration file (e.g. .zshrc) put into an encfs container. When I log into the system the container is not yet mounted, hence the the symlink is dangling then. Is there a way to let the ...