software raid0 ntfs partitions missing dmraid

Bug #156189 reported by Bane
4
Affects Status Importance Assigned to Milestone
dmraid (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I tried to setup a sata raid0 (jmicron on asus a5b) with ntfs formated in WinXP (I need this for dual booting). used dmraid to activate it and here is dmraid -r output:

rudlavibizon@rudlavibizon-linux:~$ sudo dmraid -r
[sudo] password for rudlavibizon:
/dev/sda: jmicron, "jmicron_JRAID ", stripe, ok, 625082368 sectors, data@ 0
/dev/sdb: jmicron, "jmicron_JRAID ", stripe, ok, 625082368 sectors, data@ 0

But when I tried to mount it i got this:

rudlavibizon@rudlavibizon-linux:~$ sudo mount -t ntfs-3g /dev/mapper/jmicron_JRAID\ \ \ \ \ \ \ \ \ \ \ /media/raid
NTFS signature is missing.
Failed to mount '/dev/mapper/jmicron_JRAID ': Invalid argument
The device '/dev/mapper/jmicron_JRAID ' doesn't have a valid NTFS.
Maybe you selected the wrong device? Or the whole disk instead of a
partition (e.g. /dev/hda, not /dev/hda1)? Or the other way around?

I posted <a href=http://forum.ntfs-3g.org/viewtopic.php?p=2486#2486>a topic on ntfs-3g forum </a> and troubleshooted this with their lead developer. We found out that the raid device is recognized in /dev/mapper as
jmicron_JRAID\ \ \ \ \ \ \ \ \ \ \ (note the backslash for empty spaces in filename) but no partitions exist. He suggested that I run kpartx -a on the device and I did, after which the partition showed up and I succesfully mounted it. However, when I rebooted not only this partition was missing but one other (non-raid) disk with two ntfs partitions. I tried mounting manually and got this:

 rudlavibizon@rudlavibizon-linux:~$ sudo mount -a
fuse: mount failed: Device or resource busy
FUSE mount point creation failed
Unmounting /dev/sda1 ()
fuse: mount failed: Device or resource busy
FUSE mount point creation failed
Unmounting /dev/sda5 (Sattamassagana 2

Also I noticed this in /dev/mapper:
rudlavibizon@rudlavibizon-linux:/dev/mapper$ ls
1ATA_WDC_WD2000JS-00MHB0_WD-WMANL1136323
1ATA_WDC_WD2000JS-00MHB0_WD-WMANL1136323p1
1ATA_WDC_WD2000JS-00MHB0_WD-WMANL1136323p5
1ATA_WDC_WD3200AAKS-00SBA0_WD-WMAPZ0139196
1ATA_WDC_WD3200AAKS-00SBA0_WD-WMAPZ0157476
control
jmicron_JRAID

Those wdc_wd2000's p1 and p5 could be mounted and when I tried kpartx -a again on jmicron_JRAID it segfaulted.

Branislav

Revision history for this message
Bane (rudlavibizon) wrote :

It looks like dmraid fails to recognize DOS (ntfs?) partitions as documented in /usr/share/doc/dmraid/KNOWN_BUGS

Revision history for this message
Phillip Susi (psusi) wrote :

No, it recognizes dos partitions just fine. The problem here is that the name of the raid set is not null terminated, which causes the main device name to have all those spaces in it, which causes dmraid to fail to access it to scan for partitions. I believe there is already a patch for this upstream and so it will be merged in hardy heron.

Changed in dmraid:
status: New → Triaged
Revision history for this message
Bane (rudlavibizon) wrote : Re: [Bug 156189] Re: software raid0 ntfs partitions missing dmraid

Is there a way to have a fix in gutsy (eg. compiling dmraid myself) or
waiting for heron is the only option?

On 10/29/07, Phillip Susi <email address hidden> wrote:
>
> No, it recognizes dos partitions just fine. The problem here is that
> the name of the raid set is not null terminated, which causes the main
> device name to have all those spaces in it, which causes dmraid to fail
> to access it to scan for partitions. I believe there is already a patch
> for this upstream and so it will be merged in hardy heron.
>
>
> ** Changed in: dmraid (Ubuntu)
> Status: New => Triaged
>
> --
> software raid0 ntfs partitions missing dmraid
> https://bugs.launchpad.net/bugs/156189
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--

_______________________________________
< Ninety percent of everything is crap. >
---------------------------------------
        \ ^__^
         \ (@@)\_______
            (____)\ )\/\
                ||---------w |
                || ||

Revision history for this message
Bane (rudlavibizon) wrote :

Is there a way to have a fix in gutsy (eg. compiling dmraid myself) or waiting for heron is the only option?

Revision history for this message
hernic (hernic) wrote :

I got the same probleme since the 7.10 upgrade with raid1/ntfs/sata :
- ASUS A7N8X-E Deluxe ACPI BIOS Rev 1013
- Linux rene 2.6.22-14-generic #1 SMP Sun Oct 14 23:05:12 GMT 2007 i686 GNU/Linux

hernic@rene:~$ sudo mount -v -t ntfs -rw -o users,owner,rw,umask=000 /dev/mapper/sil_agabajcbcgfd1 /mnt/raid1

FUSE mount point creation failed
Unmounting /dev/mapper/sil_agabajcbcgfd1 (infosphere)

hernic@rene:~$ sudo fdisk -l

Disk /dev/sda: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0004f22c

   Device Boot Start End Blocks Id System
/dev/sda1 1 30515 245111706 fd Linux raid autodetect

Disk /dev/sdb: 251.0 GB, 251000193024 bytes
255 heads, 63 sectors/track, 30515 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0002cc33

   Device Boot Start End Blocks Id System
/dev/sdb1 1 30515 245111706 fd Linux raid autodetect

hernic@rene:~$ sudo mount
[sudo] password for hernic:
rootfs on / type rootfs (rw)
none on /sys type sysfs (rw,nosuid,nodev,noexec)
none on /proc type proc (rw,nosuid,nodev,noexec)
udev on /dev type tmpfs (rw)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
/dev/disk/by-uuid/f0d9c0ed-9569-4171-a30f-36957e94ea19 on / type ext3 (rw,data=ordered)
/dev/disk/by-uuid/f0d9c0ed-9569-4171-a30f-36957e94ea19 on /dev/.static/dev type ext3 (rw,data=ordered)
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,noexec)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,noexec)
tmpfs on /lib/modules/2.6.22-14-generic/volatile type tmpfs (rw)
tmpfs on /dev/shm type tmpfs (rw)
devpts on /dev/pts type devpts (rw)[hernic@rene:~$ ls -al /mnt/raid1
total 8
drwxr-xr-x 2 root root 4096 Jan 18 2007 .
drwxr-xr-x 10 root root 4096 Jun 13 2007 ..
tmpfs on /var/run type tmpfs (rw,nosuid,nodev,noexec)
tmpfs on /var/lock type tmpfs (rw,nosuid,nodev,noexec)
securityfs on /sys/kernel/security type securityfs (rw)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec)

What is the solution ? please !

Nicolas

Revision history for this message
hernic (hernic) wrote :

for information:

hernic@rene:~$ sudo dmraid -r
/dev/sda: sil, "sil_agabajcbcgfd", mirror, ok, 490232704 sectors, data@ 0
/dev/sdb: sil, "sil_agabajcbcgfd", mirror, ok, 490232704 sectors, data@ 0

thanx

Changed in dmraid:
status: Triaged → Confirmed
Revision history for this message
Phillip Susi (psusi) wrote :

Hernic, your issue is unrelated to this bug report. It looks like you have your disks setup all wrong because you are trying to use dmraid AND mdraid at the same time ( linux raid autodetect partition type ).

Revision history for this message
hernic (hernic) wrote :

Thanx for this information,

mdraid wasn't installed .... strange.

I gonna try to resolve this with your information. Thanx again

On Dec 14, 2007 10:17 PM, Phillip Susi <email address hidden> wrote:

> Hernic, your issue is unrelated to this bug report. It looks like you
> have your disks setup all wrong because you are trying to use dmraid AND
> mdraid at the same time ( linux raid autodetect partition type ).
>
> --
> software raid0 ntfs partitions missing dmraid
> https://bugs.launchpad.net/bugs/156189
> You received this bug notification because you are a direct subscriber
> of the bug.
>

--
-------------------------------------------------------------------
Offrez http://fr.wikipedia.org a vos enfants
... Encyclopedie libre ...
-------------------------------------------------------------------
http://hernic.free.fr
http://setiathome.berkeley.edu/hosts_user.php?userid=8474181
http://s1.bitefight.fr/c.php?uid=108578 (niak)
-------------------------------------------------------------------

Revision history for this message
Phillip Susi (psusi) wrote :

This should have been fixed quite some time ago, if it is still an issue, update this bug.

Changed in dmraid:
status: Confirmed → Fix Released
Revision history for this message
j1p (j1peirce) wrote :

This bug is occurring for me as well with a software raid5 on Ubuntu 9.04.

Revision history for this message
hernic (hernic) wrote : Invitation to connect on LinkedIn

LinkedIn
------------

Bug,

I'd like to add you to my professional network on LinkedIn.

- Nicolas

Nicolas Hernandez
senior it consultant at Logica
Lyon Area, France

Confirm that you know Nicolas Hernandez
https://www.linkedin.com/e/omjixs-grxalc3k-5s/isd/4008925462/aUMg6P8M/

--
(c) 2011, LinkedIn Corporation

Revision history for this message
Jan Olsina (irigi) wrote : Welcoming speech

Dear 156189,

We are looking for employees working remotely.

My name is Reinaldo, I am the personnel manager of a large International company.
Most of the work you can do from home, that is, at a distance.

Salary is $2200-$5300.

If you are interested in this offer, please visit
Our Site

Good day!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.