Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Unofficial minimal 2008.0 for x86/amd64 w/reiser4+truecrypt
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
sPHERE911
n00b
n00b


Joined: 23 Mar 2008
Posts: 50

PostPosted: Fri Jul 04, 2008 7:13 pm    Post subject: Reply with quote

I have one more crucial question: I have finished the install and everything, and now my only concern is the /etc/init.d/checkroot.

You mentioned it on the front page of this thread, but I cant seem to find the solution anywhere. How can I edit the file so that I dont get an error everytime I boot? My rootfs is Reiser4.

I have tried the checkroot file you uploaded, but still get the segmentation fault error. I also tried "rc-update del checkroot" but then it started to give me errors about checkroot failing to start, and the result was the same. (Not able to boot, had to type my root password and reboot)

Even disabling checkfs don't work. The errors I get when I disable both checkroot and checkfs is:

*Failed to source /etc/init.d/checkroot
*Failed to start /etc/init.d/checkroot

*One or more critical startup scripts failed to start!
*Please correct this, and reboot...
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Thu Jul 10, 2008 10:12 pm    Post subject: Reply with quote

First of all, I'm sorry for answering this late but I've been quite busy with exams and I didn't receive the usual e-mail saying that the thread had been modified.
Here follows my "edited" checkroot script:
Code:
fabio@gentoo-node1 ~ $ cat /etc/init.d/checkroot
#!/sbin/runscript
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

depend() {
        before *
}

start() {
        local retval=0

#       if [[ ! -f /fastboot && -z ${CDBOOT} ]] \
#       && ! is_net_fs / && ! is_union_fs / ; then
#               if touch -c / >& /dev/null ; then
#                       ebegin "Remounting root filesystem read-only"
#                       mount -n -o remount,ro /
#                       eend $?
#               fi
#
#               if [[ -f /forcefsck ]] || get_bootparam "forcefsck" ; then
#                       ebegin "Checking root filesystem (full fsck forced)"
#                       fsck -C -a -f -D /
#                       # /forcefsck isn't deleted because checkfs needs it.
#                       # it'll be deleted in that script.
#                       retval=$?
#               else
#                       # Obey the fs_passno setting for / (see fstab(5))
#                       # - find the / entry
#                       # - make sure we have 6 fields
#                       # - see if fs_passno is something other than 0
#                       if [[ -n $(awk '($1 ~ /^(\/|UUID|LABEL)/ && $2 == "/" \
#                                       && NF == 6 && $6 != 0) { print }' /etc/fstab) ]]
#                       then
#                               ebegin "Checking root filesystem"
#                               fsck -C -T -a -D /
#                               retval=$?
#                       else
#                               ebegin "Skipping root filesystem check (fstab's passno == 0)"
#                               retval=0
#                       fi
#               fi
#
#               if [[ ${retval} -eq 0 ]] ; then
#                       eend 0
#               elif [[ ${retval} -eq 1 ]] ; then
#                       ewend 1 "Filesystem repaired"
#               elif [[ ${retval} -eq 2 || ${retval} -eq 3 ]] ; then
#                       ewend 1 "Filesystem repaired, but reboot needed!"
#                       if [[ ${RC_FORCE_AUTO} != "yes" ]] ; then
#                               echo -ne "\a"; sleep 1; echo -ne "\a"; sleep 1
#                               echo -ne "\a"; sleep 1; echo -ne "\a"; sleep 1
#                               ewarn "Rebooting in 10 seconds ..."
#                               sleep 10
#                       fi
#                       einfo "Rebooting"
#                       /sbin/reboot -f
#               else
#                       if [[ ${RC_FORCE_AUTO} == "yes" ]] ; then
#                               eend 2 "Rerunning fsck in force mode"
#                               fsck -y -C -T -D /
#                       else
#                               eend 2 "Filesystem couldn't be fixed :("
#                               sulogin ${CONSOLE}
#                       fi
#                       einfo "Unmounting filesystems"
#                       /bin/mount -a -o remount,ro &> /dev/null
#                       einfo "Rebooting"
#                       /sbin/reboot -f
#               fi
#       fi

        # Should we mount root rw ?  the touch check is to see if the / is
        # already mounted rw in which case there's nothing for us to do
        if mount -vf -o remount / 2> /dev/null | \
           awk '{ if ($6 ~ /rw/) exit 0; else exit 1; }' && \
           ! touch -c / >& /dev/null
        then
                ebegin "Remounting root filesystem read/write"
                mount -n -o remount,rw / &> /dev/null
                if [[ $? -ne 0 ]] ; then
                        eend 2 "Root filesystem could not be mounted read/write :("
                        if [[ ${RC_FORCE_AUTO} != "yes" ]] ; then
                                sulogin ${CONSOLE}
                        fi
                else
                        eend 0
                fi
        fi

        if [[ ${BOOT} == "yes" ]] ; then
                local x=
                local y=

                #
                # Create /etc/mtab
                #

                # Don't create mtab if /etc is readonly
                if ! touch /etc/mtab 2> /dev/null ; then
                        ewarn "Skipping /etc/mtab initialization (ro root?)"
                        return 0
                fi

                # Clear the existing mtab
                > /etc/mtab

                # Add the entry for / to mtab
                mount -f /

                # Don't list root more than once
                awk '$2 != "/" {print}' /proc/mounts >> /etc/mtab

                # Now make sure /etc/mtab have additional info (gid, etc) in there
                for x in $(awk '{ print $2 }' /proc/mounts | sort -u) ; do
                        for y in $(awk '{ print $2 }' /etc/fstab) ; do
                                if [[ ${x} == ${y} ]] ; then
                                        mount -f -o remount $x
                                        continue
                                fi
                        done
                done

                # Remove stale backups
                rm -f /etc/mtab~ /etc/mtab~~
        fi
}


# vim:ts=4

Basically it just skips fsck run on the root filesystem and allows the script to remount it read-write (WARNING: *without* checking it first. You may as well mount a corrupted filesystem). Actually I still haven't figured out why, but sometimes the system would hang at startup as you described, but the next bootup everything would go just fine. I think it is a weird baselayout<2 problem. Now I've upgraded to baselayout>2+openrc and I haven't noticed anything like that. I used to solve that problem with the following steps:
1. reboot with livecd
2. fsck.reiser4 --fix -y /dev/sd***
3. reboot, usually happened two things: no error ever after, error at first boot. If error showed up:
4. reboot by pushing the reset button (hard-reset)
It's like a sort of problem with a clean filesystem with reiser4 (?!). Anyway with hard-reset you won't do any harm because until checkroot gets executed the root filesystem is always mounted read-only. You may also try to change your sixth field in /etc/fstab to "0" instead of "1", ensuring that even if the filesystem is marked dirty wouldn't be checked at boot:
Code:
/dev/sda8               /               reiser4         defaults,exec,noatime,relatime                  0 0

I have no other suggestions to make it work... that's all I used to do in such cases. Hope to have been helpful :)
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5720
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Aug 03, 2008 7:04 pm    Post subject: Reply with quote

suggestion:

could you please add p7zip in the following release?

it has support for multiple cpu cores & might speed up creation and extraction of stage4 tarballs to a big degree

many thanks in advance for your input on this
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r2
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Mon Aug 04, 2008 10:25 pm    Post subject: Reply with quote

Consider that done :wink:
I've had a look at p7zip DEPENDs and luckily it's a "standalone" package (no cruft or infinite dependencies). I think I'll build the next release somewhere in between the end of August and the end of September. If anybody has other feature/package requests, just drop a post :wink:
Also, I'm thinking of buying my own server/domain and setup a little and clean html site (allowing anonymous FTP download also). I don't know when that will happen, I'm waiting for OVH to sell dedicated servers in Italy.

Cheers
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
Need4Speed
Guru
Guru


Joined: 06 Jun 2004
Posts: 497

PostPosted: Thu Aug 07, 2008 2:19 am    Post subject: Reply with quote

Thanks again for the livecd! It saved me after I had borked grub by accidentally recompiling it with the "custom-cflags" use flag resulting in a non-working boot sector. :?

It might be nice to have the grub binary on the livecd. Not a big deal, but it makes it easier to fix problems like this without having to chroot into your main install. :)
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5720
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Sun Aug 10, 2008 11:19 am    Post subject: Reply with quote

Neo2 wrote:
Consider that done :wink:
I've had a look at p7zip DEPENDs and luckily it's a "standalone" package (no cruft or infinite dependencies). I think I'll build the next release somewhere in between the end of August and the end of September. If anybody has other feature/package requests, just drop a post :wink:
Also, I'm thinking of buying my own server/domain and setup a little and clean html site (allowing anonymous FTP download also). I don't know when that will happen, I'm waiting for OVH to sell dedicated servers in Italy.

Cheers


thanks ! :)

currently http://neo2.servizi-web.net/ is not reachable / refuses connection so could you please "fix" it ?
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r2
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Sun Aug 10, 2008 4:28 pm    Post subject: Reply with quote

Really sorry about that. I'll try to fix it ASAP.
EDIT: Seems like my friend has been tampering with the firewall, I cannot even login remotely with ssh, and thus I'm unable to perform any action on the server. If the situation isn't fixed by tomorrow I'll try to reach him by phone.
EDIT/2: server is back.

Cheers
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
DarkMind
Guru
Guru


Joined: 18 Dec 2003
Posts: 525
Location: Santiago, Chile

PostPosted: Thu Aug 14, 2008 9:29 pm    Post subject: Reply with quote

no mkfs.ext4 in cd :(

now e2fsprogs1.41 sopport ext4 :D
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5720
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Thu Aug 14, 2008 9:38 pm    Post subject: Reply with quote

DarkMind wrote:
no mkfs.ext4 in cd :(

now e2fsprogs1.41 sopport ext4 :D


hm, sorry - I was under the impression that it did / has ext4-support

@Neo2:

any chance to get ext4-support in the new release ?

many thanks in advance :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r2
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Fri Aug 15, 2008 8:24 am    Post subject: Reply with quote

Well, the 1.41 release seems to be a major one, numerous bugs have been fixed and it is already marked as the "stable" e2fsprogs version. Probably when I'll rebuild the CDs that version will already be in portage and (hopefully) marked stable also there, else I'll unmask it.
Since ext4 is an "upgrade" of ext3, you can already create and mount ext4 filesystem from the liveCD, but you won't be able to check it and/or fix it. To create an ext4 filesystem, simply format in ext3 and mount with "-t ext4". Read dmesg output for possible failures and how to fix them.

Cheers
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
genstorm
Advocate
Advocate


Joined: 05 Apr 2007
Posts: 2470
Location: Austria

PostPosted: Sat Aug 16, 2008 12:37 pm    Post subject: Reply with quote

fyi, 1.41 now keyworded in portage. ;)

For me it's still -t ext4dev though, and mounting the ext3 formatted partition fails. :(

solution:
Code:
mke2fs -t ext4dev /dev/sda7
mount -t ext4dev /dev/sda7 /usr/portage/distfiles

;)

PS: ext3 systems need to be converted first.
_________________
backend.cpp:92:2: warning: #warning TODO - this error message is about as useful as a cooling unit in the arctic
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Mon Aug 18, 2008 7:01 pm    Post subject: Reply with quote

@genstorm: you're right, I was quite imprecise, sorry about that. It was quite some time since I last messed with ext4. I did some tests that time and I posted them, you can find them in pg. 2 of this thread.
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5720
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Sep 12, 2008 3:25 pm    Post subject: Reply with quote

Hi Neo2,

any news on your 3rd release ?

thanks for your hard work :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r2
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Fri Sep 12, 2008 3:33 pm    Post subject: Reply with quote

Hi kernelOfTruth,
currenty I'm studying hard for the last exam (I may miss the year if I miss this one :(). Anyway, this exam is on the 15th, Monday. I'll begin working full-time on the 3rd release after Monday :wink:
Also, I managed to get my personal dedicated server on ovh, and I've already shifted all of the files. The current link is still pointing to my friend's server though and I'll still upload the new release to that server. in the meanwhile I'll setup a web page for the release on my server and prepare everything for the final move.

Cheers
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
kernelOfTruth
Watchman
Watchman


Joined: 20 Dec 2005
Posts: 5720
Location: Vienna, Austria; Germany; hello world :)

PostPosted: Fri Sep 12, 2008 3:42 pm    Post subject: Reply with quote

Neo2 wrote:
Hi kernelOfTruth,
currenty I'm studying hard for the last exam (I may miss the year if I miss this one :(). Anyway, this exam is on the 15th, Monday. I'll begin working full-time on the 3rd release after Monday :wink:
Also, I managed to get my personal dedicated server on ovh, and I've already shifted all of the files. The current link is still pointing to my friend's server though and I'll still upload the new release to that server. in the meanwhile I'll setup a web page for the release on my server and prepare everything for the final move.

Cheers


thanks for this insight,

that's good news with the new server :)

good luck and best wishes on your exam,
I'll keep my fingers (and toes ;) ) crossed for you :)
_________________
https://github.com/kernelOfTruth/ZFS-for-SystemRescueCD/tree/ZFS-for-SysRescCD-4.3.0-r2
2.6.37.2_plus_v1: BFS, CFS,THP,compaction, zcache or TOI
Hardcore Linux user since 2004 :D
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Wed Sep 17, 2008 7:17 pm    Post subject: Reply with quote

Hi all guys, I'm back and.. well, already released the new CDs :P You can find all the changes in the first post. About madwifi/ath5k, ath5k is enough mature to replace madwifi on most of the chipsets available and anyway madwifi-ng doesn't compile against the latest kernel. That's why I decided to drop it.
Grub support has been included and works fine, even the shell. But pay attention: this is a platform-generic version of grub, that is, probably will work in 99% of the cases. Sometimes though, since grub is compiled and so are its stages, it may be possible that in some cases it may boot stage1, 1.5 but not 2.0. If such thing happens, just install grub from the chrooted environment. I recommend to reinstall it anyway once your computer boots fine :)
Next days I'll try to setup my site but I don't know how much time it will take, I'm also looking for an easy-to-remember domain name :P
kernelOfTruth wrote:
good luck and best wishes on your exam,
I'll keep my fingers (and toes ;) ) crossed for you :)

The exam went well ^^ thanks for minding :wink:
Will appreciate comments and critics :D

Cheers
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
Spaulding
Apprentice
Apprentice


Joined: 16 Apr 2006
Posts: 159
Location: /dev/vagina

PostPosted: Sat Oct 11, 2008 1:03 pm    Post subject: Reply with quote

good idea with this stage ;) this is my mirror:
Code:
http://evilroot.eu/install-i686-minimal-2008.0-0915.iso
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Sun Oct 12, 2008 1:19 pm    Post subject: Reply with quote

Thanks for the mirror ^^ I'll put the link as an alternative download when I'll end the site if you don't mind :)

Cheers
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
Spaulding
Apprentice
Apprentice


Joined: 16 Apr 2006
Posts: 159
Location: /dev/vagina

PostPosted: Sun Oct 12, 2008 1:25 pm    Post subject: Reply with quote

no problem, i very like to help good projects, if you release new version of the stage3 please inform me.
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Sun Oct 12, 2008 1:31 pm    Post subject: Reply with quote

Will do that :wink: The time between releases it's ~3months. Maybe it would be worth rebuilding stages more often (like a month or so), I'm thinking about that :P
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
Spaulding
Apprentice
Apprentice


Joined: 16 Apr 2006
Posts: 159
Location: /dev/vagina

PostPosted: Sun Oct 12, 2008 1:40 pm    Post subject: Reply with quote

i have only one "but", why you removed
Code:
-> madwifi-ng / madwifi-ng-tools (ath5k is enough mature and madwifi-ng-0.9.4 doesn't compile against 2.6.26)

on my card WN551G ath5k worked not good(ping 5000ms for AP etc.) (kernel-2.6.26-r1) but on madwifi-ng my card is f**kin fast and working perfectly. Maybe u think for re-add madwifi drivers?
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Sun Oct 12, 2008 1:58 pm    Post subject: Reply with quote

Well, as I explained above, last time I tried to compile madwifi-ng against 2.6.26, it didn't work. Ath5k that was shipped with 2.6.25 kernel was kind of "it may work on one chipset or two", whereas the one shipped with 2.6.26 kernel allowed me to remove madwifi-ng from my system and use just ath5k. I examined the source code of the 2.6.26 one, and discovered that most of the chipsets supported from madwifi-ng were already added (at least ~80% I guess) and considered "mostly working". I thought that most of the people out there using my release would have ended up with a working network card anyway, that's the real reason for which I decided to drop madwifi-ng.
Upon request, I'll work to re-add it.
If you could test/verify that your card works better (or just works) with 2.6.27 kernel (just released) it would be better, 'cause I could avoid re-adding madwifi-ng :) Thanks in advance if you're thinking of such a possibility.

Cheers
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
Spaulding
Apprentice
Apprentice


Joined: 16 Apr 2006
Posts: 159
Location: /dev/vagina

PostPosted: Sun Oct 12, 2008 3:01 pm    Post subject: Reply with quote

if 2.6.27 be in the portage i do test, or maybe you can do choice for user? Simple script for pick up driver: ath5k or madwifi ;) What u think?
Back to top
View user's profile Send private message
Neo2
Apprentice
Apprentice


Joined: 25 Sep 2006
Posts: 224
Location: Italy

PostPosted: Sun Oct 12, 2008 3:14 pm    Post subject: Reply with quote

Well, honestly, I have some rough idea on how to implement bootup scripts in the minimal CD and I don't think there would be too many problems. User can always choose between ath5k and ath_pci with rmmod and modprobe if both are available.
My main concern is only about the work that has to be done to implement madwifi-ng. That's an external package, that is: if it doesn't compile, I have to bump/upgrade both the ebuild and the driver code. That doesn't necessarily mean that patches are ready yet for the driver code. And that would mean mess with the driver code, if necessary. Overall, it's not a really huge work, but it's not even little, and I may run into problems I don't know how to solve (yet). I like to think it'll be an easy thing though :P
_________________
Neo2
Unofficial minimal liveCD for x86/amd64 w/reiser4+truecrypt
Back to top
View user's profile Send private message
Spaulding
Apprentice
Apprentice


Joined: 16 Apr 2006
Posts: 159
Location: /dev/vagina

PostPosted: Sun Oct 12, 2008 3:17 pm    Post subject: Reply with quote

Little TIP:
in zen-sources madwifi drivers is build in kernel ;)
Back to top
View user's profile Send private message
Display posts from previous:   
This topic is locked: you cannot edit posts or make replies.    Gentoo Forums Forum Index Unsupported Software All times are GMT
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 3 of 6

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum