LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   How do I setup Windows Spanned Dynamic Disks to be used in Linux? (https://www.linuxquestions.org/questions/linux-hardware-18/how-do-i-setup-windows-spanned-dynamic-disks-to-be-used-in-linux-600427/)

nLEyETn 11-17-2007 12:53 PM

How do I setup Windows Spanned Dynamic Disks to be used in Linux?
 
I setup two hard drives in Windows Vista to be spanned together. I want to be able to access them from my Linux, but I cannot figure out how. So far the first thing I have done is setup my kernel with the following options:

Code:

[*] Multiple devices driver support (RAID and LVM)
<*> Device mapper support
[*] Device mapper debugging support
...
...
[*] Advanced partition selection
[*] Windows Logical Disk Manager (Dynamic Disk) support
[*] Windowx LDM extra logging

I am using kernel 2.6.23.1
I have Device-Mapper 1.02.22 installed

The first volume in my span is /dev/sdb1
The second volume in my span is /dev/sdd1

This is the output from "$ dmesg | grep ldm" loading the disk /dev/sdb:

Code:

sdb:<7>ldm_validate_partition_table(): Found W2K dynamic disk partition type.
ldm_parse_privhead(): PRIVHEAD version 2.12 (Windows Vista).
ldm_parse_privhead(): Parsed PRIVHEAD successfully.
ldm_parse_privhead(): PRIVHEAD version 2.12 (Windows Vista).
ldm_parse_privhead(): Parsed PRIVHEAD successfully.
ldm_parse_privhead(): PRIVHEAD version 2.12 (Windows Vista).
ldm_parse_privhead(): Parsed PRIVHEAD successfully.
ldm_validate_privheads(): Validated PRIVHEADs successfully.
ldm_parse_tocblock(): Cannot find TOCBLOCK, database may be corrupt.
ldm_parse_tocblock(): Parsed TOCBLOCK successfully.
ldm_parse_tocblock(): Parsed TOCBLOCK successfully.
ldm_parse_tocblock(): Cannot find TOCBLOCK, database may be corrupt.
ldm_validate_tocblocks(): Validated 2 TOCBLOCKs successfully.
ldm_parse_vmdb(): Parsed VMDB successfully.
ldm_parse_vblk(): Parsed VBLK 0x1 (type: 0x35) ok.
ldm_parse_vblk(): Parsed VBLK 0x3 (type: 0x51) ok.
ldm_parse_vblk(): Parsed VBLK 0x2 (type: 0x34) ok.
ldm_parse_vblk(): Parsed VBLK 0x5 (type: 0x33) ok.
ldm_parse_vblk(): Parsed VBLK 0x6 (type: 0x34) ok.
ldm_parse_vblk(): Parsed VBLK 0x4 (type: 0x32) ok.
ldm_parse_vblk(): Parsed VBLK 0x7 (type: 0x33) ok.
ldm_partition(): Parsed LDM database successfully.

This is the output from "$ dmesg | grep ldm" loading the disk /dev/sdd:

Code:

sdd:<7>ldm_validate_partition_table(): Found W2K dynamic disk partition type.
ldm_parse_privhead(): PRIVHEAD version 2.12 (Windows Vista).
ldm_parse_privhead(): Parsed PRIVHEAD successfully.
ldm_parse_privhead(): PRIVHEAD version 2.12 (Windows Vista).
ldm_parse_privhead(): Parsed PRIVHEAD successfully.
ldm_parse_privhead(): PRIVHEAD version 2.12 (Windows Vista).
ldm_parse_privhead(): Parsed PRIVHEAD successfully.
ldm_validate_privheads(): Validated PRIVHEADs successfully.
ldm_parse_tocblock(): Cannot find TOCBLOCK, database may be corrupt.
ldm_parse_tocblock(): Parsed TOCBLOCK successfully.
ldm_parse_tocblock(): Parsed TOCBLOCK successfully.
ldm_parse_tocblock(): Cannot find TOCBLOCK, database may be corrupt.
ldm_validate_tocblocks(): Validated 2 TOCBLOCKs successfully.
ldm_parse_vmdb(): Parsed VMDB successfully.
ldm_parse_vblk(): Parsed VBLK 0x1 (type: 0x35) ok.
ldm_parse_vblk(): Parsed VBLK 0x3 (type: 0x51) ok.
ldm_parse_vblk(): Parsed VBLK 0x2 (type: 0x34) ok.
ldm_parse_vblk(): Parsed VBLK 0x5 (type: 0x33) ok.
ldm_parse_vblk(): Parsed VBLK 0x6 (type: 0x34) ok.
ldm_parse_vblk(): Parsed VBLK 0x4 (type: 0x32) ok.
ldm_parse_vblk(): Parsed VBLK 0x7 (type: 0x33) ok.
ldm_partition(): Parsed LDM database successfully.

This seems correct to me so I then try to setup Device-Mapper according to instruction in my kernel/Documentation/filesystems/ntfs.txt

I run "$ fdisk -lu /dev/sdb" which outputs:

Code:

Disk /dev/sdb: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              63  625140399  312570168+  42  SFS

Then run "$ fdisk -lu /dev/sdd" which outputs:

Code:

Disk /dev/sdd: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdd1              63  625140399  312570168+  42  SFS

From this info I setup a table file for dmsetup, the table has the following,

Code:

# Offset into  Size of this    Raid type      Device          Start sector
# volume        device                                          of device
0              625140337      linear          /dev/sdb1      0
625140337      625140337      linear          /dev/sdd1      0

I then run "$ dmsetup create newdevice /etc/newdevice1" which gives the following error:

Code:

device-mapper: reload ioctl failed: Invalid argument
Command failed

When I take a closer look in dmesg I find this

Code:

device-mapper: table: device /dev/sdb1 too small for target
device-mapper: table: 253:0: linear: dm-linear: Device lookup failed
device-mapper: ioctl: error adding target to table

I have no idea what is the problem now, can anyone help me with this please.

hoodedmanwithsythe 11-18-2007 02:12 PM

can you post an
ls of your /dev for me

nLEyETn 11-18-2007 04:08 PM

Sure, thanks for responding, :) I've been messin with this for the past 5 days and I'm getting a little discouraged. Here is the output,

Code:

1-3          fd0u1680  ppp    sg7      tty37@          usbdev1.4_ep87
1-7          fd0u1722  ptmx    sg8      tty38@          usbdev1.7_ep00
2-1          fd0u1743  pts/    shm/      tty39@          usbdev1.7_ep01
2-2          fd0u1760  ram0@  snapshot  tty4@          usbdev1.7_ep82
2-5          fd0u1840  ram1@  snd/      tty40@          usbdev2.1_ep00
2-6          fd0u1920  ram10@  sound/    tty41@          usbdev2.1_ep81
2-6.1        fd0u2880  ram11@  sr0      tty42@          usbdev2.2_ep00
adsp@        fd0u3200  ram12@  stderr@  tty43@          usbdev2.2_ep81
audio@      fd0u3520  ram13@  stdin@    tty44@          usbdev2.3_ep00
audio1@      fd0u3840  ram14@  stdout@  tty45@          usbdev2.3_ep81
blocker      floppy/    ram15@  tts/      tty46@          usbdev2.4_ep00
cdr1@        full      ram2@  tty      tty47@          usbdev2.4_ep01
cdrom1@      fuse      ram3@  tty0@    tty48@          usbdev2.4_ep81
cdrw1@      gpmctl=    ram4@  tty1@    tty49@          usbdev2.5_ep00
cdwriter1@  hpet      ram5@  tty10@    tty5@          usbdev2.5_ep81
cfs0        initctl|  ram6@  tty11@    tty50@          usbdev2.6_ep00
cfs1        input/    ram7@  tty12@    tty51@          usbdev2.6_ep81
cfs2        kmem      ram8@  tty13@    tty52@          usbdev2.6_ep82
cfs3        kmsg      ram9@  tty14@    tty53@          v4l/
cfs4        log=      random  tty15@    tty54@          vbi0@
console      loop/      rd/    tty16@    tty55@          vc/
core@        loop0@    rtc@    tty17@    tty56@          vcc/
cpu/        loop1@    sda    tty18@    tty57@          vcs@
disk/        loop2@    sda1    tty19@    tty58@          vcs1@
dsp@        loop3@    sdb    tty2@    tty59@          vcs2@
dsp1@        loop4@    sdb1    tty20@    tty6@          vcs3@
dvb/        loop5@    sdc    tty21@    tty60@          vcs4@
dvd1@        loop6@    sdc1    tty22@    tty61@          vcs5@
dvdrw1@      loop7@    sdc2    tty23@    tty62@          vcs6@
dvdwriter1@  mapper/    sdc3    tty24@    tty63@          vcs7@
fd@          mcelog    sdd    tty25@    tty7@          vcsa@
fd0@        mem        sdd1    tty26@    tty8@          vcsa1@
fd0d360      misc/      sde    tty27@    tty9@          vcsa2@
fd0h1200    mixer@    sdf    tty28@    ttyS0@          vcsa3@
fd0h1440    mixer1@    sdg    tty29@    ttyS1@          vcsa4@
fd0h1476    mouse@    sdh    tty3@    ttyS2@          vcsa5@
fd0h1494    mptctl    sg0    tty30@    ttyS3@          vcsa6@
fd0h1600    net/      sg1    tty31@    urandom        vcsa7@
fd0h360      null      sg2    tty32@    usb1            video0@
fd0h720      nvidia0    sg3    tty33@    usb2            zero
fd0h880      nvidiactl  sg4    tty34@    usbdev1.1_ep00
fd0u1440    pktcdvd/  sg5    tty35@    usbdev1.1_ep81
fd0u1600    port      sg6    tty36@    usbdev1.4_ep00


hoodedmanwithsythe 11-19-2007 02:48 AM

right now I need a copy of your /etc/fstab

nLEyETn 11-19-2007 12:51 PM

Here you go, just so you know, I used to have /dev/sdb1 as a basic disk, so the line I commented out is like that because of how it was previously setup

Code:

/dev/sdc3        swap            swap        defaults                            0  0
/dev/sdc1        /                xfs        defaults                            1  1
/dev/sdc2        /boot            xfs        defaults                            1  2
/dev/sda1        /mnt/windows    ntfs-3g    defaults,uid=0,gid=10,umask=0002    0  0
#/dev/sdb1        /mnt/media      ntfs-3g    defaults,uid=0,gid=10,umask=0002    0  0
#/dev/cdrom      /mnt/cdrom      auto        noauto,owner,ro                      0  0
/dev/fd0        /mnt/floppy      auto        noauto,owner                        0  0
devpts          /dev/pts        devpts      gid=5,mode=620                      0  0
proc            /proc            proc        defaults                            0  0


hoodedmanwithsythe 11-19-2007 03:07 PM

do you have a /dev/mapper directory? if yes can you post what is in it

nLEyETn 11-19-2007 03:10 PM

Yeah, inside there is just /dev/mapper/control

hoodedmanwithsythe 11-19-2007 03:55 PM

this may take me some time I need to refresh my knowledge of windows first. it may take me a day to get it to work.
once I have it working I will message you with how I did it.

OK?

nLEyETn 11-19-2007 04:56 PM

Cool, thank you very much :), Waiting a little longer won't hurt me any

hoodedmanwithsythe 11-20-2007 10:34 AM

It might take me a bit longer I have just got an assignment from college and I will be spending most of my time on this.
It should only take a few days but Don't be too surprised if it takes me a week.
I will keep you posted with an update on my progress each day.
If this is important I can make it a higher priority if you like but that will cause some strains on my time.
Is that ok?

Tim/Hoodedmanwithsythe

nLEyETn 11-20-2007 02:04 PM

No problem, definitely take care of what you need to before you worry about this. My problem isn't critical, it's just for my own personal pc.

hoodedmanwithsythe 11-21-2007 03:34 AM

question is the dynamic disk partition ntfs?

nLEyETn 11-21-2007 03:36 AM

Yes it is,

hoodedmanwithsythe 11-21-2007 03:42 AM

have you any data on it?

nLEyETn 11-22-2007 12:16 AM

Yeah, I do, more than would fit on just one drive.


All times are GMT -5. The time now is 07:01 AM.