LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 11-17-2007, 12:53 PM   #1
nLEyETn
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Rep: Reputation: 15
Question 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.

Last edited by nLEyETn; 11-17-2007 at 12:59 PM.
 
Old 11-18-2007, 02:12 PM   #2
hoodedmanwithsythe
Member
 
Registered: Apr 2006
Location: West Midlands, UK
Distribution: mandriva, centos, debian
Posts: 91

Rep: Reputation: 15
can you post an
ls of your /dev for me
 
Old 11-18-2007, 04:08 PM   #3
nLEyETn
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Original Poster
Rep: Reputation: 15
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
 
Old 11-19-2007, 02:48 AM   #4
hoodedmanwithsythe
Member
 
Registered: Apr 2006
Location: West Midlands, UK
Distribution: mandriva, centos, debian
Posts: 91

Rep: Reputation: 15
right now I need a copy of your /etc/fstab
 
Old 11-19-2007, 12:51 PM   #5
nLEyETn
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Original Poster
Rep: Reputation: 15
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
 
Old 11-19-2007, 03:07 PM   #6
hoodedmanwithsythe
Member
 
Registered: Apr 2006
Location: West Midlands, UK
Distribution: mandriva, centos, debian
Posts: 91

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

Last edited by hoodedmanwithsythe; 11-19-2007 at 03:10 PM.
 
Old 11-19-2007, 03:10 PM   #7
nLEyETn
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Yeah, inside there is just /dev/mapper/control
 
Old 11-19-2007, 03:55 PM   #8
hoodedmanwithsythe
Member
 
Registered: Apr 2006
Location: West Midlands, UK
Distribution: mandriva, centos, debian
Posts: 91

Rep: Reputation: 15
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?
 
Old 11-19-2007, 04:56 PM   #9
nLEyETn
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Cool, thank you very much , Waiting a little longer won't hurt me any
 
Old 11-20-2007, 10:34 AM   #10
hoodedmanwithsythe
Member
 
Registered: Apr 2006
Location: West Midlands, UK
Distribution: mandriva, centos, debian
Posts: 91

Rep: Reputation: 15
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
 
Old 11-20-2007, 02:04 PM   #11
nLEyETn
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Original Poster
Rep: Reputation: 15
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.
 
Old 11-21-2007, 03:34 AM   #12
hoodedmanwithsythe
Member
 
Registered: Apr 2006
Location: West Midlands, UK
Distribution: mandriva, centos, debian
Posts: 91

Rep: Reputation: 15
question is the dynamic disk partition ntfs?
 
Old 11-21-2007, 03:36 AM   #13
nLEyETn
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Yes it is,
 
Old 11-21-2007, 03:42 AM   #14
hoodedmanwithsythe
Member
 
Registered: Apr 2006
Location: West Midlands, UK
Distribution: mandriva, centos, debian
Posts: 91

Rep: Reputation: 15
have you any data on it?
 
Old 11-22-2007, 12:16 AM   #15
nLEyETn
LQ Newbie
 
Registered: Mar 2007
Posts: 28

Original Poster
Rep: Reputation: 15
Yeah, I do, more than would fit on just one drive.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
windows-style dns/dhcp server setup with dynamic updates fire.is.real Linux - Server 1 08-23-2007 11:00 PM
Accessing Dynamic Spanned Volumes from linux aragon127 Linux - Software 0 10-13-2006 08:00 AM
reducevg on spanned physical disks consty AIX 1 09-30-2006 03:19 AM
Anyway to mount dynamic disks? sureshot324 Linux - Software 1 03-16-2004 05:54 PM
Dynamic disks blas Linux - General 2 04-02-2003 09:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration