Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
10-28-2009, 07:31 AM
|
#16
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
from the live cd
fschk /dev/sda
or whatever the drive is named in the live cd
In general if you use
CTRL_ALT_F1 (press them at the same time)
it should drop you to a shell, when X doesn't start.
|
|
|
|
10-28-2009, 07:32 AM
|
#17
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
Quote:
|
"...does not describe a correct ext2 filesystem..."
|
What command did you use, and from where?
|
|
|
|
10-28-2009, 07:34 AM
|
#18
|
|
Member
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 126
Original Poster
Rep:
|
"fsck /dev/sda2"
Should it have been fschk? Stupid Google...
~Callum
|
|
|
|
10-28-2009, 07:40 AM
|
#19
|
|
Member
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 126
Original Poster
Rep:
|
The following directories claim to be unreadable:
/bin
/lost+found
/home/test - the user I was switching to (already logged in)
/root - the user I was switching from
/var/gdm
/etc/audisp
/etc/audit
/boot is empty
/sys is empty
/srv is empty
/media is empty (but it is not)
That was from just a quick scan
~Callum
|
|
|
|
10-28-2009, 07:45 AM
|
#20
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
Seems to me the file system is severely damaged.
Perhaps someone else knows a solution for this, aside from reinstalling (reformat)
|
|
|
|
10-28-2009, 07:57 AM
|
#21
|
|
Member
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 126
Original Poster
Rep:
|
That's not good.
I think I will just go for the reinstall. It is possible to backup the list of applications without actually turning the computer on?
I know about backing up the /home directory, so that should be fine.
~Callum
|
|
|
|
10-28-2009, 08:05 AM
|
#22
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
You can run
Code:
dpkg --get-selections > installed.txt
However you need to do this from the original computer.
You should be able to use
to get a commandprompt though
|
|
|
|
10-28-2009, 08:05 AM
|
#23
|
|
Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 935
Rep:
|
You could do a
and safe the output to a file. That would give you a list of installed packages. When the reinstall is done you can just
Code:
for i in $(cat ./save_file) | apt-get install $i
And you should have all the packages back.
|
|
|
|
10-28-2009, 08:19 AM
|
#24
|
|
Member
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 126
Original Poster
Rep:
|
Quote:
|
bash: dpkg: command not found
|
I can't turn the original computer on though.
~Callum
|
|
|
|
10-28-2009, 08:31 AM
|
#25
|
|
Member
Registered: Sep 2004
Location: solihull.w-mids.uk
Distribution: Debian 5.0, CentOs, Solaris 8-10
Posts: 576
Rep:
|
Quote:
Originally Posted by callumacrae
The following directories claim to be unreadable:
/bin
/lost+found
/home/test - the user I was switching to (already logged in)
/root - the user I was switching from
/var/gdm
/etc/audisp
/etc/audit
/boot is empty
/sys is empty
/srv is empty
/media is empty (but it is not)
That was from just a quick scan
~Callum
|
Have you tried booting from a live disk, executing sudo bash in a terminal window to get a root shell, and running ls -ld /bin (and other folders), to check the permissions on the folder itself (rather than the files inside it?
If the permissions on /bin are something like:
Code:
drwxr-x--- 2 root root 4096 Apr 17 2009 /bin
... then no user other than root (and members of group root) will be able to see the files in there, or traverse the directory), whatever the permissions on the files it contains.
If this is the case, run:
Code:
chmod o+rx /bin # then repeat for the other directories
... to restore read and traverse access for "other". These permsissions should be right for /bin - other directories might be different, but on the distro I'm currently using (Centos 5.3), the permissions on the directories in / look like this:
Code:
[rh@xxxx ~]$ ls -ld /*
drwxr-xr-x 2 root root 4096 Apr 17 2009 /bin
drwxr-xr-x 4 root root 1024 Apr 16 2009 /boot
drwxr-xr-x 11 root root 3640 Apr 16 2009 /dev
drwxr-xr-x 85 root root 12288 Oct 27 04:04 /etc
drwxr-xr-x 115 root root 4096 Oct 13 12:19 /home
drwxr-xr-x 10 root root 4096 Apr 17 2009 /lib
drwxr-xr-x 7 root root 4096 May 18 17:04 /lib64
drwx------ 2 root root 16384 Nov 5 2008 /lost+found
drwxr-xr-x 2 root root 4096 Mar 11 2009 /media
drwxr-xr-x 2 root root 4096 Jan 21 2009 /misc
drwxr-xr-x 3 root root 4096 Apr 16 2009 /mnt
drwxr-xr-x 2 root root 4096 Mar 11 2009 /opt
dr-xr-xr-x 453 root root 0 Apr 16 2009 /proc
drwxr-x--- 5 root root 4096 Oct 13 12:19 /root
drwxr-xr-x 2 root root 12288 Apr 17 2009 /sbin
drwxr-xr-x 2 root root 4096 Mar 11 2009 /selinux
drwxr-xr-x 2 root root 4096 Mar 11 2009 /srv
drwxr-xr-x 11 root root 0 Apr 16 2009 /sys
drwxrwxrwt 6 root root 4096 Oct 28 13:28 /tmp
drwxr-xr-x 15 root root 4096 Apr 16 2009 /usr
drwxr-xr-x 21 root root 4096 Apr 16 2009 /var
|
|
|
|
10-28-2009, 08:37 AM
|
#26
|
|
LQ 5k Club
Registered: May 2001
Location: Belgium
Distribution: Slackware 14.0
Posts: 8,464
|
Quote:
|
I can't turn the original computer on though.
|
why not ?
Quote:
|
and now it won't turn on. When I try to turn it on it displays the Fedora loading thing and loads. When it get to the bit where the mouse displays on screen it goes to a black screen and then back to the mouse, and back to black etc.
|
so it boots, no?
did you try to use
CTRL_ALT_F1 to get a command prompt ?
|
|
|
|
10-28-2009, 09:02 AM
|
#27
|
|
Member
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 126
Original Poster
Rep:
|
Ctrl Alt F1 doesn't work, it doesn't boot that far.
I'm currently booting up all my stuff. I think I installed too many virtual machines...
~Callum
|
|
|
|
10-29-2009, 02:11 AM
|
#28
|
|
Guru
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 6.4, Centos 5.9
Posts: 14,956
|
Given you've got Fedora, you can
1. boot from the install DVD; at the initial text prompt type
linux rescue
which boots from the DVD, then attempts to mount the HDD as a non-active disk.
2. Try this http://www.cyberciti.biz/tips/reset-...ermission.html
|
|
|
|
10-29-2009, 06:53 AM
|
#29
|
|
Member
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 126
Original Poster
Rep:
|
Too late, I've started again
Can't get virtualbox working now :@
~Callum
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:57 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|