Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 27 Aug 2015, 15:17
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
2.11 mounts root fs "/" as read only for type 2 in
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [43 Posts]   Goto page: 1, 2, 3 Next
Author Message
brad_chuck

Joined: 15 Aug 2005
Posts: 284
Location: Appalachian Mountains

PostPosted: Sun 15 Oct 2006, 12:53    Post subject:  2.11 mounts root fs "/" as read only for type 2 in  

The new 2.11 final ( S.M. - xorg drv ) mounts the root fs "/" as read only when doing a "type 2" full hard drive install.

The error I get is line 35 of the xwin script but I think this is the first thing that must wright to the disk.

I have a SATA hard drive that has worked fine in the past and in fact worked in 2.11b.
Back to top
View user's profile Send private message 
pop-pop

Joined: 10 Dec 2005
Posts: 29
Location: US - North Carolina

PostPosted: Sun 15 Oct 2006, 19:21    Post subject:  

ditto symptom on my desktop with SATA drive
from my scribbly notes:
Code:
touch: cannot touch "/tmp/bootcnt.txt": Read-only file system
-sh /tmpbootkernel.log: Read-only file system
This script will run X windows for you...
/usr/X11R7/bin/xwin: line 61 /tmp/videomode: Read-only file system
/usr/X11R7/bin/xwin: line 35: /tmp/kbdextlayout.txt: Read only file system

The last statement repeats forever.
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7450
Location: Perth, Western Australia

PostPosted: Sun 15 Oct 2006, 19:44    Post subject:  

Can you also look in /tmp/bootsysinit.log and /initrd/tmp/bootinit.log.

...ah, no, you probably won't have /tmp/bootsysinit.log as it isn't writable.
Back to top
View user's profile Send private message Visit poster's website 
pop-pop

Joined: 10 Dec 2005
Posts: 29
Location: US - North Carolina

PostPosted: Sun 15 Oct 2006, 20:58    Post subject:  

Quote:
Can you also look in /tmp/bootsysinit.log and /initrd/tmp/bootinit.log.


Looking at my 2.11 HD partition using Puppy 2.10, /tmp is completely empty. The permissions are OK (same as 2.10):
Code:
drwxr-xr-x    2 root     root         4096 Apr 22  2003 tmp
Back to top
View user's profile Send private message 
pop-pop

Joined: 10 Dec 2005
Posts: 29
Location: US - North Carolina

PostPosted: Mon 16 Oct 2006, 19:33    Post subject:  

I just got Puppy 2.11 to boot from my SATA HD with this one-line addition to /etc/rc.d/rc.sysinit:
Code:
#v2.11 redirect all output to a log file...
mount -o remount /                                      #16Oct2006pop-pop
exec 1>/tmp/bootsysinit.log 2>&1


Barry, looks like this code to make the drives rw needs to be executed a little earlier maybe?
Code:
#v2.11 redirect all output to a log file...
mount -o remount /                                       #16Oct2006pop-pop
exec 1>/tmp/bootsysinit.log 2>&1
#exec 2>&1

echo -n "Making the filesystem usable..." >/dev/console
STATUS=0
echo -n "Mounting /proc: ";mount /proc;STATUS=`expr $STATUS + $?` #;check_status $?
if [ "`df | grep "initrd"`" = "" ];then
 echo -n "Remounting '/' read-write... ";mount -o remount,rw /;STATUS=`expr $STATUS + $?` #;check_status $?
fi
echo -n "Mounting devpts: ";mount /dev/pts;STATUS=`expr $STATUS + $?` #;check_status $?
mkdir /sys 2>/dev/null
echo -n "Mounting /sys: ";mount /sys;STATUS=`expr $STATUS + $?` #;check_status $?
#STATUS
Back to top
View user's profile Send private message 
yammosk

Joined: 08 Aug 2006
Posts: 14

PostPosted: Tue 17 Oct 2006, 07:22    Post subject: Same problem  

Did a full hd "normal" on a primary ext2 partition (flagged with boot). Universal Installer installed everything fine, as usual, Grub was also installed without problems.

However, when booting from the hd, I got the exact same error that the previous posters got. I guess this bug is confirmed.
Back to top
View user's profile Send private message 
grndoor

Joined: 17 Oct 2006
Posts: 19

PostPosted: Tue 17 Oct 2006, 17:28    Post subject:  

The drives are already meant to be remounted "rw" through the action of line 71 of "rc.sysinit":

71 echo -n "Remounting '/' read-write... ";mount -o remount,rw /;STATUS=`expr $STATUS + $?`

However, the effect of line 62 of "rc.sysinit" is to prevent this remounting from taking place:

61 #v2.11 redirect all output to a log file...
62 exec 1>/tmp/bootsysinit.log 2>&1
63 #exec 2>&1

Simply commenting out line 62 solves the problem !!!!
Back to top
View user's profile Send private message 
brad_chuck

Joined: 15 Aug 2005
Posts: 284
Location: Appalachian Mountains

PostPosted: Tue 17 Oct 2006, 19:44    Post subject: works for me  

This fix does work. If anyone needs a work around.......
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7450
Location: Perth, Western Australia

PostPosted: Wed 18 Oct 2006, 04:40    Post subject:  

What text editor are you using?
The offending line is number 54. I'm using Geany.

I just did a full h.d. install, and commented out line 54.

I then installed devx_211.sfs as per my own instructions on
http://puppylinux.com/hard-puppy.htm
...but then Puppy would not boot.

So, I have modified the instructions, uploaded the page.

I mounted the devx_211.sfs then copied its contents, using only 'cp -a'.
I have modified that to 'cp -a --remove-destination', which is a forced
copy that will not follow any target file that is a symlink.
For example, if you used 'cp -a -f' and copied file 'dillo' but the destination
already had 'dillo' as a symlink to say 'opera', then opera would get wiped
out. '--remove-destination' simply deletes the target file first, then the
copy occurs without any surprises.

Anyway, I don't know exactly what caused the copy to mess up booting,
but the '--remove-destination' fixed it.
I suspect though, that as busybox has so many symlinks to it, if the
'devx' module tried to overwrite one of those it would have trashed
the busybox executable.
Back to top
View user's profile Send private message Visit poster's website 
WhoDo


Joined: 11 Jul 2006
Posts: 4441
Location: Lake Macquarie NSW Australia

PostPosted: Wed 18 Oct 2006, 04:43    Post subject: Re: Same problem  

yammosk wrote:
Did a full hd "normal" on a primary ext2 partition (flagged with boot). Universal Installer installed everything fine, as usual, Grub was also installed without problems.

However, when booting from the hd, I got the exact same error that the previous posters got. I guess this bug is confirmed.

...And now double-confirmed!

I got problem with a 2.02 to 2.11 Upgrade AND with a clean install of 2.11 to an empty partition.

Cheers
Back to top
View user's profile Send private message 
wombat

Joined: 06 Sep 2005
Posts: 50
Location: Brisbane Australia

PostPosted: Wed 18 Oct 2006, 09:36    Post subject:  

Good Evening Everyone, yes this booting problem after installing P2.11 to your hard drive is easily fixed.
As mentioned line 54 is causing this problem in that location.
After having installed your new Puppy system to your hard drive, taking over the entire partition you selected, reboot your system on the CD once again, and allow a desktop to be achieved running purely on the CD.

Use your Puppy Drive Mount tool in Menu > Utilities to mount the applicable hard drive. Then minimise those windows.

Open the Edit program on the top of the desktop, (Geany) navigate in this program using the File > Open route to the /etc/rc.d/rc.sysinit file and open it.
On the Menubar, select Search > Go to line > 54 then you will have line 54 hilighted. "exec 1>/tmp/bootsysinit.log 2>&1"
Place a # in front of that line, so that it will now be
# exec 1>/tmp/bootsysinit.log 2>&1
Then save and exit that program.
When the system is rebooted your machine should boot and operate normally.
Certainly is magic stuff, certainly is a great system.
Cheers Wombat.
Back to top
View user's profile Send private message 
brad_chuck

Joined: 15 Aug 2005
Posts: 284
Location: Appalachian Mountains

PostPosted: Wed 18 Oct 2006, 19:16    Post subject: Pesky line numbers  

Pesky line numbers...

I did not look at the line number, it is 54 for me too.

Just to be clear...
Back to top
View user's profile Send private message 
nyu


Joined: 14 Mar 2006
Posts: 110
Location: good earth

PostPosted: Wed 18 Oct 2006, 20:11    Post subject:  

Hi ALL,
If I commented out Line 54 and then remastered a CD, will I fix the
problem to install puppy2.11 in a hard disk?
nyu
Back to top
View user's profile Send private message 
RazzBear

Joined: 30 Jun 2006
Posts: 24

PostPosted: Wed 18 Oct 2006, 21:18    Post subject: Different fix for / mounted read only  

Had the same problem as everybody but what worked for me was changing the line in menu.lst for the grub boot loader

from kernel /boot/vmlinuz root=/dev/hda1 ro vga=normal
to kernel /boot/vmlinuz root=/dev/hda1 rw vga=normal
Back to top
View user's profile Send private message 
JimDandy

Joined: 19 Oct 2006
Posts: 3
Location: Philly, PA

PostPosted: Thu 19 Oct 2006, 14:44    Post subject:  

Anyone know why this workaround wouldn't work in my case? Fresh install of 2.11 to my hard drive. Same read-only errors everyone else reports. Commented out that line 54 in rc.sysinit, but I'm still getting the same error. I'll try modifying my menu.lst, but evidently this workaround isn't a total solution to the problem.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [43 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.2255s ][ Queries: 12 (0.0354s) ][ GZIP on ]