Kirjoittaja Aihe: C-asema kateissa  (Luettu 4831 kertaa)

fLcOn

  • Käyttäjä
  • Viestejä: 5
    • Profiili
C-asema kateissa
« : 09.12.07 - klo:22.43 »
Hei!

Grub ei buuttaa enää XP:tä, vaan restarttaa kun valitsen XP:n. Kun menen kubuntuun en enää löydä C-asemaa ollenkaan. Kopioin tätä ennen tiedostoja kubuntussa kyseiselle asemalle. Help!!!

-linux noob-

SuperOscar

  • Käyttäjä
  • Viestejä: 4000
  • Ocatarinetabellatsumtsum!
    • Profiili
    • Legisign.org
Vs: C-asema kateissa
« Vastaus #1 : 10.12.07 - klo:11.46 »
Koodia: [Valitse]
sudo fdisk /l
...antaisi vähän pohjatietoja, joiden avulla keksiä ratkaisua, kopsaa tulosteet tänne.
pöytäkone 1, kannettavat 1–3: Debian GNU/Linux 12; pöytäkone 2: openSUSE Tumbleweed; NUC: openSUSE Leap 15.5; RPi 1: FreeBSD 13.2-RELEASE; RPi 2: LibreELEC 11

qwertyy

  • Käyttäjä
  • Viestejä: 5672
    • Profiili
Vs: C-asema kateissa
« Vastaus #2 : 10.12.07 - klo:12.11 »
Tuohon komentoon on lipsahtanut typo, eli SuperOscar tarkoitti
Koodia: [Valitse]
sudo fdisk -l

SuperOscar

  • Käyttäjä
  • Viestejä: 4000
  • Ocatarinetabellatsumtsum!
    • Profiili
    • Legisign.org
Vs: C-asema kateissa
« Vastaus #3 : 10.12.07 - klo:15.11 »
Tuohon komentoon on lipsahtanut typo, eli SuperOscar tarkoitti

Kiitos! Kuinkas nyt noin pääsivät vanhat ”dosismit” yllättämään :D
pöytäkone 1, kannettavat 1–3: Debian GNU/Linux 12; pöytäkone 2: openSUSE Tumbleweed; NUC: openSUSE Leap 15.5; RPi 1: FreeBSD 13.2-RELEASE; RPi 2: LibreELEC 11

fLcOn

  • Käyttäjä
  • Viestejä: 5
    • Profiili
Vs: C-asema kateissa
« Vastaus #4 : 12.12.07 - klo:19.08 »
tätä sieltä tuli:

Disk /dev/hda: 160 GB, 160039272960 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        5737    46082421    7  HPFS/NTFS
/dev/hda2            5738       17211    92156872    7  HPFS/NTFS
/dev/hda3           17212       19399    17567077   83  Linux
/dev/hda4           19400       19457      457852   82  Linux swap
Warning: Unable to open /dev/hdc read-write (Read-only file system).  /dev/hdc h                         
as been opened read-only.
Error: Unable to open /dev/hdc - unrecognised disk label.

Ville Pöntinen

  • Käyttäjä
  • Viestejä: 2078
    • Profiili
Vs: C-asema kateissa
« Vastaus #5 : 12.12.07 - klo:21.39 »

Tuo tuloste näyttää jotakuinkin normaalilta, sulla on (tosin) neljä primääriosiota, joista kaksi windowsin (oletettavasti C- ja D-asemat) sekä linuxin juuri ja sen swappi.

Mitä sanoo komento
Koodia: [Valitse]
cat /boot/grub/menu.lst ja etenkin sen viimeiset rivit. Itsellä siellä myös Windows. Mun viimeiset rivit ovat:
Koodia: [Valitse]
title           Microsoft Windows XP Home Edition
root            (hd0,0)
savedefault
makeactive
chainloader     +1

Sulla pitäisi ymmärtääkseni olla samoin.

fLcOn

  • Käyttäjä
  • Viestejä: 5
    • Profiili
Vs: C-asema kateissa
« Vastaus #6 : 13.12.07 - klo:13.58 »
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default      0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout      10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title      Windows 95/98/NT/2000
# root      (hd0,0)
# makeactive
# chainloader   +1
#
# title      Linux
# root      (hd0,1)
# kernel   /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=3d4453d0-a1e6-4fb4-9e1a-bc5d03784e15 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,2)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title      Ubuntu 7.10, kernel 2.6.22-14-generic
root      (hd0,2)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=3d4453d0-a1e6-4fb4-9e1a-bc5d03784e15 ro quiet splash
initrd      /boot/initrd.img-2.6.22-14-generic
quiet

title      Ubuntu 7.10, kernel 2.6.22-14-generic (recovery mode)
root      (hd0,2)
kernel      /boot/vmlinuz-2.6.22-14-generic root=UUID=3d4453d0-a1e6-4fb4-9e1a-bc5d03784e15 ro single
initrd      /boot/initrd.img-2.6.22-14-generic

title      Ubuntu 7.10, memtest86+
root      (hd0,2)
kernel      /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title      Other operating systems:
root


# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/hda1
title      Microsoft Windows XP Professional
root      (hd0,0)
savedefault
makeactive
chainloader   +1

fLcOn

  • Käyttäjä
  • Viestejä: 5
    • Profiili
Vs: C-asema kateissa
« Vastaus #7 : 13.12.07 - klo:14.01 »
Tässä Gpartedin loki tarkistettettaessa c-asemaa:

GParted 0.3.3

 Libparted 1.7.1

 
Tarkista ja korjaa tiedostojärjestelmä (ntfs) levyllä /dev/hda1  00:09    ( ERROR )
     
   kalibroi /dev/hda1  00:00    ( SUCCES )
     
  polku: /dev/hda1
alkaa: 63
loppuu: 92164904
koko: 92164842 (43.95 GiB)
   tarkista tiedostojärjestelmä /dev/hda1 virheiden varalta ja yritä korjata ne  00:09    ( ERROR )
     
  ntfsresize -P -i -f -v /dev/hda1
     
  ntfsresize v1.13.1 (libntfs 9:0:0)
Device name : /dev/hda1
NTFS volume version: 3.1
Cluster size : 4096 bytes
Current volume size: 47188398592 bytes (47189 MB)
Current device size: 47188399104 bytes (47189 MB)
Checking for bad sectors ...
Checking filesystem consistency ...
Accounting clusters ...
Cluster accounting failed at 3754527 (0x394a1f): extra cluster in $Bitmap
Cluster accounting failed at 3754528 (0x394a20): extra cluster in $Bitmap
Cluster accounting failed at 5760313 (0x57e539): extra cluster in $Bitmap
Cluster accounting failed at 5760314 (0x57e53a): extra cluster in $Bitmap
Filesystem check failed! Totally 4 cluster accounting mismatches.
ERROR: NTFS is inconsistent. Run chkdsk /f on Windows then reboot it TWICE!
The usage of the /f parameter is very IMPORTANT! No modification was
and will be made to NTFS by this software until it gets repaired.
 

  ========================================

fLcOn

  • Käyttäjä
  • Viestejä: 5
    • Profiili
Vs: C-asema kateissa
« Vastaus #8 : 13.12.07 - klo:14.04 »
aika hankalaa suorittaa  chkdsk /f windowsissa kun en sinne pääse.. Koetin xp:n asennuslevyltä käyttää chkdsk:ta mutta se ei suorita tuota komentoa eikä muillakaan komennoilla saa mitään aikaiseksi..

SuperOscar

  • Käyttäjä
  • Viestejä: 4000
  • Ocatarinetabellatsumtsum!
    • Profiili
    • Legisign.org
Vs: C-asema kateissa
« Vastaus #9 : 13.12.07 - klo:15.04 »
Koetin xp:n asennuslevyltä käyttää chkdsk:ta mutta se ei suorita tuota komentoa eikä muillakaan komennoilla saa mitään aikaiseksi..

Erikoista: muistelin itse, että Windowsin ”palautuskonsolista” (johon siis asennuslevyltä pääsee) ainakin levyntarkistus olisi mahdollista.

Ilmeisesti osiolla on nyt jotain oikeasti vialla, toivottavasti vielä selviät ilmat datan menetystä!

NTFS tietysti vaikeuttaa asiaa, koska Microsoft on pitänyt sen tarkat speksit visusti salassa. Jollet Ubuntun (tai muun Linuxin) Live-CD:llä onnistu, voisit kokeilla Ultimate Boot CD:tä, joka nimenomaan on suunniteltu MS-järjestelmien pelastukseen.
pöytäkone 1, kannettavat 1–3: Debian GNU/Linux 12; pöytäkone 2: openSUSE Tumbleweed; NUC: openSUSE Leap 15.5; RPi 1: FreeBSD 13.2-RELEASE; RPi 2: LibreELEC 11