Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED]Block device /dev/sda7 is not a valid root device
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
roxor
n00b
n00b


Joined: 04 Aug 2004
Posts: 26

PostPosted: Sun Apr 09, 2006 12:07 pm    Post subject: [SOLVED]Block device /dev/sda7 is not a valid root device Reply with quote

hey leute

kriege seit kurzem diesen fehler, wenn ich meine kiste aufstarten will:
Code:
Block device /dev/sda7 is not a valid root device...
The root block device is unspecified or not detected.
Please specify a device to boot, or "shell" for a shell...


leider weiss ich nicht genau, warum diese fehlermeldung plötzlich erscheint? hab' etwas an meinen netzwerkeinstellungen gemacht, kann mir allerdings nicht vorstellen, dass dies zu einem solchen error führen kann?
hab mich durch https://forums.gentoo.org/viewtopic-t-349654-highlight-block+device+dev+sda8+valid+root+device.html und https://forums.gentoo.org/viewtopic-t-53522.html gewühlt, jedoch halfen diese tipps nichts.

habe ebenfalls SATA festplatten installiert.

wenn ich bei
"boot():: shell"
eingeben und ein
Code:
ls /dev
ausführe, erscheint leider kein /dev/sda7, nur
    sda
    sdb
    sdb1 ... sdb7
    sdc
    sdc1
    sdc2
    sdc5 sowie
    hda und hdb


weiss vielleicht jemand, woran das liegen könnte?

danke für eure hilfe!
mfg
rox


Last edited by roxor on Sun Apr 09, 2006 6:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Sun Apr 09, 2006 12:10 pm    Post subject: Reply with quote

Kommt das, während dein Kernel startet?

Dann solltest du mal /etc/lilo.conf oder dein grub.conf überprüfen, ob du da alles richtig eingestellt hast.

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
roxor
n00b
n00b


Joined: 04 Aug 2004
Posts: 26

PostPosted: Sun Apr 09, 2006 1:45 pm    Post subject: Reply with quote

und was sind da die kritischen einträge?

kann es sein, das die "mappings" der einzelnen partitionen ändern können?
beispiel: kann sda7 plötzlich zu sdb7 werden? oder sda7 zu sda6? ist dies möglich?

leider kann ich momentan nicht auf grub.conf zugreifen, weil ich nur ne sehr beschränkte konsole hab (linux booted ja nicht vollständig). dies ist mehr aus meiner erinnerung (weil ich sie vorhin noch kontrolliert)
gibt es eine möglichkeit, wie ich trotzdem auf /boot/grub/grub.conf zugreifen kann?

hier meine grub.conf
------------------------------
default 0
timeout 40
splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title=Windows XP Professional
root (hd0,0)
makeactive
chainloader +1

title=Gentoo Linux 2.6.12-r6
root= (hd0,2)
.....

title=XP Home
root (hd1,0)
makeactive
chainloader +1
------------------------------

ich bin mir sicher, dass beim gentoo-teil das "root=(hd0,2)" korrekt ist, das ist meine /boot partition.

danke für eure hilfe!
mfg
rox
Back to top
View user's profile Send private message
sohalt
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2006
Posts: 115

PostPosted: Sun Apr 09, 2006 1:48 pm    Post subject: Reply with quote

scheint wohl er daran zu liegen, das es das device nicht gibt. Probier mal ein
Code:
mknod /dev/sda7 b 8 7
Das müsste den device-node hinzufügen.
Back to top
View user's profile Send private message
roxor
n00b
n00b


Joined: 04 Aug 2004
Posts: 26

PostPosted: Sun Apr 09, 2006 2:43 pm    Post subject: Reply with quote

da hast du wohl recht, ansonsten müsste das device ja unter /dev aufgelistet sein oder?

nun, kann ich den mknod-befehl von dieser konsole ausführen?

das seltsame ist ja, dass alles noch geklappt hat, bis ich was in den netzwerkeinstellungen geändert hab.

aber mknod erstellt ja nur eine "pseudo-datei"...ich weiss nicht...

***************
okay...hat leider nix genutzt!
wenn ich beim prompt: boot()::
Code:
/dev/sda7
eingebe, kommt
Quote:
>> mounting root...
mount: mounting /dev/sda7 on /newroot failed: no medium found


hilft euch das weiter?
Back to top
View user's profile Send private message
roxor
n00b
n00b


Joined: 04 Aug 2004
Posts: 26

PostPosted: Sun Apr 09, 2006 3:25 pm    Post subject: Reply with quote

hier noch der linux-grub-teil:
Code:
root (hd0,2)
kernel /kernel-genkernel-x86-2.6.12-gentoo-r6 root=dev/ram0 init=/linuxrc ramdisk=8192 real_root=/dev/sda7 udev
initrd /initramfs-genkernel-x86-2.6.12-gentoo-r6


-----------
nachtrag:

hab unter /etc/conf.d/net.conf den default gw hinzugefügt.
aber das kann nicht der fehler sein oder?

des weiteren hab ich famd vom runlevel default entfernt, weil ich gnome installierte und eigentlich gamin verwenden möchte.

wenn ich beim prompt
Code:
/dev/sdb7

eingebe, versucht er zu starten und kommte einiges weiter, jedoch hängt er beim punkt:
Code:
 checking root filesystem ...
fsck.ext3: no such file oder directory while trying to open /dev/sda7
(dann langer text und...)
"if it really contains an ext2 or ext3 filesystem...it may be corrupt. you can try to fix it, using e2fsck -b 8193 <device>


wenn ich dann diesen
Code:
e2fsck -b 8193 /dev/sda7
ausführe, erscheint folgende meldung:
Quote:
e2fsck: no such file or directory while trying to open /dev/sda7


HILFE?!!! kann mir jemand helfen?
Back to top
View user's profile Send private message
Finswimmer
Bodhisattva
Bodhisattva


Joined: 02 Sep 2004
Posts: 5467
Location: Langen (Hessen), Germany

PostPosted: Sun Apr 09, 2006 3:37 pm    Post subject: Reply with quote

Ist das eine IDE Festplatte?

Hast du alle nötigen Treiber in dem Kernel FEST einkompiliert?

Tobi
_________________
Bitte auf Rechtschreibung, korrekte Formatierung und Höflichkeit achten!
Danke
Back to top
View user's profile Send private message
thomasmue
n00b
n00b


Joined: 02 Oct 2003
Posts: 73
Location: MTK,OF,WAK

PostPosted: Sun Apr 09, 2006 3:40 pm    Post subject: Reply with quote

Vielleicht ein bisschen off-topic:

Ich boote Linux auf mein Notebook von der USB-Platte. Da tritt der Effekt auch auf, weil das BIOS oder der Kernel das USB Laufwerk nicht schnell genug erkennt und udev die Devicenode nicht anlegt. Ich hatte dann auch rumprobiert und eine eigene Ramdisk erstellt, mit der richtigrn Devicenode (wie weiter oben im Thread angegeben), hat aber alles nicht geholfen. Was bei mir geholfen hat ist der Kernel- Parameter
Code:
rootdelay=n
ek
Ich habe ihn auf 25, was den Kernel dazu bringt, 25 Sekunden zu warten, bevor er versucht, /root zu mounten. Wahrscheinlich reicht wahrscheinlich auch weniger.

HTH

Thomas
Back to top
View user's profile Send private message
roxor
n00b
n00b


Joined: 04 Aug 2004
Posts: 26

PostPosted: Sun Apr 09, 2006 3:42 pm    Post subject: Reply with quote

hier noch meine /etc/fstab (sollte eigentlich korrekt sein?)

Quote:

/dev/sda3 /boot ext2 noauto,noatime 1 2
/dev/sda7 / ext2 noatime 0 1
/dev/sda4 none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0 /mnt/floppy auto noauto 0 0

proc /proc proc defaults 0 0


wie schauts hier aus? stimmt das?
Back to top
View user's profile Send private message
roxor
n00b
n00b


Joined: 04 Aug 2004
Posts: 26

PostPosted: Sun Apr 09, 2006 3:46 pm    Post subject: Reply with quote

hey

nein, es sind SATA-platten und die treiber sollten eigentlich okay sein, sonst hät' ich diesen fehler ja schon immer gehabt. heute morgen beispielsweise war ich noch in der glücklichen lage, gnome zu starten und meinen desktop einzurichten! =/

hmm...könnte ich mal probieren, bei SATA sollte die geschwindigkeit aber ausreichend sein!

mfg
rox
Back to top
View user's profile Send private message
roxor
n00b
n00b


Joined: 04 Aug 2004
Posts: 26

PostPosted: Sun Apr 09, 2006 6:16 pm    Post subject: Reply with quote

Wohoooooo!

ES LÄUFT WIEDER!

also, das problem war höchstwahrscheinlich folgendes:
weil ich in windows mal eine neue partition hinzugefügt hab, hats in linux wohl die partitionen etwas neu durchnummeriert (wieso auch immer?).
nun waren die linux-partitionen nicht mehr sda sondern sdb.
musste nur per live-cd starten, ins system chrooten und die fstab bzw. die grub.conf anpassen!

nun hab ich aber doch noch die frage, ob dies des öfteren vorkommen kann? sprich wenn ich in windows eine partition erstelle/lösche, muss ich dann dieses ganze prozedere erneut durchführen? ich hoffe nicht....

mfg
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum