~ overflow ~

Archive for July 5th, 2010

How to find disk UUID

by z3n on Jul.05, 2010, under Linux Happyness, Tips & Hints

Problem:

I wanted to change the default mounts at /etc/fstab, but i couldn’t find the disks UUID.

Solution:

blkid /dev/DEVNAME
Leave a Comment :, , , , more...

How to figure out how many sectors a disk has on linux

by z3n on Jul.05, 2010, under Linux Happyness

Problem:

How to find out the absolute count of sectors on a disk at linux?

Solution:

hdparm /dev/YOURDEV
Leave a Comment :, , more...

How to clone a disk on linux

by z3n on Jul.05, 2010, under Linux Happyness

Problem:

How to do a 1:1 copy of a disk on linux?

Solution:

dd bs=4k if=/dev/SOURCE of=/dev/DESTINATION conv=noerror,sync

This will make a 1:1 copy directly into the destination device, you should be aware that both devices should have the same size, so make sure you know which one is the source and destination in order to avoid catastrophic fail.

For your enjoyment, you can also make a iso image:

dd if=/dev/SOURCE of=/path/to/image.iso

Source:

E-How (Spam Warning)

Leave a Comment :, , , , more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!