Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I made a partition, set up a filesystem, added it to /etc/fstab, and loaded my data back on, and when I rebooted, /dev/md0 didn't mount.
The catch is, running:
raidstart /dev/md0
mount /dev/md0
mounts my drive just fine! RAID is compiled right into my kernel (not as a module), so I'm hoping someone might have some insight as to why it's not automounting at boot.
--Nate
Last edited by metamechanical; 10-28-2006 at 03:02 PM.
Did you remember to change the partition type to 0xfd using fdisk?
From the Software-RAID-HOWTO
Quote:
7.2 Autodetection
Autodetection allows the RAID devices to be automatically recognized by the kernel at boot-time, right after the ordinary partition detection is done.
This requires several things:
You need autodetection support in the kernel. Check this
You must have created the RAID devices using persistent-superblock
The partition-types of the devices used in the RAID must be set to 0xFD (use fdisk and set the type to "fd")
NOTE: Be sure that your RAID is NOT RUNNING before changing the partition types. Use raidstop /dev/md0 to stop the device.
/sbin/e2fsck: Invalid argument while trying to open /dev/md0
/dev/md0:
The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try runing e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
...
Mounting non-root local filesystems:
EXT3-fs: unable to read superblock
mount: wrong fs type, bad option, bad superblock on /dev/md0,
missing codepage or other error
and then, it's unsurprisingly not there when I log in... but if I run raidstart and mount, it starts up and mounts just fine and dandy.
I might also add that upon running cfdisk again, it shows the type as "free space" - not as linux raid autodetect. what on earth??
Last edited by metamechanical; 10-29-2006 at 12:11 PM.
mkraid implies raidstart. As per the howto, you need to change the partition type when the raid device is not running (see 'NOTE' in my first post). By the way, my version of raidtools doesn't mention an 'R' option to mkraid (mkraid -R).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.