LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] New drives getting recognized as device mapper devices

[ILUG] New drives getting recognized as device mapper devices

A. Dreyer ml10022 at adreyer.com
Mon Oct 20 12:56:20 IST 2008


On Sun, 19 Oct 2008, Walter Faleiro wrote:

> Hi,
> I had two sas disk drives connected to a sunfire X4100 and used half of each
> as /tmp and swap.
> now when I removed them from the original system and connected it to an
> alternate sunfire X4100 they get recognized as below
> 
> Disk /dev/sdb: 146.8 GB, 146810536448 bytes
> 255 heads, 63 sectors/track, 17848 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>    Device Boot      Start         End      Blocks   Id  System
> /dev/sdb1               1       17834   143251573+  83  Linux
..
> 
> Disk /dev/dm-0: 146.6 GB, 146695782400 bytes
> 255 heads, 63 sectors/track, 17834 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
> 
>      Device Boot      Start         End      Blocks   Id  System
> /dev/dm-0p1               1       17834   143251573+  83  Linux


Hi,

If you want to know more about device-mapper info you might want to save
the data and look at it with a text editor:
	# dd if=/dev/sdb1 of=dm-header bs=1M count=2
	# more dm-header

To clear the device-mapper data from an *empty* partition overwrite the
first 2-4MB with zeros:
	# dd if=/dev/zero of=/dev/sdb1 bs=1M count=2


Regards,
Achim


-- 
Achim Dreyer                || http://www.adreyer.com/
Senior Unix & Network Admin || RHCE, RHCA, CCSA, CCSE, CCNA
Phone: +44 7756 948229      || CACert assurer




More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell