A filesystem is a method of storing and organizing computer files and their data.
2
votes
2answers
284 views
Is there an excellent tutorial on how to resize a rootfs partition (and shrink another) on a drive that is 100% allocated?
I'm experiencing the all-too-common "root partition full" situation. 100% of my hard drive is allocated. My home (ext4) partition has plenty of space to give up for my full root partition (rootfs).
...
2
votes
1answer
150 views
How do I choose between ext 3 and 4?
I tried looking at the difference, the main ones seem to be 4 supports more subdirectories in a file, supports larger files, has delayed write which I don't prefer as I don't want data loss. I also ...
6
votes
1answer
1k views
How to determine the filesystem of an unmounted device? [duplicate]
Possible Duplicate:
Find filesystem of a partition from a script
How to show the filesystem type via the terminal?
I'm looking for a command that yields the filesystem type as mount would ...
3
votes
1answer
130 views
Unix and Linux without a file system?
I was reading Eric Raymond's the Art of Unix Programming, (Amazon and online) and at the very beginning of the book where he analyses what Unix does wrong he says:
Having a file system at all may ...
2
votes
2answers
367 views
How to show the filesystem type via the terminal? [duplicate]
Possible Duplicate:
How to tell what type of filesystem you’re on?
Find filesystem of an unmounted partition from a script
How can I quickly check the filesystem of the partition? Can I ...
2
votes
3answers
180 views
Disk size management
I am using Fedora 16. My /dev/sda2, mounted on / (root) with something like 50G got filled 100%:
[foampile@~ 13:13:39]> df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs ...
0
votes
1answer
109 views
About sector and blocks, and a little confusion in /proc/diskstats
I've been studying about diskstats lately, and I get that the amount of hdd read comes in sectors. But in most places I've noticed that there exists a slight misunderstanding about sectors and blocks. ...
1
vote
1answer
383 views
cannot 'ls' /mnt directory
I have a CentOS-6 machine that I'm working on that is running a live database. It's having a problem with the /mnt directory. I cannot ls the directory for some reason. stat is working and shows ...
1
vote
0answers
178 views
Unable to access Linux share from a Windows machine with NT_STATUS_BAD_NETWORK_NAME error
On the Linux machine I changed the smb.conf like this:
[john]
path = /root/john/downloads
available = yes
valid users = john
read only = no
browsable = yes
public = yes
writable = yes
The path ...
0
votes
0answers
19 views
What are the folders at the root level used for on linux? [duplicate]
Possible Duplicate:
How does the Linux file structure work?
Long have I seen this directory listing (or others like it) when doing an ls /:
bin dev home lost+found opt root sbin ...
0
votes
1answer
82 views
Filesystem writes seemingly lost
I've been experimenting with tcpdump, and I've found some very bizarre filesystem behavior. It doesn't look to be a tcpdump problem as I'll explain in a second.
The following command produces no ...
0
votes
1answer
284 views
Does using lvextend destroy data already on the volume?
Does resizing a logical volume with lvextend and e2resize destroy data already on the volume?
See also this related unanswered question and some examples of the process:
Can I resize the root ...
4
votes
1answer
472 views
what is the difference between “chmod 775” and “chmod 2755”?
Question
What is the difference between "chmod 775" and "chmod 2755" ?
6
votes
2answers
151 views
du command show a slash after directories?
How to use du command show a slash after directories?
For example:
du -ab /root/test/php-5.4.8/
Result:
1781 /root/test/php-5.4.8/main/internal_functions.c.in
973596 ...
1
vote
3answers
166 views
What logs would be written if file system is full in UNIX?
I am working on a unix server and I guess during some time in past the file system had been full. However, I need some solid data to prove it. Will there be any OS logs or something of that sort to ...
1
vote
4answers
337 views
Automatically change file permission upon write to a folder
How can I create directories so:
/data
/data/user1
/data/user2
and make sure that whenever root writes inside them, depending on which directory it writes to, different owners are set.
Example:
...
1
vote
1answer
356 views
How to unlock read-only filesystem on OpenWRT router linux distribution?
I have installed minimal OpenWRT firmware on Linksys router.
When I try to modify some of the files withing /etc/ directory for example firewall.user file by using command vi firewall.user it opens ...
2
votes
2answers
236 views
Filesystem type on Solaris 5.10
How can I get the file system type for each device on Solaris 5.10? I tried mount with no args but that only listed each mount point, similar to df.
Also, how can I find where a specific directory ...
10
votes
3answers
1k views
What happens when you delete a hard link?
If you do rm myFile where myFile is a hard link, what happens?
5
votes
1answer
756 views
Birth is empty on ext4
I was just reading up on the Birth section of stat and it appears ext4 should support it, but even a file I just created leaves it empty.
~ % touch test ...
4
votes
2answers
288 views
How to create low-overhead file system
I have usb keychain with size of 7.5GB and I need to copy file on it with size 7.4GB. But I can't because superblocks consume 0.5GB of space.
4
votes
3answers
103 views
Effectivity of shred on different file systems
man shred warns that the command is not useful on file systems that don't overwrite in-place. I don't have much knowledge about the current and upcoming file systems, but I would suspect that many of ...
0
votes
1answer
64 views
/ permissions on a linux filesystem
Does the / have permissions attached to it? If so what are they and what command do you run to find out?
The reason why I ask this is to know weather a NFS mount reflect this if your export is set to ...
3
votes
3answers
300 views
A lot of errors on ext4, however smart doesn't show any errors
I have a Debian box with additional ( it is not a system disk ) 1.5Tb sata hdd (wd caviar green). There is only one partition on the whole disk.
Disk is used for backups from remote system (with ...
2
votes
1answer
69 views
Are there widespread filesystems which represent directories with structures optimized for fast lookup?
In "The Art of Unix Programming", on the topic of The Terminfo Database I read:
If you look in the terminfo directory, you'll see subdirectories named
by single printable characters. Under each ...
1
vote
2answers
2k views
Cannot access disk, partition table broken
I was so dumb, to turn of the power on my Readynas Ultra 4 when it was installing the disk (3TB WD Green), I had no time to wait for it as I was going to return it (It was to damn noisy) The disk ...
9
votes
1answer
377 views
What is Linux doing differently that allows me to remove/replace files where Windows would complain the file is currently in use?
The example I have is Minecraft. When running Bukkit on Linux I can remove or update the .jar files in the /plugins folder and simply run the 'reload' command.
In Windows, I have to take the whole ...
2
votes
1answer
184 views
How to fix a fragmented ext disk - myth or truth?
I just read this article about the virtually non-existent disk fragmentation on *nix filesystems.
It was mentioned that due to the way ext handles writing data to the disks, fragmentation may only ...
5
votes
1answer
250 views
Automount not equivelent to mount?
I'm struggling to get automount to work as desired.
If I run the following:
sudo mount -t nfs server:/path/to/share /path/to/mount_point
I get the mount appearing fine.
However, if I add the ...
4
votes
2answers
479 views
Does the filesystem influence flash drive speed?
I'm currently filling up an empty 16GB flash drive which gives me a lot of time for imponderables. It's formatted as fat32 or whatever it came with (and I'll probably leave it that way for ease of ...
3
votes
3answers
181 views
Why do I get 3048 MB from a 64 MB flash memory?
I have a Linux based STB (set-top-box) and it features a 64 MB flash memory and 256 MB of RAM. I wanted to take a backup of some of my settings before I flash it with another image, but I wasn't sure ...
3
votes
2answers
116 views
I want to modify root files while also being able to create non-root files in a single text editor session.
Catch 22: If I open my text editor without using sudo, I don't have permission to save any changes. If I open it with root privileges, any files I create are owned by root. I want to be able to ...
2
votes
1answer
179 views
remove unallocated space from a partition image
I have just created an image of an sd card using dd and the image is compressing down less than expected. I suspect this is because the card had not been zeroed out before I started to make the image. ...
6
votes
2answers
634 views
Can I watch the progress of a `sync` operation?
I've copied a large file to a USB disk mounted on a Linux system with async. This returns to a command prompt relatively quickly, but when I type sync, of course, it all has to go to disk, and that ...
3
votes
1answer
265 views
When we use mv command, what changes take place in HDD?
Under following conditions-
mv within the same HDD partition
mv to a different partition in the same HDD
mv to a different device (e.g. USB HDD)
Is the complete file moved or is it a very small ...
4
votes
5answers
950 views
How to clean up unnecessary files
Please suggest me any particular unnecessary file that I can clean to back everything to normal condition(temporarily). (i.e. any log or archieve or anything ). My var/log has only 40MB and Home ...
1
vote
2answers
489 views
How to extend second CentOS 5 partition in VMware
I know this question has already been answered for a primary partition, but what about a secondary?
I have extended the space to 30G in VMware. When I perform an fdisk -l, here's the output:
Disk ...
-3
votes
1answer
115 views
Is there a way to create a directory structure and files inside a file on a 'base' filesystem'?
Current scripts create and delete multiple files over NFS. I have been told that this is the problem, so was thinking if the run directory the script ran in looked like a single file to NFS then I ...
1
vote
1answer
123 views
Problem after deleting a system partition on another HD
While installing Debian Wheezy, I decided to use my another HD as /home/igor/Documents/, and the system installed correctlly nothing wrong happened, but later I decided to delete that partition so I ...
3
votes
1answer
175 views
corrupted library after hard shutdown
yesterday night my laptop executes a hard shutdown because my battery was out of charge. After the reboot Xorg hangs and the troubleshooting was pretty hard. A first file system check of my ext4 ...
1
vote
2answers
450 views
Moving /usr to its own filesystem/logical volume
My Fedora 17 (x64 - running on VMware Workstation 8) root filesystem is running out of space (this was an install using the default layout as suggested by the Fedora installer):
# df -h
Filesystem ...
3
votes
1answer
1k views
recovering ext4 partition after dd'ing over start of HD
I accidentally used dd and wrote over the first 208MB of my external disk. What I wrote over is a partition on its own (Debian nestinstaller) so what I see now is not my old (now damaged) ext4 ...
0
votes
1answer
619 views
Not able to execute system files
I was trying to install ruby with :
sudo apt-get install ruby1.8
output:
W: Not using locking for read only lock file /var/lib/dpkg/lock
E: Unable to write to /var/cache/apt/
E: The package lists ...
2
votes
1answer
194 views
referring to files inside a jar or zip files in Linux
I am wondering if I can refer to files inside JAR or ZIP files using URLs. I mean, without using a tool (such as the Java Jar utility) but just at the operative system level.
For example, if I have a ...
3
votes
2answers
1k views
how to find (and delete) all empty directory in my home directory recursively? [duplicate]
Possible Duplicate:
How to remove all empty directories in a subtree?
I create directories very often, scattered over my home directory, and I find it very hard to locate and delete them.
...
1
vote
2answers
242 views
Why does e2fsck fail during boot, but not later?
When booting my Debian server, I'm presented with the following error concerning my external hard drive:
/dev/disk/by-label/elements:
The superblock could not be read or does not describe a correct ...
1
vote
2answers
1k views
filesystem read only
My filesystem is read-only for several days.
Searching for somesthing on my /var/log/messages and found this.
****EMITTING CHANGED for ...
6
votes
2answers
110 views
Removed apt-get from Ubuntu
Well my fingers did manage to do sudo apt-get remove libstdc++6 and write, yes. That removed alot of system files. Is there any way to bring it up working again? I have connected to terminal, and wget ...
1
vote
1answer
151 views
Correct owner, group and permissions when mounting an image file
Suppose I have an image home.img of a home partition of another linux machine (B). On that machine there is a users userB and there is a special group, groupB. Consider for example a file fileB in the ...
2
votes
1answer
501 views
file system uid and gid in linux
I came across a linux kernel tutorial and there they talked about 4 pairs of identifiers and one of them was file system uid and gid.
Could someone explain me what it is and how it is different from ...


