Posts with the tag Filesystem
The following collection of commands shows how to migrate your partition formatted with ext3 to an ext4 filesystem. The safest way is to do this when the partition is unmounted. However, if the partition to convert is where the root filesystem of your Linux distro is stored and you don't...
Sketch of an Advanced HDD / Partition Setup with high availability (mdadm software raid), encryption (dm-crypt) and high flexibility (lvm volume management)
Recently I found an interesting comment on an article about Fedora 16 maybe using btrfs as default file system: The author Vanger explained his current hard disk / partiton setup on a server and how he hopes to get a more efficient system with btrfs. More than the outlook...
sudo apt-get install lvm2
To create a logical volume on a loop device (
/dev/loop1 stored in ~/.lvmcontainer):
dd if=/dev/zero of=~/.lvmcontainer bs=512 count=2048000 sudo losetup /dev/loop1 ~/.lvmcontainer sudo pvcreate /dev/loop1 # initialize /dev/loop1 as a physical volume sudo vgcreate volg1 /dev/loop1 # create the volume group volg1, consisting of /dev/loop1 sudo lvcreate -L...
The btrfs file system is the future of linux file systems.
sudo apt-get install btrfs-tools sudo mkfs.btrfs /dev/sdXY
- efficient snapshots (and subvolumes)
- automatic calculation of hashes for data and metadata (better data integrity)
- transparent compression (mount option
- solid state disk optimization (mount option
- copy on write (better data...
T get the boot_info_script, run:
cd ~/Downloads wget http://sourceforge.net/projects/bootinfoscript/files/bootinfoscript/0.55/boot_info_script055.sh/download -O boot_info_script.sh
To execute the boot_info_script and thus get information about your bootable partitions etc., run:
sudo bash ~/Downloads/boot_info_script.sh
- The official website: http://bootinfoscript.sourceforge.net/
- Analyse boot environment using the boot_info_script (German): http://wiki.ubuntuusers.de/GRUB_Umgebung_analysieren#Umfassende-Analyse-mittels-Boot-Info-Script
Tools you might want and/or need:
Usually 5% of the storage of an ext2 or ext3 volume are reserved for the root user. You can use tune2fs to make that space available to other users!
tune2fs -m 0 /dev/sdb1
Only do this for non-system partitions (as you might need the "root quota" to recover from full...
On startup the system hung because the root UUID was not found. http://ubuntuforums.org/showthread.php?p=9020811#post9020811
So when I ran
sudo blkid — executed from a live cd — it didn't show the root partition (all other partitions UUIDs were listed).
But tune2fs showed me its UUID
sudo tune2fs -l /dev/sda2
So I tried...
With two little tools (
hexdump) you can use your command line to inspect / investigate the master boot record of a hard disk.
The command is
sudo dd if=/dev/sda bs=512 count=1 | hexdump -C
/dev/sda is the hard disk you want to inspect.
So here I provide an example...
To produce an ISO image of a directory (with
-J Joliet extensions; with
-r Rockridge extensions; with
-R Rockridge extensions preserving rights and ownerships; with
-V to set the Volume-ID)
mkisofs -J -R -o image.iso -V "Data Backup" folder/data
More information to be found in Linux User, 6/2006 p....
Newly bought the MBR contained:
philipp@lion:~$ sudo dd if=/dev/sdb bs=512 count=1 | hexdump -C [sudo] password for philipp: 1+0 records in 1+0 records out 512 bytes (512 B) copied, 4.8121e-05 s, 10.6 MB/s 00000000 eb 58 90 4d 53 44 4f 53 35 2e 30 00 02 08 22 00 ...
- HOWTO recover deleted files on an ext3 file system with ext3grep
- Recover Deleted Files With foremost
- My newer blog post "Data Recovery on Linux using TestDisk"
- undo rm -r, restore data on unix.stackexchange.com
I'm writing this post because I want to get away from my Raidsonic IB-NAS-4220-B, a dedicated network access storage (NAS) device. Instead I want to put the two S-ATA hard disks into my Ubuntu linux home server. It should use software raid1 just as the NAS did before and I...
Note: The following commands have all to be run as the super user (root) as raw access to partitions is not permitted to normal users.
A simple bit by bit backup of the partition
9 on the hard disk
dd if=/dev/sdx9 of=imagefile bs=2048
You can also pipe it into gzip...