Autor Thema: probleme mit dual boot (?)  (Gelesen 2110 mal)

claus

  • Gast
probleme mit dual boot (?)
« am: 14. April 2004, 14:49:39 »
Hallo,

meine SS20 verfügt inzwischen ueber zwei festplatten:
auf sd@3,0 befindet sich netbsd, das ohne probleme funktioniert hat.

jetzt habe ich mir eine zweite festplatte zugelegt, auf welcher ich Solaris installiert habe. Nach der Installation hat alles noch bestens funktioniert. Allerdings hatte ich boot-device auf die falsche festplatte zeigen lassen, von daher ist gestern halt dann wieder Netbsd gestartet worden ... gut, ist ja kein problem, das zu aendern. Heute jetzt, werfe ich die Kiste an und lese da folgendes:


The / file system (/dev/rdsk/c0t1d0s0) is being checked.
/dev/rdsk/c0t1d0s0: BAD SUPER BLOCK: BAD VALUES IN SUPER BLOCK
/dev/rdsk/c0t1d0s0: USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION;
/dev/rdsk/c0t1d0s0: eg. fsck [-F ufs] -o b=# [special ...]
/dev/rdsk/c0t1d0s0: where # is the alternate super block. SEE fsck_ufs(1M).

/dev/rdsk/c0t1d0s0: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.

WARNING - Unable to repair the / filesystem. Run fsck
manually (fsck -F ufs /dev/rdsk/c0t1d0s0). Exit the shell when
done to continue the boot process.


Type control-d to proceed with normal startup,
(or give root password for system maintenance):
single-user privilege assigned to /dev/console.
Entering System Maintenance Mode

Apr 14 10:26:46 su: 'su root' succeeded for root on /dev/console
Sun Microsystems Inc.   SunOS 5.8       Generic February 2000
# fsck -F ufs /dev/rdsk/c0t1d0s0
** /dev/rdsk/c0t1d0s0
BAD SUPER BLOCK: BAD VALUES IN SUPER BLOCK
USE AN ALTERNATE SUPER-BLOCK TO SUPPLY NEEDED INFORMATION;
eg. fsck [-F ufs] -o b=# [special ...]
where # is the alternate super block. SEE fsck_ufs(1M).

Habe dazu was bei
http://docs.sun.com/db/doc/806-1075/6jacsnimh?a=view
gefunden.

partition> print
Current partition table (original):
Total disk cylinders available: 3880 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
 0       root    wm     486 - 2030        1.59GB    (1545/0/0) 3337200
 1       swap    wu       0 -  485      512.58MB    (486/0/0)  1049760
 2     backup    wm       0 - 3879        4.00GB    (3880/0/0) 8380800
 3 unassigned    wm       0               0         (0/0/0)          0
 4 unassigned    wm       0               0         (0/0/0)          0
 5 unassigned    wm       0               0         (0/0/0)          0
 6 unassigned    wm       0               0         (0/0/0)          0
 7       home    wm    2031 - 3879        1.90GB    (1849/0/0) 3993840

partition>

Ich sehe das Problem .... backup und home.

Bin dann der docs.sun.com Anleitung weiter gefolgt:

# newfs -N /dev/rdsk/c0t1d0s0
/dev/rdsk/c0t1d0s0:     3337200 sectors in 1545 cylinders of 16 tracks, 135 sect
ors
       1629.5MB in 49 cyl groups (32 c/g, 33.75MB/g, 8384 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 69296, 138560, 207824, 277088, 346352, 415616, 484880, 554144, 623408,
692672, 761936, 831200, 900464, 969728, 1038992, 1105952, 1175216, 1244480,
1313744, 1383008, 1452272, 1521536, 1590800, 1660064, 1729328, 1798592,
1867856, 1937120, 2006384, 2075648, 2144912, 2211872, 2281136, 2350400,
2419664, 2488928, 2558192, 2627456, 2696720, 2765984, 2835248, 2904512,
2973776, 3043040, 3112304, 3181568, 3250832, 3317792,

Aber das sagt mir jetzt mal gar nichts.

1.Aber ich verstehe nicht, wie und weshalb das passiert ist.
Hat da vielleicht jemand eine idee?

2. Wie repariere ich das? ich moechte wenn es geht Solaris nicht noch mal installieren, das dauert immer so lange :)

Über Hilfe würde ich mich sehr freuen...

Claus

sonnenblen.de - Das unabhängige Sun User Forum

probleme mit dual boot (?)
« am: 14. April 2004, 14:49:39 »

mvsparky

  • Gast
Re: probleme mit dual boot (?)
« Antwort #1 am: 14. April 2004, 15:53:08 »
ja, dann versuch doch mal ein "fsck -F ufs /dev/rdsk/c0t1d0s0 -o b=69296" oder "fsck -F ufs /dev/rdsk/c0t1d0s0 -o b=138560".

wenn das funzt, empfehle ich anschließend ein format -> analyze -> refresh.

du kannst in der /etc/vfstab das logging für dateisysteme einschalten.
beispiel von mir:
/dev/dsk/c0t1d0s6       /dev/rdsk/c0t1d0s6      /9gbid1 ufs     1       yes     logging

das wird dir aber bei einer teilweise defekten platte nicht viel helfen. da nützt nur umpartitionieren und fehlerhafte bereiche ausklammern.

gruß
yves

claus

  • Gast
Re: probleme mit dual boot (?)
« Antwort #2 am: 14. April 2004, 16:17:04 »

Zitat

ja, dann versuch doch mal ein "fsck -F ufs /dev/rdsk/c0t1d0s0 -o b=69296" oder "fsck -F ufs /dev/rdsk/c0t1d0s0 -o b=138560".

wenn das funzt, empfehle ich anschließend ein format -> analyze -> refresh.

du kannst in der /etc/vfstab das logging für dateisysteme einschalten.
beispiel von mir:
/dev/dsk/c0t1d0s6       /dev/rdsk/c0t1d0s6      /9gbid1 ufs     1       yes     logging

das wird dir aber bei einer teilweise defekten platte nicht viel helfen. da nützt nur umpartitionieren und fehlerhafte bereiche ausklammern.

gruß
yves



Hallo,

vielen Dank ...

bash-2.03# fsck -F ufs -o b=3317792
Alternate super block location: 3317792.
** /dev/rdsk/c0t1d0s0
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
FREE BLK COUNT(S) WRONG IN SUPERBLK
SALVAGE? y

45121 files, 991283 used, 625164 free (2716 frags, 77806 blocks,  0.1% fragmenta
tion)

***** FILE SYSTEM WAS MODIFIED *****
Alternate super block location: 3317792.
** /dev/rdsk/c0t1d0s7
** Last Mounted on
** Phase 1 - Check Blocks and Sizes
** Phase 2 - Check Pathnames
** Phase 3 - Check Connectivity
** Phase 4 - Check Reference Counts
** Phase 5 - Check Cyl groups
2 files, 9 used, 1935182 free (14 frags, 241896 blocks,  0.0% fragmentation)

***** FILE SYSTEM WAS MODIFIED *****
bash-2.03# format

analyze> refresh
Ready to analyze (won't harm data). This takes a long time,
but is interruptable with CTRL-C. Continue? yes
Cannot do analysis on a partition which is currently being used for swapping.
analyze>

Muss ich jetzt /swap irgendwo anders hinverlagern?
Ich versteh das nicht  ganz ....

Claus

claus

  • Gast
Re: probleme mit dual boot (?)
« Antwort #3 am: 14. April 2004, 16:24:04 »

Zitat


analyze> refresh
Ready to analyze (won't harm data). This takes a long time,
but is interruptable with CTRL-C. Continue? yes
Cannot do analysis on a partition which is currently being used for swapping.
analyze>

Muss ich jetzt /swap irgendwo anders hinverlagern?
Ich versteh das nicht  ganz ....

Claus


Erm ... hatte vergessen, dass die Maschine in System Maintenance war. Habe den normalen Boot weitermachen lassen und tada, scheinbar keine Probleme mehr. Hoffentlich.

Bliebe noch die Frage zu klären, warum das Problem aufgetreten ist ....

Vielen Dank,

Claus

mvsparky

  • Gast
Re: probleme mit dual boot (?)
« Antwort #4 am: 14. April 2004, 17:11:37 »
Zitat

Bliebe noch die Frage zu klären, warum das Problem aufgetreten ist ....


z.b. festplatte stirbt langsam?

boote mal von cd und dann format -> ana -> ref. oder im laufenden betrieb format -> ana -> read.

denk an die /etc/vfstab!

gruß
yves