Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Sorry, I don't know why fdisk shows an ntfs partition on sdd1 while ntfs-3g doesn't. Unless the partition isn't really an ntfs partition but you just used fdisk to change the type! Maybe the ntfs-3g.org forum could help you; I've asked them a question directly with good results.
its a NTFS partition created before i moved to ubuntu with windows vista.
im pretty sure its not ntfs-3g related, i cant remember where but either dmraid or something else only sees the drive as 1.5TB.
Must have been something else. If you missing the partitions, you could run kpartx -a, but you already have them in /dev/mapper. Did you look at them with gparted?
When you tried to mount the disk, the mount point already existed, right? I mean in
Quote:
mount -t ntfs-3g /dev/mapper/nvidia_afeahbbe1 /media/media
you already have a directory called /media/media?
Last edited by mostlyharmless; 12-30-2009 at 05:39 PM.
I guess I missed it before, but it looks like the wrong RAID partitions are active. You want /dev/mapper/nvidia_afeahbbe and its partitions not /dev/mapper/nvidia_jbcaafci, if I understand your setup correctly. So maybe you need to run dmraid -an then dmraid -a nvidia_afeahbbe.
If that doesn't work you might have to try to erase the other metadata with the -E command; ie.
dmraid -E /dev/mapper/nvidia_jbcaafci, then dmraid -ay, possibly followed by kpartx to activate the partitions. I'd be worried about losing your data with the -E command however, as I'm not sure why you have two nvidia raids with one of them recognized as a linux ext4 partition. I though you said they were both Windows with an expansion of one of them.
I guess I missed it before, but it looks like the wrong RAID partitions are active. You want /dev/mapper/nvidia_afeahbbe and its partitions not /dev/mapper/nvidia_jbcaafci, if I understand your setup correctly. So maybe you need to run dmraid -an then dmraid -a nvidia_afeahbbe.
If that doesn't work you might have to try to erase the other metadata with the -E command; ie.
dmraid -E /dev/mapper/nvidia_jbcaafci, then dmraid -ay, possibly followed by kpartx to activate the partitions. I'd be worried about losing your data with the -E command however, as I'm not sure why you have two nvidia raids with one of them recognized as a linux ext4 partition. I though you said they were both Windows with an expansion of one of them.
I thaught that was odd too
they look like my other drive to me, which is odd because its not even RAID enabled in the bios
but that's the only disk that has ever had a linux partition on it
Code:
root@jacek-desktop:~# dmraid -an
ERROR: dos: partition address past end of RAID device
Code:
root@jacek-desktop:~# dmraid -ay nvidia_afeahbbe
RAID set "nvidia_afeahbbe" was activated
ERROR: dos: partition address past end of RAID device
that's what I was getting right at the start.
top line of mount
Code:
root@jacek-desktop:~# mount
/dev/mapper/nvidia_jbcaafci1 on / type ext4 (rw,errors=remount-ro)
looks like I better not erase that
also as it says it is activated i tried mounting...
Code:
root@jacek-desktop:~# mount -t ntfs /dev/mapper/nvidia_afeahbbe /media/media
NTFS signature is missing.
Failed to mount '/dev/mapper/nvidia_afeahbbe': Invalid argument
The device '/dev/mapper/nvidia_afeahbbe' doesn't seem to have a valid NTFS.
Maybe the wrong device is used? Or the whole disk instead of a
partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around
/dev/mapper/nvidia_jbcaafci1 on / type ext4 (rw,errors=remount-ro)
Well, exactly, but that's the root partition actually on device sdc; I'm not sure why it's a raid/dmraid device since there's on;y one disk and partition involved.
The other one
Quote:
mount -t ntfs /dev/mapper/nvidia_afeahbbe /media/media
isn't going to work because there are no partitions recognized/activated on it. As the error message says, it doesn't want the whole disk. Have you tried kpartx to activate the partitions on it?
ie.
Quote:
kpartx -a /dev/mapper/nvidia_afeahbbe
That works for gpt disks; I'm wondering whether the partitions setup by Windows 7 are also GPT. Was that Win 7 64 bit or 32 bit? (I know nothing about Win 7)
Last edited by mostlyharmless; 01-04-2010 at 11:43 AM.
Reason: clarification
Well, exactly, but that's the root partition actually on device sdc; I'm not sure why it's a raid/dmraid device since there's on;y one disk and partition involved.
The other one
isn't going to work because there are no partitions recognized/activated on it. As the error message says, it doesn't want the whole disk. Have you tried kpartx to activate the partitions on it?
ie.
That works for gpt disks; I'm wondering whether the partitions setup by Windows 7 are also GPT. Was that Win 7 64 bit or 32 bit? (I know nothing about Win 7)
i think we are making progress
after running kpartx it shows up under places but then i clickon it i get this n a popup windows
Code:
Error mounting: mount exited with exit code 13: ntfs_mst_post_read_fixup: magic: 0xc7ddf94c size: 4096 usa_ofs: 25496 usa_count: 7270: Invalid argument
Actual VCN (0x9604840cb8e2c9ac) of index buffer is different from expected VCN (0x3).
Failed to mount '/dev/mapper/nvidia_afeahbbe1': Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it's a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the 'dmraid' documentation
for more details.
Might be that win 7's version of ntfs (ver 6) isn't supported properly by ntfs-3g; maybe that's why you got the chkdsk error. Or maybe it's kpartx. Once again, at this point you might ask the ntfs-3g forum.
Might be that win 7's version of ntfs (ver 6) isn't supported properly by ntfs-3g; maybe that's why you got the chkdsk error. Or maybe it's kpartx. Once again, at this point you might ask the ntfs-3g forum.
I posted a message on their forum, but it wasn't approved
the partition was created using bootit ng, not win 7.
the partition was created using bootit ng, not win 7
Hmm, I know nothing about bootit ng either. However I have read that volumes that are resized have problems being read/mounted by ntfs-3g; I think I saw another thread with someone who resized their volume under windows then couldn't mount it, then undid the resizing and it was ok again. There's a distinction between volumes that are "simple" and those that are not. I'm beginning to think that there's something very peculiar with your bootit ng created structure; perhaps that's why you've got the double Raid structure too.
But it looks like you're getting more competent help from Jean Pierre on the other forum; good luck
Hmm, I know nothing about bootit ng either. However I have read that volumes that are resized have problems being read/mounted by ntfs-3g; I think I saw another thread with someone who resized their volume under windows then couldn't mount it, then undid the resizing and it was ok again. There's a distinction between volumes that are "simple" and those that are not. I'm beginning to think that there's something very peculiar with your bootit ng created structure; perhaps that's why you've got the double Raid structure too.
But it looks like you're getting more competent help from Jean Pierre on the other forum; good luck
yeh, really helpful over there, and here !
seem to have hit a bit of a dead end.
I think I might have a play around with boot it and see what I can change.
Thank you for helping to those that did, even if we didn't get it 100% working defiantly made progress.
I have a few general comments that might be helpful.
Whether you enable a RAID array or disks in the BIOS has no effect on the Linux kernel or DMRAID, since they look at the disks directly to determine partitions or metadata. The BIOS settings affect the ability to boot from a RAID array and the ability to use BIOS utilities to edit the metadata. If you have left over metadata on a hard disk, it's possible that the BIOS won't see that but dmraid might. The BIOS usually only supports one metadata format, and dmraid recognizes many. If you updated the BIOS firmware or moved drives from another computer there could be left over metadata.
I've found that Windows and Linux round partitions to different boundaries when creating the partition table. The "dmraid" software behaves badly when trying to locate Logical partitions inside an Extended partition if they do not appear contiguous (to Linux). In order to work around that problem on my two computers I've had to create the swap partition first in the Extended partition, and then delete and recreate the partition under Linux to make sure it uses all the available space that Linux sees. Otherwise I only see some (or none) of my Logical partitions inside my Extended partition. Whenever I use Windows partitioning utilities they seem to adjust the partition table and I have to again delete and recreate the swap partition under Linux. If you're having a lot of problems with "dmraid" I recommend using only Primary partitions and not using an Extended partition (to start with).
I am successfully using "dmraid" version 1.0.0.rc14 with a Promise FastTrack 374 and Intel ICH9 using RAID 0, RAID 1 and RAID 0 + 1. I have never tried JBOD arrays. Newer versions of "dmraid" would not detect the arrays on either of my two computers so I have stuck with version 1.0.0.rc14.
I had problems trying to use the long device names in "/dev/mapper" so I created some aliases of "/dev/sdrN" (replace N with partition number). I also had to create the root partition device name and the swap partition device name while not running "udev" so that the kernel init scripts could find them. I had to create a custom "initrd" with an edited "init" script to run "dmraid" during boot. Most of those issues probably don't affect you if you're not trying to boot from the RAID array.
You don't necessarily have to use "dmraid". It's only a configuration front end for the standard Linux device mapper driver. You can manually create the correct configuration for the device mapper and completely avoid using "dmraid". Creating the correct configuration is probably not trivial. I've never tried that so I can't really say.
Windows has two kinds of disk partitioning schemes, basic and dynamic. The "ntfs" driver and "ntfs-3g" driver do not support the more complicated "dynamic" disks of Windows. Those are created when you use software RAID in Windows, join disks together to form one volume, or in some cases resize partitions. Before you go too much further, make sure that you have only "basic" disks in the RAID volumes. You will have to look at that from Windows.
Dynamic disks are usually not used just due to having fake hardware hardware RAID, since that's all handled inside the device driver for the fake RAID controller. However it is possible to create a dynamic disk on a fake hardware RAID "hard disk" (volume) since it appears to be just a normal hard disk to Windows.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.