LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-29-2008, 11:49 AM   #46
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284

Just use "ls" like any other executable, like dmraid. It may not work because it probably is dynamically linked to a library in /lib, in which case you could bring over the library into your initrd. Of course your initrd will begin to get huge if you put everything in it, which is why there are smaller versions of these things, like busybox.

Why the reference to execve()? Well, more of a developer's thing than an endusers thing I think.

Last edited by mostlyharmless; 08-29-2008 at 11:50 AM. Reason: typo
 
Old 08-30-2008, 03:27 PM   #47
pepsimachine15
Member
 
Registered: Jun 2008
Posts: 122

Original Poster
Rep: Reputation: 16
as you suspected, you were right - ls does not work because it uses dynamically linked libraries. so to get it working, it seems as though i have a couple choices:
1. include the libraries that ls needs in my initrd
2. recompile ls with --enable-static-link
3. use something like busybox

if i use busybox, does it contain all of its own libraries, or does it use dynamically linked libraries?
 
Old 09-02-2008, 12:06 PM   #48
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
Busybox has the whole enchilada. Unlike nash it is a full shell and most of the usual commands like ls. Doesn't matter if you use it with Ubuntu, Slackware or PCLinux, because after loading the kernel and doing the initrd/switchroot it'll be gone. I guess this goes back to the idea of using slackware's initrd....
 
Old 09-15-2008, 12:53 PM   #49
pepsimachine15
Member
 
Registered: Jun 2008
Posts: 122

Original Poster
Rep: Reputation: 16
I copied 'busybox' over to my init-tree/bin/ folder, and now it seems i have full access to the commands I need.

a mount command shows the following:
/proc on /proc type proc (rw)
none on /sys type sysfs (rw)
/dev on /dev type tmpfs (rw)

a ls of /dev shows NO mapper folder. this is probably where the problem lies. i ran the mount and ls commands directly after the dmraid -ay command in my init script, so /dev does exist when dmraid runs, it is just not creating a mapper folder with the specified dmraid devices inside.
 
Old 09-15-2008, 01:36 PM   #50
pepsimachine15
Member
 
Registered: Jun 2008
Posts: 122

Original Poster
Rep: Reputation: 16
after a small amount of research, i found that a missing /dev/mapper folder could be caused by not loading the dm-mod.ko module. so i checked my init script, and alas, there was no dm-mod.ko module being loaded. so i copied the module over to my init-tree/lib/, added the insmod /lib/dm-mod.ko to my init script, and rebuilt the initrd.img. on next boot, i did not get a kernel panic, and the system actually booted fully off of the raid 0!! now all i need to do is create a backup of my init-tree and initrd.img, resync my 20g drive over to my raid to get the latest running image of my OS, and i should be good to go!
 
Old 09-16-2008, 11:58 AM   #51
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
success

Congratulations, another RAID success story; now make sure you make a really good backup and document everything you did so that if you have to redo it (system reinstall/bare metal recovery etc.) it won't be reinventing the wheel.
 
Old 09-17-2008, 03:34 PM   #52
pepsimachine15
Member
 
Registered: Jun 2008
Posts: 122

Original Poster
Rep: Reputation: 16
I might go post a writeup on how to do this on the pclinuxos forums, i saw many raid setup threads on there while searching on how to do this and none were answered. and then i'll have two copies of how i did this, just in case i need to do a reinstall.
My system runs super fast now off my raid 0 raptor setup, i'm happy to have it back. Thanks for all your help.
 
Old 09-17-2008, 03:46 PM   #53
mostlyharmless
Senior Member
 
Registered: Jan 2008
Distribution: Arch/Manjaro, might try Slackware again
Posts: 1,851
Blog Entries: 14

Rep: Reputation: 284Reputation: 284Reputation: 284
You're welcome. I was thinking about writing up my simultaneous WinXP/Slackware dual boot RAID 1+0 setup, but there doesn't seem to be much demand on the WinXP side (not that many crazy dual booters who want to use RAID) and there's already great support in the docs on the Slackware side.
 
  


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
Going from single hard drive to Software RAID 1 Zippy1970 Linux - Hardware 8 03-14-2008 09:38 AM
How To Clone Single Drive To Raid 1+0 (copy /dev/sde to /dev/md0)? alfista Linux - Server 2 03-13-2008 04:17 AM
Physically detect a failed hard drive in a software RAID 5 array testnbbuser Linux - Server 3 12-21-2007 05:10 PM
hard drive causing trouble with software raid array machs_fuel Linux - Hardware 2 07-15-2006 02:45 PM
adding a hard drive to an existing software raid array iammisc Linux - Hardware 3 03-01-2006 06:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:22 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