Jump to content


Restore xorg.conf file using Knoppix


5 replies to this topic

#1 solenostomus

    Senior Member

  • Members
  • 101 posts

Posted 20 April 2008 - 09:11 PM

Hi there, I just tried to get my kiddshop touchscreen to work using the instructions in http://forum.eeeuser...ic.php?id=18677 And now my EEE PC doesn't boot anymore now.

I want to avoid the F9 reset at all cost (I've customised my desktop too much) and anyway - I simply need to restore one file.

Using an external CD-Rom drive I booted up the EEE into Knoppix Live-CD and I can see the file in question as
/media/hdc2/etc/X11/xorg.conf

For some reason, the /media/hdc2 directory is mounted read-only and it doesn't let me change the file.

I tried to re-mount that directory using
sudo mkdir /hd
sudo mount -t ext2 /media/hdc2 /hd
mount: /media/hdc2 is not a block device
So how do I mount the internal harddisk as read-write from within Knoppix, so I can restore the xorg.conf file?

Thanks a lot!

#2 gfoot

    Senior Member

  • Members
  • 368 posts
  • LocationBrighton, UK

Posted 20 April 2008 - 09:37 PM

/media/hdc2 is probably a mount point, not a device. Use /dev/hdc2 instead.

If it's already mounted, use:

mount -o remount,rw /dev/hdc2
That should just remount it read-write on whatever mount point it's already mounted on.

#3 solenostomus

    Senior Member

  • Members
  • 101 posts

Posted 20 April 2008 - 10:00 PM

Thanks gfoot,

I guess that command line would have worked on a normal system. By playing around a little more I found that Knoppix does things differently.
The desktop icon I used to access the internal harddisk runs something that mounts the filesystem (don't know how) and opens a filemanager to show it. Then the icon changes to include a little arrow (meaning presumably that is has been mounted).
The solution was to click that icon with the right button - you get an option to change the filesystem to read/write mode - again I don't know what Knoppix does in the background, but it worked.

That way I managed to fix the file and now my EEE PC boots again. I am still no closer to having a touchscreen driver under Xandros, but at least the rest works fine.

#4 gfoot

    Senior Member

  • Members
  • 368 posts
  • LocationBrighton, UK

Posted 21 April 2008 - 09:09 AM

If the filesystem is already mounted somewhere else, you need to first mount it on your new mount point with the same options as the existing mount, and then do a remount (as in my post) to change the options.

Regarding the touchscreen, did you try my tkusb module? It sounds like most of the controller cards are basically the same, and I successfully used tkusb to get an unmodified fidodido controller to work on Xandros. The information and download are here, though I was rather brief: http://www.glost.ecl...foot/eee/tkusb/

Also, when your machine failed to boot, it should have dumped some errors in /var/log/X11 or something like that, explaining why. e.g. failed to load touchscreen driver. :) It can be useful for working out exactly what was wrong with your configuration. That said, I didn't have much trouble with this - I think it complains loudly if the module uses a different libc version, which came up when I tried to use evtouch, and X fails to start if it has no core pointer device active, but other than that I generally found that broken touchscreen config sections just meant the touchscreen didn't work.

#5 solenostomus

    Senior Member

  • Members
  • 101 posts

Posted 21 April 2008 - 09:18 AM

Quote

Regarding the touchscreen, did you try my tkusb module?
I've seen the post about your module and that will be the next thing I try. If i run into trouble I will post it to the appropriate thread.

Thanks a lot!

#6 solenostomus

    Senior Member

  • Members
  • 101 posts

Posted 21 April 2008 - 06:27 PM

I have since found out why my system wouldn't start with my edited xorg.conf file.
I copied the additional sections out of firefox from this thread http://forum.eeeuser...ic.php?id=18677

For some reason, upon pasting it into kwrite the quote marks changed from simple straight quotes into typographical quotes (slanted).

So just for the benefit of people doing the same thing - make sure you replace all the quotes with those simple ones (type over them on your keyboard).





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users