LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux > Linux - General
User Name
Password
Linux - General This 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

Tags used in this thread
Popular LQ Tags , ,

Reply
 
Thread Tools
Old 10-28-2009, 08:31 AM   #16
repo
Senior Member
 
Registered: May 2001
Location: Belgium
Distribution: Debian/GNU Linux
Posts: 4,519
Thanked: 443

[Log in to get rid of this advertisement]
Quote:
How do I run fschk?
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.
linuxdebian repo is online now     Reply With Quote
Old 10-28-2009, 08:32 AM   #17
repo
Senior Member
 
Registered: May 2001
Location: Belgium
Distribution: Debian/GNU Linux
Posts: 4,519
Thanked: 443
Quote:
"...does not describe a correct ext2 filesystem..."
What command did you use, and from where?
linuxdebian repo is online now     Reply With Quote
Old 10-28-2009, 08:34 AM   #18
callumacrae
Member
 
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 110
Thanked: 10

Original Poster
"fsck /dev/sda2"

Should it have been fschk? Stupid Google...

~Callum
linuxubuntu callumacrae is offline     Reply With Quote
Old 10-28-2009, 08:40 AM   #19
callumacrae
Member
 
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 110
Thanked: 10

Original Poster
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
linuxubuntu callumacrae is offline     Reply With Quote
Old 10-28-2009, 08:45 AM   #20
repo
Senior Member
 
Registered: May 2001
Location: Belgium
Distribution: Debian/GNU Linux
Posts: 4,519
Thanked: 443
Seems to me the file system is severely damaged.
Perhaps someone else knows a solution for this, aside from reinstalling (reformat)
linuxdebian repo is online now     Reply With Quote
Old 10-28-2009, 08:57 AM   #21
callumacrae
Member
 
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 110
Thanked: 10

Original Poster
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
linuxubuntu callumacrae is offline     Reply With Quote
Old 10-28-2009, 09:05 AM   #22
repo
Senior Member
 
Registered: May 2001
Location: Belgium
Distribution: Debian/GNU Linux
Posts: 4,519
Thanked: 443
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
Code:
CTRL_ALT_F1 or F2
to get a commandprompt though
linuxdebian repo is online now     Reply With Quote
Old 10-28-2009, 09:05 AM   #23
zhjim
Member
 
Registered: Oct 2004
Distribution: Debian lenny & etch, Red Hat 4.0, (used slackware 11.0)
Posts: 439
Blog Entries: 2
Thanked: 29
You could do a
Code:
dpkg -l
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.
windows_xp_2003 zhjim is offline     Reply With Quote
Old 10-28-2009, 09:19 AM   #24
callumacrae
Member
 
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 110
Thanked: 10

Original Poster
Quote:
bash: dpkg: command not found
I can't turn the original computer on though.

~Callum
linuxubuntu callumacrae is offline     Reply With Quote
Old 10-28-2009, 09:31 AM   #25
Robhogg
Member
 
Registered: Sep 2004
Location: solihull.w-mids.uk
Distribution: Debian 5.0, CentOs
Posts: 497
Thanked: 39
Quote:
Originally Posted by callumacrae View Post
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
windows_xp_2003 Robhogg is offline     Reply With Quote
Old 10-28-2009, 09:37 AM   #26
repo
Senior Member
 
Registered: May 2001
Location: Belgium
Distribution: Debian/GNU Linux
Posts: 4,519
Thanked: 443
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 ?
linuxdebian repo is online now     Reply With Quote
Old 10-28-2009, 10:02 AM   #27
callumacrae
Member
 
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 110
Thanked: 10

Original Poster
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
linuxubuntu callumacrae is offline     Reply With Quote
Old 10-29-2009, 03:11 AM   #28
chrism01
Guru
 
Registered: Aug 2004
Location: Brisbane
Distribution: Centos 5.4
Posts: 7,411
Thanked: 324
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
windows_xp_2003 chrism01 is offline     Reply With Quote
Old 10-29-2009, 07:53 AM   #29
callumacrae
Member
 
Registered: Sep 2009
Distribution: Fedora and Ubuntu
Posts: 110
Thanked: 10

Original Poster
Too late, I've started again

Can't get virtualbox working now :@

~Callum
linuxubuntu callumacrae is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
My CnMBook Manual page 5 shows how to turn off on desk top, but how do I turn on? salmagundi Linux - Newbie 2 04-04-2009 03:46 PM
need to turn off permissions on a used eee pc 701 boyd parkins Linux - Laptop and Netbook 4 10-27-2008 12:10 PM
How to start, stop, turn on, and turn off deamons BuckRogers01 Debian 3 08-16-2005 10:39 AM
How to turn off Xserver in the gui and turn it off in the command line geminiviper Linux - Newbie 8 08-20-2004 09:05 AM
smbmount is messing with mount point permissions Sohni Linux - Networking 1 04-06-2004 11:37 AM


All times are GMT -5. The time now is 11:41 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration