device manager help..
I am trying to install a new hd on my server, but i stuck on the device manager theory.
when I command fdisk -l
appears a series of /dev/dm-0 /dev/dm-1 and etc.
and tells that there is no table partition on /dev/dm-0 etc.
I am trying to create a new lvm partition is an sdb, but the problem is that I don't have the device manager concept.
can somebody explains how it works for me...
Have you tried to use gdisk or parted instead?
I ask you cause that output is the kind that you expect when you try look GIUD partition table with fdisk (fdisk will see MBR partition tables only), and servers are expected to use GPT (I don't know if it's your case anyway)
hope to hear from you soon as it would be nice you tell us if you solve your issue.
Good Luck! ;)
hello my friend,
Originally Posted by Exheon
I did everything wich is on the link..
The problem is I receive a message saying that the special device does not exists when I try to mount it....
The others partitions are inside a mapper which I do not known what is it...
/dev/mapper/partition /partition defaults 0 2
I am trying to understand what is this device mapper... I do not want to do things that I don't have the theory...
Do you known something about the device mapper or something about the device manager?
It seems that your devices are encrypted with dm_crypt, look, I will try to recreate your situation on a Virtual Machine to see what's going on.
Originally Posted by pinguim007
perhaps you remember if you use dm_crypt and/or lvm on your drives? both uses the device mapper infrastructure and it would help a lot to know, if you don't nevermind.
Don't worry, I think we will work this out;)
Here is some more info to get you started:
How to Manage and Use LVM (Logical Volume Management) in Ubuntu - How-To Geek
Disks that are formatted with LVM you will need to format a new disk in the konsol/terminal. Read more from the link above.
OK, this is what i found so far:
I made a install of Debian, on partitioning I ask the installer to create a encrypted LVM partition table for me, so when the installation process ends and the system boots I'm asked for the given passphrase so i type it and then I can log into my new system, once logged i run the "fdisk -l" command having the same result you provided before.
(If you are asked for the passphrase too, then your partitions are encrypted with dm_crypt too)
Then I halt the Virtual machine, in order to install a second hard disk to it
Then I run "ls /dev" command having this output
those entries that I marked with 'red'. are the partitions managed by the device mapper , note the "blue" entry now on the ls output, that corresponds to our second hard disk
I'm able to mount it, just by following these steps
First, create a filesystem for it:
(perhaps you would want to set up the partitions with cfdisk or fdisk first instead of creating a filesystem for the whole drive)
mkfs -t ext3 /dev/sdb
then I mounted on /mnt/hd2
I create a text file on the device mounted on /mnt/hd2 to make sure that correspond of the second disk created for the Debian Virtual Machine, by adding the virtual disk to my Arch Linux VM, and I'm able to mount it and see the file From Arch. so I'm pretty sure this applies to you
mount /dev/sdb /mnt/hd2
Later I will check if I'm able to set LVM for the second disk