Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Solved: No Matter What I Try, / Mounts Read Only
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
da_monumental_1
n00b
n00b


Joined: 20 Jan 2005
Posts: 17
Location: Lumberton, NC

PostPosted: Sun Nov 04, 2012 12:57 pm    Post subject: Solved: No Matter What I Try, / Mounts Read Only Reply with quote

I've checked /var/log/portage/elog/ for any new info in regard to booting. I've tried different kernels, OpenRC, kernel boot options, etc. I'm pretty sure it's some obscure script that's causing me problems. Thanks for any help.

Console Bootup

http://pastebin.com/1Nv4dtP2

Dmesg

http://pastebin.com/9ZwB6FXF

Emerge Info

http://pastebin.com/0aWreqWR

/etc/fstab

http://pastebin.com/21C52BNq

grub.conf

http://pastebin.com/xJe8k6cK

3.6.6 pf-sources kernel config (patched w/ AUFS+FBCONDECOR+432HZ)

http://pastebin.com/qpmDjzg1

lspci

http://pastebin.com/UV806XYf

lsusb

http://pastebin.com/72GVnrE1

/etc/portage/make.conf

http://pastebin.com/5t6svGnd

/etc/portage/packages.keywords/master.keywords

http://pastebin.com/Dvm2WnzR

/etc/portage/packages.use/master.use

http://pastebin.com/5ATqKKGH

RC Services

http://pastie.org/5180933

All packages installed

http://pastie.org/5180936


Last edited by da_monumental_1 on Tue Nov 06, 2012 5:05 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6535
Location: Goose Creek SC

PostPosted: Sun Nov 04, 2012 4:48 pm    Post subject: Reply with quote

boot cd, run
Code:
fsck -a /dev/sda3
reboot
if still read-only
Code:
mount -o remount,rw /
to get rw for further trouble shooting

perhaps
Quote:
/dev/sda3 / ext4 rw,noatime,nodiratime,discard 0 1
in fstab
_________________
Defund the FCC.
Back to top
View user's profile Send private message
da_monumental_1
n00b
n00b


Joined: 20 Jan 2005
Posts: 17
Location: Lumberton, NC

PostPosted: Sun Nov 04, 2012 8:46 pm    Post subject: Reply with quote

I tried both suggestions. No dice. It has to be some script in OpenRC.
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6535
Location: Goose Creek SC

PostPosted: Sun Nov 04, 2012 10:11 pm    Post subject: Reply with quote

enter the chroot, then in /etc/rc.conf uncomment
Quote:
#rc_logger="YES"
reboot, review /var/log/rc.log
wgetpaste the rc.log if you want a second set of eyes
your startup screen post looks edited but normal, are you sure / is still read only? What response does a login attempt produce?
Code:
mount -o remount,rw /
does not provide rw access to / ?
_________________
Defund the FCC.
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4121
Location: Houston, Republic of Texas

PostPosted: Sun Nov 04, 2012 10:30 pm    Post subject: Reply with quote

is it just me, or is absolutely nothing being done in runlevel 3?

can you post the output of rc-status ?
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
da_monumental_1
n00b
n00b


Joined: 20 Jan 2005
Posts: 17
Location: Lumberton, NC

PostPosted: Sun Nov 04, 2012 11:48 pm    Post subject: Reply with quote

DONAHUE wrote:
enter the chroot, then in /etc/rc.conf uncomment
Quote:
#rc_logger="YES"
reboot, review /var/log/rc.log
wgetpaste the rc.log if you want a second set of eyes
your startup screen post looks edited but normal, are you sure / is still read only? What response does a login attempt produce?


Is that going to work if the filesystem is mounted ro? :D

DONAHUE wrote:
Code:
mount -o remount,rw /
does not provide rw access to / ?


I already have tried that and can rw successfully. That's the first thing I tried on first boot. Years ago, I ran into a similar problem before where / would mount ro and could only be fixed with a "rc-update -u" and reboot.

cach0rr0 wrote:
is it just me, or is absolutely nothing being done in runlevel 3?

can you post the output of rc-status ?


Second from last pastebin in the first post.
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4121
Location: Houston, Republic of Texas

PostPosted: Sun Nov 04, 2012 11:56 pm    Post subject: Reply with quote

da_monumental_1 wrote:

Second from last pastebin in the first post.


saw that, but it looks like the output of rc-update show - am i wrong?

rc-status should show something like

Code:

Runlevel: default
 dmcrypt                              [  started  ]
 dbus                              [  started  ]
 net.wlan0                              [  started  ]
 syslog-ng                              [  started  ]
 ntpd                              [  started  ]
 xdm                              [  started  ]
 alsasound                              [  started  ]
 sshd                              [  stopped  ]
 vixie-cron                              [  started  ]
 local                              [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                              [  started  ]
Dynamic Runlevel: manual


which tells you not simply what's in what runlevel, but what's actually started/running.

I *am* using 0.10.5 here, but i cant imagine output changed between versions.
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash


Last edited by cach0rr0 on Sun Nov 04, 2012 11:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6535
Location: Goose Creek SC

PostPosted: Sun Nov 04, 2012 11:57 pm    Post subject: Reply with quote

if remounting rw works there is no need to boot a cd and enter the choot. so, reboot and
Code:
mount -o remount,rw /

then in /etc/rc.conf uncomment
Quote:
#rc_logger="YES"

reboot, review /var/log/rc.log
Code:
wgetpaste  /var/log/rc.log
rc-status | wgetpaste
post the url's returned
_________________
Defund the FCC.
Back to top
View user's profile Send private message
da_monumental_1
n00b
n00b


Joined: 20 Jan 2005
Posts: 17
Location: Lumberton, NC

PostPosted: Mon Nov 05, 2012 2:09 am    Post subject: Reply with quote

cach0rr0 wrote:


saw that, but it looks like the output of rc-update show - am i wrong?

rc-status should show something like

Code:

Runlevel: default
 dmcrypt                              [  started  ]
 dbus                              [  started  ]
 net.wlan0                              [  started  ]
 syslog-ng                              [  started  ]
 ntpd                              [  started  ]
 xdm                              [  started  ]
 alsasound                              [  started  ]
 sshd                              [  stopped  ]
 vixie-cron                              [  started  ]
 local                              [  started  ]
Dynamic Runlevel: hotplugged
Dynamic Runlevel: needed
 xdm-setup                              [  started  ]
Dynamic Runlevel: manual


which tells you not simply what's in what runlevel, but what's actually started/running.

I *am* using 0.10.5 here, but i cant imagine output changed between versions.


Sorry, I misunderstood you.

http://bpaste.net/show/55900/

DONAHUE wrote:
if remounting rw works there is no need to boot a cd and enter the choot. so, reboot and
Code:
mount -o remount,rw /

then in /etc/rc.conf uncomment
Quote:
#rc_logger="YES"

reboot, review /var/log/rc.log
Code:
wgetpaste  /var/log/rc.log
rc-status | wgetpaste
post the url's returned


http://bpaste.net/show/55899/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6535
Location: Goose Creek SC

PostPosted: Mon Nov 05, 2012 2:20 am    Post subject: Reply with quote

Code:
rc | wgetpaste
rc-status | wgetpaste
emerge -s openrc baselayout | wgetpaste
wgetpaste /etc/inittab
post url's

http://bpaste.net/show/55905/ shows my rc.log
_________________
Defund the FCC.
Back to top
View user's profile Send private message
da_monumental_1
n00b
n00b


Joined: 20 Jan 2005
Posts: 17
Location: Lumberton, NC

PostPosted: Mon Nov 05, 2012 2:33 am    Post subject: Reply with quote

rc -> blank file
rc-status -> http://bpaste.net/show/55907/
emerge -s openrc baselayout -> http://bpaste.net/show/55908/
/etc/inittab -> http://bpaste.net/show/55909/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6535
Location: Goose Creek SC

PostPosted: Mon Nov 05, 2012 4:08 am    Post subject: Reply with quote

does
Code:
ls -al /sbin/rc
ls -al /etc/runlevels/sysinit
ls -al /etc/runlevels/boot
ls -al /etc/runlevels/default
produce lists resembling, particularly the permissions:
Quote:
ls -al /sbin/rc
-rwxr-xr-x 1 root root 123088 Oct 22 15:18 /sbin/rc

ls -al /etc/runlevels/sysinit
total 0
drwxr-xr-x 2 root root 184 Oct 19 20:40 .
drwxr-xr-x 8 root root 200 May 6 2011 ..
lrwxrwxrwx 1 root root 17 May 6 2011 devfs -> /etc/init.d/devfs
lrwxrwxrwx 1 root root 17 May 6 2011 dmesg -> /etc/init.d/dmesg
lrwxrwxrwx 1 root root 18 Oct 19 20:40 sysfs -> //etc/init.d/sysfs
lrwxrwxrwx 1 root root 30 Oct 19 20:40 tmpfilesd.sysinit -> //etc/init.d/tmpfilesd.sysinit
lrwxrwxrwx 1 root root 16 May 6 2011 udev -> /etc/init.d/udev

ls -al /etc/runlevels/boot
total 1
drwxr-xr-x 2 root root 632 Oct 19 20:40 .
drwxr-xr-x 8 root root 200 May 6 2011 ..
lrwxrwxrwx 1 root root 21 Aug 20 2010 alsasound -> /etc/init.d/alsasound
lrwxrwxrwx 1 root root 20 May 6 2011 bootmisc -> /etc/init.d/bootmisc
lrwxrwxrwx 1 root root 23 Jan 6 2009 consolefont -> /etc/init.d/consolefont
lrwxrwxrwx 1 root root 25 May 6 2011 device-mapper -> /etc/init.d/device-mapper
lrwxrwxrwx 1 root root 16 May 6 2011 fsck -> /etc/init.d/fsck
lrwxrwxrwx 1 root root 20 May 6 2011 hostname -> /etc/init.d/hostname
lrwxrwxrwx 1 root root 19 May 6 2011 hwclock -> /etc/init.d/hwclock
lrwxrwxrwx 1 root root 19 May 6 2011 keymaps -> /etc/init.d/keymaps
lrwxrwxrwx 1 root root 22 May 6 2011 localmount -> /etc/init.d/localmount
lrwxrwxrwx 1 root root 15 May 6 2011 lvm -> /etc/init.d/lvm
lrwxrwxrwx 1 root root 19 May 6 2011 modules -> /etc/init.d/modules
lrwxrwxrwx 1 root root 16 May 6 2011 mtab -> /etc/init.d/mtab
lrwxrwxrwx 1 root root 18 May 6 2011 net.lo -> /etc/init.d/net.lo
lrwxrwxrwx 1 root root 18 May 6 2011 procfs -> /etc/init.d/procfs
lrwxrwxrwx 1 root root 16 May 6 2011 root -> /etc/init.d/root
lrwxrwxrwx 1 root root 16 May 6 2011 swap -> /etc/init.d/swap
lrwxrwxrwx 1 root root 21 Mar 3 2012 swapfiles -> /etc/init.d/swapfiles
lrwxrwxrwx 1 root root 18 May 6 2011 sysctl -> /etc/init.d/sysctl
lrwxrwxrwx 1 root root 24 May 6 2011 termencoding -> /etc/init.d/termencoding
lrwxrwxrwx 1 root root 27 Oct 19 20:40 tmpfilesd.boot -> //etc/init.d/tmpfilesd.boot
lrwxrwxrwx 1 root root 19 May 6 2011 urandom -> /etc/init.d/urandom
lrwxrwxrwx 1 root root 16 Oct 6 22:34 wicd -> /etc/init.d/wicd

ls -al /etc/runlevels/default
total 1
drwxr-xr-x 2 root root 648 Oct 17 17:40 .
drwxr-xr-x 8 root root 200 May 6 2011 ..
lrwxrwxrwx 1 root root 21 Jun 10 2009 alsasound -> /etc/init.d/alsasound
lrwxrwxrwx 1 root root 19 Jan 7 2009 apache2 -> /etc/init.d/apache2
lrwxrwxrwx 1 root root 17 Apr 10 2009 clamd -> /etc/init.d/clamd
lrwxrwxrwx 1 root root 22 Jul 27 2010 consolekit -> /etc/init.d/consolekit
lrwxrwxrwx 1 root root 17 Jun 21 2010 cupsd -> /etc/init.d/cupsd
lrwxrwxrwx 1 root root 16 Jan 7 2009 dbus -> /etc/init.d/dbus
lrwxrwxrwx 1 root root 15 Jan 7 2009 gpm -> /etc/init.d/gpm
lrwxrwxrwx 1 root root 16 Jan 7 2009 hald -> /etc/init.d/hald
lrwxrwxrwx 1 root root 22 Sep 14 2011 lm_sensors -> /etc/init.d/lm_sensors
lrwxrwxrwx 1 root root 17 May 6 2011 local -> /etc/init.d/local
lrwxrwxrwx 1 root root 19 Jan 7 2009 metalog -> /etc/init.d/metalog
lrwxrwxrwx 1 root root 17 Jan 7 2009 mysql -> /etc/init.d/mysql
lrwxrwxrwx 1 root root 17 Mar 17 2011 named -> /etc/init.d/named
lrwxrwxrwx 1 root root 20 Jul 15 2011 net.eth0 -> /etc/init.d/net.eth0
lrwxrwxrwx 1 root root 20 May 6 2011 netmount -> /etc/init.d/netmount
lrwxrwxrwx 1 root root 22 Jan 7 2009 ntp-client -> /etc/init.d/ntp-client
lrwxrwxrwx 1 root root 16 Jan 7 2009 ntpd -> /etc/init.d/ntpd
lrwxrwxrwx 1 root root 18 May 13 2011 rsyncd -> /etc/init.d/rsyncd
lrwxrwxrwx 1 root root 20 Mar 22 2011 tpdaemon -> /etc/init.d/tpdaemon
lrwxrwxrwx 1 root root 26 Mar 9 2010 udev-postmount -> /etc/init.d/udev-postmount
lrwxrwxrwx 1 root root 22 Jan 7 2009 vixie-cron -> /etc/init.d/vixie-cron
lrwxrwxrwx 1 root root 16 Oct 17 17:40 wicd -> /etc/init.d/wicd
lrwxrwxrwx 1 root root 18 Aug 4 2009 xinetd -> /etc/init.d/xinetd


Code:
 ls -al /etc/init.d
should produce permissions like -rwxr-xr-x 1 root root for the files therein, the list of files should include the entries in the run levels
_________________
Defund the FCC.
Back to top
View user's profile Send private message
da_monumental_1
n00b
n00b


Joined: 20 Jan 2005
Posts: 17
Location: Lumberton, NC

PostPosted: Mon Nov 05, 2012 4:30 am    Post subject: Reply with quote

/sbin/rc -> http://bpaste.net/show/55916/
/etc/runlevels/sysinit -> http://bpaste.net/show/55917/
/etc/runlevels/boot -> http://bpaste.net/show/55918/
/etc/runlevels/default -> http://bpaste.net/show/55919/
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6535
Location: Goose Creek SC

PostPosted: Mon Nov 05, 2012 4:43 am    Post subject: Reply with quote

getting very strange; try
Code:
/etc/init.d/syslog-ng restart | wgetpaste
/etc/init.d/vixie-cron restart | wgetpaste


If grub.conf actually is:
Quote:
default 0
timeout 10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title Gentoo Linux (3.6.6-pf-amd-radeon)
root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-3.6.6-pf-amd-radeon rootfstype=ext4
initrd /boot/initramfs-genkernel-x86_64-3.6.6-pf-amd-radeon

title Windows 7 Professional
rootnoverify (hd0,0)
makeactive
chainloader +1
It should be:
Quote:
default 0
timeout 10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title Gentoo Linux (3.6.6-pf-amd-radeon)
root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-3.6.6-pf-amd-radeon root=/dev/ram0 real_root=/dev/sda3 rootfstype=ext4
initrd /boot/initramfs-genkernel-x86_64-3.6.6-pf-amd-radeon

title Windows 7 Professional
rootnoverify (hd0,0)
makeactive
chainloader +1
In order to escape the initramfs and load the installed system.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
da_monumental_1
n00b
n00b


Joined: 20 Jan 2005
Posts: 17
Location: Lumberton, NC

PostPosted: Mon Nov 05, 2012 5:00 am    Post subject: Reply with quote

I've tried that already. Here's the message.

* warning: "doesn't matter what service" is already starting

I tried those kernel boot options as well. real_root=/dev/sda3 is hard coded by the --real-root option in genkernel.


Last edited by da_monumental_1 on Mon Nov 05, 2012 5:05 am; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6535
Location: Goose Creek SC

PostPosted: Mon Nov 05, 2012 5:02 am    Post subject: Reply with quote

see my last post edited to discuss grub.conf.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
cach0rr0
Moderator
Moderator


Joined: 13 Nov 2008
Posts: 4121
Location: Houston, Republic of Texas

PostPosted: Tue Nov 06, 2012 4:37 am    Post subject: Reply with quote

I'm curious if, as a troubleshooting step, you couldn't add something like this to grub.conf on the kernel command line

Code:

init=/bin/sh


which should drop you to a shell. Remount / as rw, then fire off /sbin/init and see if you get anything interesting

I'm ASSuming revdep-rebuild -ip and dispatch-conf yield nothing of interest?

I'd also posit crafting your own kernel by hand, and rolling your own initramfs, as a potential troubleshooting step down the road.

crackpot idea - perhaps the first service in sysinit is epic failing and thusly preventing anything else from firing up? If so, that'd pretty well be something to the effect of, "udev is buggered, re-emerge"
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 6535
Location: Goose Creek SC

PostPosted: Tue Nov 06, 2012 5:15 am    Post subject: Reply with quote

grub.conf should be:
Quote:
default 0
timeout 10
splashimage=(hd0,1)/boot/grub/splash.xpm.gz

title Gentoo Linux (3.6.6-pf-amd-radeon)
root (hd0,1)
kernel /boot/kernel-genkernel-x86_64-3.6.6-pf-amd-radeon root=/dev/ram0 real_root=/dev/sda3 rootfstype=ext4
initrd /boot/initramfs-genkernel-x86_64-3.6.6-pf-amd-radeon

title Windows 7 Professional
rootnoverify (hd0,0)
makeactive
chainloader +1
In order to escape the initramfs and load the installed system.
_________________
Defund the FCC.
Back to top
View user's profile Send private message
da_monumental_1
n00b
n00b


Joined: 20 Jan 2005
Posts: 17
Location: Lumberton, NC

PostPosted: Tue Nov 06, 2012 5:23 am    Post subject: Reply with quote

Add this to the long list of dumb actions I've committed in my life.

In trying to do a quick install of Gentoo, some action I performed resulted in helper programs (e2fsprogs/busybox/LVM,etc.) for genkernel not being built properly. I discovered this by copying a working kernel from another laptop to the one having problems. The old kernel booted root read/write like it's supposed to. Intuition told me to find out a way to rebuild the genkernel cache for those programs. I couldn't find anything in Google, so I did a search for genkernel in /var. I saw it under the /var/cache folder. I moved /var/cache/genkernel to a safe place, but in trying to run genkernel, it complained of missing source files. I reemerged busybox and then ran genkernel. Genkernel built all of the helper prorams and presented me a minute or two later with a pristine kernel that worked. :D

So I want to give a big thank you to DONAHUE and cach0rr0 for being so patient.

P.S. It's best to be well rested or caffeinated to the high heavens before attempting a Gentoo install @ 3AM.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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