PDA

View Full Version : [Solved] Several little problems


Gurdil
03-19-2008, 09:50 PM
Hello,

I'm new at PC-BSD, this distribution seems to be... great ! but I've a few problems :
(I'm on 64bits with Nvidia GeForce 7300)

PBI's installation doesn't work : when I dubble-click on one PBI, I'm asked for the root password, then PBILauncher appears in the taskbar but disappear a few seconds later and then nothing happend...

I can't mount my second HardDisk : When I go to system:/media and click on this disk, it says "an unexpected error occured".

In Firefox, display resolution is too big, how can I change it ?

Thanks for your answers, and appologize for my english,
Gurdil

DragnLord
03-20-2008, 02:24 AM
I can't mount my second HardDisk : When I go to system:/media and click on this disk, it says "an unexpected error occured".
Have you run fsck on the drive?

Gurdil
03-20-2008, 06:39 AM
Now I installed the 32bit version of PC-BSD and I've no problem with PBI's installation and firefox.

when I run fsck in the shell, the text is longer than the max size of the shell: I can't see the begining.
** /dev/ad1s1a (NO WRITE)
** Last Mounted on /
** Root file system
** Phase 1 - Check Blocks and Sizes
INCORRECT BLOCK COUNT I=6289495 (21792 should be 12512)
CORRECT? no

** Phase 2 - Check Pathnames
UNALLOCATED I=19478191 OWNER=adrien MODE=100644
SIZE=8015 MTIME=Mar 20 17:58 2008
FILE=/usr/home/adrien/.kde/share/config/kdeglobalsDv1ocN.new

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

UNALLOCATED I=19478164 OWNER=adrien MODE=100644
SIZE=0 MTIME=Mar 20 17:58 2008
FILE=/usr/home/adrien/.kde/share/config/kdeglobals.lock

UNEXPECTED SOFT UPDATE INCONSISTENCY

REMOVE? no

** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
UNREF FILE I=2637860 OWNER=adrien MODE=100600
SIZE=23552 MTIME=Mar 20 16:47 2008
CLEAR? no

UNREF FILE I=2637946 OWNER=adrien MODE=100600
SIZE=0 MTIME=Mar 20 16:47 2008
CLEAR? no

UNREF FILE I=2637977 OWNER=adrien MODE=100600
SIZE=0 MTIME=Mar 20 16:47 2008
CLEAR? no

** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? no

SUMMARY INFORMATION BAD
SALVAGE? no

BLK(S) MISSING IN BIT MAPS
SALVAGE? no

304765 files, 1948512 used, 92399611 free (50507 frags, 11543638 blocks, 0.1% fragmentation)



What should I do ?

richardpl
03-20-2008, 11:38 AM
If filesystem of that harddisk is UFS you can fix it with:
# fsck -y /dev/<name of that hard disk>

richardpl
03-20-2008, 11:43 AM
About shell history buffer: what terminal do you use?
On KDE konsole it can be configured in following way: click with right mouse button and select History..., from there you can change number of lines saved in buffer(and also set it to unlimited)

For more advanced users: You can also use command script(1).

Gurdil
03-20-2008, 05:01 PM
I set my konsole history to unlimited an tried again the fsck, but oddly it's now shorter ! I replaced it above.

fsck -y /dev/<name of that hard disk>

pcbsd# fsck -y /dev/ad0s1
fsck: Could not determine filesystem type


Can it be a Hardware problem ?

Galactic Dominator
03-20-2008, 05:15 PM
There are several approaches to solve this problem...one is you can use script to output everything to a file which you can review at your leisure.

http://www.freebsd.org/cgi/man.cgi?quer ... ormat=html (http://www.freebsd.org/cgi/man.cgi?query=script&apropos=0&sektion=0&manpath=FreeBSD+6.3-RELEASE&format=html)

Gurdil
03-20-2008, 05:52 PM
I don't understand how it can help me with my harddisk problem ?
(now my konsole problem is over).

DragnLord
03-20-2008, 08:01 PM
what filesystem is on the hard drive (ntfs, ufs, ext2, ext3)?

Gurdil
03-20-2008, 08:46 PM
ext3

richardpl
03-21-2008, 01:12 AM
You will need
/usr/ports/sysutils/e2fsprogs for that file system.

But you should really fsck ext partitions inside Linux. (So that little penguin dont get flu)

richardpl
03-21-2008, 01:18 AM
But /dev/ad1s1a is not ext2 and it is UFS mounted as /

Also it looks like that /home is under / (the same /dev/ad1s1a) to prove that my asumption is wrong/correct, what is output of df inside PC-BSD

Gurdil
03-21-2008, 07:27 AM
%df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad1s1a 188700886 4249376 169355440 2% /
devfs 1 1 0 100% /dev
linprocfs 4 4 0 100% /compat/linux/proc
/dev/md0 789518 192 726166 0% /tmp

I think that the harddisk which we are talking about is ad0s1

Gurdil
03-21-2008, 08:18 AM
I'm trying to use testdisk but when I try to list files it says "Support for this filesystem hasn't been enable during compilation."

what can I do ?

DragnLord
03-21-2008, 03:01 PM
try this:
pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/sysutils/e2fsprogs-1.40.7.tbz

richardpl
03-22-2008, 12:57 AM
%df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/ad1s1a 188700886 4249376 169355440 2% /
devfs 1 1 0 100% /dev
linprocfs 4 4 0 100% /compat/linux/proc
/dev/md0 789518 192 726166 0% /tmp

I think that the harddisk which we are talking about is ad0s1

This sounds very bad. You should have following partitions/slices/whatever:
/
/dev
/usr
/home
/var
/tmp
/compat/linux/proc

Having /usr,/var and /home under / is very bad idea.

TerryP
03-22-2008, 04:47 AM
PC-BSD defaults to two partitions, a and b, i.e. / and swap.

This is probably the best for people who don't see a point to using the custom partitioning feature.

Gurdil
03-22-2008, 07:59 AM
It's my first installation of PC-BSD. I didn't want to complicate.

DragnLord
03-22-2008, 03:56 PM
There is really nothing "wrong" with having only a single partition.
While this will lead to file fragmentation, it will be slight as FreeBSD is quite good about using contiguous space whenever possible.

richardpl
03-22-2008, 04:23 PM
I disagree with one single partition. (And I dont have time to explain it here ... )
But I could agree with one single partition if it is under gjournal.

TerryP
03-22-2008, 05:55 PM
In my humble opinion, one partition is best for a desktop-default. Like Gurdil said, he/she didn't want to complicate his first isntall.


Unless you've used a system for awhile or know exactly what you need/want it's a bit hard to split more then /home off the / partition.


multiple partitions can have there strong points, then again so can multiple disks and RAID arrays. But not complicating the installer is a stronger one.


The installer can't know what a persons needs are for there disk layout is, but it can make a sensible choice for a default and let people change it to meet there needs. The problem is not assuming everyone has gone with the defaults.....


I remember the very first time I installed FreeBSD, I went with the 'auto' partitioning thing and my / filled up before the install was done and I didn't know yet how to pick better sizes then it did.

Gurdil
03-25-2008, 04:34 PM
At least, how can I recover my data ?

TerryP
03-25-2008, 06:13 PM
If any thing is still on the file systems, mount them, if there is nothing... Well it wouldn't be pretty...


At least, how can I recover my data ?

Backups usually work for me.

Gurdil
03-27-2008, 05:11 PM
Backups usually work for me.

I can't find any package called backups.

I hust want to recover the data on my crashed harddisk

TerryP
03-27-2008, 06:00 PM
backup (http://en.wikipedia.org/wiki/Back_up)


I usually keep 2-3 copies of current on different hard drives, one of previous on a cold storage partition, and a yearly copy via CD-R.

richardpl
03-27-2008, 08:39 PM
At least, how can I recover my data ?
Could you explain how it got lost. And what you need to recover?

Here are ports for general data recovery and filesystem analysis:

sysutils/sleuthkit
sysutils/testdisk
sysutils/foremost
sysutils/magicrescue
sysutils/scan_ffs
sysutils/recoverdm
sysutils/gpart
sysutils/ffs2recov
sysutils/fatback

Gurdil
03-28-2008, 09:09 PM
Finally, my harddisk was not cashed, I had just to make an a2fsck !



su
pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/sysutils/e2fsprogs-1.40.7.tbz
e2fsck /dev/ad0s1