Archive for the ‘Uncategorized’ Category
Quickly extract a folder full of zip files
I need this snip-it a couple times a year to decompress a folder full of left4dead maps.
You will need, 7zip.
Open a windows command prompt.
cd into the folder where your zip files reside.
run C:\Program Files\7-Zip\7z.exe x *.zip
This will extract all the files into the current directory and retain any directory structure inside the zip files.
Depending on the folder permissions, you may need to start the command window as an administrator.
(right click on the ‘command prompt’ icon and select run as administrator or use the ‘runas’ command.)
Warning: The resulting partition is not properly aligned for best performance.
I’m adding a disk to an ubuntu machine and creating a new partition which uses the whole disk.
GNU Parted 2.2 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) print Error: /dev/sdb: unrecognised disk label
So I make a new dos partition
(parted) mklabel New disk label type? msdos (parted) print Model: - (scsi) Disk /dev/sdb: 53.7GB Sector size (logical/physical): 512B/512B Partition Table: msdos Number Start End Size Type File system Flags (parted) mkpart primary ext4 0 -1 Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel?
You should align the first partition at block 64
(parted) mkpart primary ext4 64 -1
mkpart syntax is: mkpartfs part-type fs-type start-mb end-mb
so this just wastes the first 64 MB of space on the disk. Setting the start at 1 avoids the error message as well.
mkpart primary ext4 1 -1 (parted)
And your error free. Go forth and partition.
Thanks to Stefan.
This is why I put stuff on the internet.