LinuxQuestions.org
Visit Jeremy's Blog.
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 01-12-2005, 02:02 PM   #1
evanw
LQ Newbie
 
Registered: Oct 2004
Location: Risingsun, Ohio
Distribution: Mepis/Morphix/Debian
Posts: 17

Rep: Reputation: 0
Morphix remastering: chroot /dev/null errors


Hello. On a recent project I have started I've tried installing several programs and packages in to a live Morphix CD. For the most part I have had great success with the tools that they provide and have added many programs to the CD, but I have had a few issues installing webmin (using the .gz binary from the webmin website), and installing Spamassassin from the .deb file from the debian package pool. I'll chroot into the working area and attempt to install these programs using dpkg or the install script respectivly, but I'll get errors about permissiosn to the /dev/null device. I've checked that /dev/null is owned by root, and I've checked to make sure I had the proper permissions, but I still get these errors. Any suggestions?
 
Old 01-12-2005, 02:09 PM   #2
evanw
LQ Newbie
 
Registered: Oct 2004
Location: Risingsun, Ohio
Distribution: Mepis/Morphix/Debian
Posts: 17

Original Poster
Rep: Reputation: 0
Nevermind guys, figured this one out.
 
Old 01-12-2005, 02:12 PM   #3
Range77
LQ Newbie
 
Registered: Jan 2005
Location: Toronto, Canada
Distribution: Mandrake 10.1, Windows XP Pro
Posts: 7

Rep: Reputation: 0
Well give us the answer so we have it, i case someone has the same problem

Thanks
 
Old 01-12-2005, 07:36 PM   #4
evanw
LQ Newbie
 
Registered: Oct 2004
Location: Risingsun, Ohio
Distribution: Mepis/Morphix/Debian
Posts: 17

Original Poster
Rep: Reputation: 0
OK. I was remastering from within a mounted partition (inside of /mnt/hda*) for some reason chroot is picky about the way you mount drives and it didn't like the fact that I mounted it using the fstab settings. So if anyone else out there is remastering Morphix and runs into errors with /dev/null, it's because you need to mount the drive with the block device name and with the mount directory, you can not simply use an fstab shortcut.

Here is an example if your source is on hda3

mount /dev/hda3 /mnt/hda3

You can't simply type mount /mnt/hda3 if it's in fstab, because you will get permission errors.
 
Old 12-17-2005, 12:01 PM   #5
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
Unhappy

i am also trying to 'learn' remastering' and have become quite discouragged..

the poster says he is doing fine, .. i'd like to know what docs or progams he is using, or anyone else, to make this process work.

i know i can probably just add my /usr directory to a working copy of morphix or knoppix, or another already published LiveCD.... but i want to do more research, instead of wasting my time.

so my question is, before i continue on in tooo much frustration, is why does it seem necessary to 'chroot' when creating/modding building a distro from scratch or a livecd?

infact i really don't care if it is a 'LiveCD', i care more about taking the deb sys i have, use all day and love, to share it with others, either by letting them install it like a 'regular distro', or have a livecd, with a 'knoppix like' installer for them.

anyway sorry for the ranting, any guidance would be helpfull..

ow btw, i'v looked at 'most' programs and procedures to create your own distro, but either i am not familiar with the terms, or the programs 'just don't work'.

i'v tried: ibuild (both livecd and installed versions), progeny (debs), morphix (not enough docs or hand holding) and simpe-cdd.

it just seems that all the docs/how2s on this subject are 'suppose' to make it simple, but that seems to be the case ONLY if you 'already' understand the terminology and have done this before.

i guess that is the reason there are only 100's, and not 'millions' of distros out there... which is NOT good

Last edited by halvy; 12-17-2005 at 12:07 PM.
 
Old 12-17-2005, 12:37 PM   #6
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
i forgot to add that i'v already learned how to make an image file of my whole system, using Partimage.

this programs works very WELL and has adequit docs also!!

since my distro will be for power users/nerds to start out with, it doesen't need to be tooo user friendly.

but it will still be nice if i can figure out how to make it easier to install this 'image', other than the 'normal' way of using partimage from the users currently running os.

ie. have this image of my os, on a disk and have some sort of program or script install it, after allowing the user choose which drive to install to (ie using cfdisk, etc).

this would be much less complicated, than the 'remastering' issues presently moving across the net.

the scenario would be such:

- ghost (image) your current running os

- put this image on a blank cd/dvd, which has the basics to:

1) use cdisk

2) copy the image (un-ghost) to the users selected partitian.

- thats it!!

any thoughts?

Last edited by halvy; 12-17-2005 at 12:39 PM.
 
Old 01-02-2006, 02:42 PM   #7
halvy
Member
 
Registered: Aug 2005
Location: Anchorage, Alaska (soon EU, hopefully)
Distribution: Anything NOT SystemD (ie. M$) related.
Posts: 918

Rep: Reputation: 42
check out the remarks in this link about your problem.

http://gnubox.dyndns.org:8080/%7Esunil/knoppix.php

i don't know if it works, because i have tried to avoid having to chroot to do my work.

i have been gathering several links along the way in trying to figure out how to just take my desktop (os) that i work with everyday, and make it 'Live' with the ability for everyone to 'install' also.. instead of trying to 'remaster' someone elses work (ie. knoppix).

i may have it down to 'one command'

check this out if anyones interested..

http://packages.debian.org/stable/utils/bootcd.html

the config file is short and sweet, and if there are any problems while the program is running it gives you the opportunity to either continue or correct the problem.

let us know what happens

Last edited by halvy; 01-02-2006 at 02:44 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
What would happen if I where to cat /dev/mem > /dev/null Joey.Dale Linux - General 11 07-26-2009 12:46 PM
Morphix install password errors adrian5800 Linux - General 2 11-09-2005 12:42 PM
/dev/null sachitha Programming 5 08-07-2005 11:25 AM
write errors to log file, instead of /dev/null c_r2005 Linux - General 2 07-30-2005 08:34 AM
mv c:\WINDOWS /dev/null; mount /dev/hda treehead LinuxQuestions.org Member Intro 5 10-19-2004 08:53 AM

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

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