Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[GRUB] Filesystem type unknown (résolu)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index French
View previous topic :: View next topic  
Author Message
mysix
Apprentice
Apprentice


Joined: 26 Mar 2010
Posts: 183

PostPosted: Sun Mar 28, 2010 5:50 pm    Post subject: [GRUB] Filesystem type unknown (résolu) Reply with quote

J'ai paramétré manuellement le fichier grub.conf.

Ensuite j'ai voulu faire en automatique alors j'ai tapé : grub-install --no-floppy /dev/sda
Mais il ma sortie une erreur qu'il ne pouvait pas lire stage1 :roll:

Bon alors j'ai voulu faire en manuel : grub-install --no-floppy
Là j'arrive dans le shell de Grub et je tape : root (hd0,0)

voilà la réponse :
Code:

grub> root (hd0,0)
grub>  Filesystem type unknown, partition type 0xa
grub>

Mais pourtant au début j'avais bien fais : mke2fs /dev/sda1
J'ai par conséquent démonté mon /boot et remonté avec : mount -t ext2 /dev/sda1 /boot
Mais malheureusement sans succès.


Last edited by mysix on Sun Mar 28, 2010 10:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
Biloute
Guru
Guru


Joined: 03 Apr 2008
Posts: 369
Location: LENS

PostPosted: Sun Mar 28, 2010 9:13 pm    Post subject: Reply with quote

tu pouvais nous donner le résultat de
Code:
# mount


Quel live CD utilise tu pour installer gentoo?
_________________
Gentoo rocks
Back to top
View user's profile Send private message
mysix
Apprentice
Apprentice


Joined: 26 Mar 2010
Posts: 183

PostPosted: Sun Mar 28, 2010 9:25 pm    Post subject: Reply with quote

voilà le résultat de mount :
Code:

(chroot) sysresccd grub # mount
udev on /dev type tmpfs (rw,relatime,size=10240k,mode=755)
/dev/sdb1 on /livemnt/boot type vfat (ro,relatime,fmask=0133,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/loop0 on /livemnt/squashfs type squashfs (ro,relatime)
tmpfs on /livemnt/memory type tmpfs (rw,relatime)
none on / type aufs (rw,noatime,si=9043d22e)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
tmpfs on /lib/firmware type tmpfs (rw,relatime)
usbfs on /proc/bus/usb type usbfs (rw,nosuid,noexec,relatime,devgid=85,devmode=664)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,nosuid,nodev,noexec,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
/dev/sda3 on / type ext3 (rw,relatime,errors=continue,data=ordered)
none on /proc type proc (rw,relatime)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
/dev/sdc1 on /mnt/usb type vfat (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/sda1 on /boot type ext2 (rw)
(chroot) sysresccd grub #


Comme LiveCD j'utillise le RescueCD

Je met encore quelques information supplémentaires :

/etc/mtab
Code:

udev /dev tmpfs rw,relatime,size=10240k,mode=755 0 0
/dev/sdb1 /livemnt/boot vfat ro,relatime,fmask=0133,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro$
/dev/loop0 /livemnt/squashfs squashfs ro,relatime 0 0
tmpfs /livemnt/memory tmpfs rw,relatime 0 0
none / aufs rw,noatime,si=9043d22e 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
sysfs /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
devpts /dev/pts devpts rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /lib/firmware tmpfs rw,relatime 0 0
usbfs /proc/bus/usb usbfs rw,nosuid,noexec,relatime,devgid=85,devmode=664 0 0
binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
/dev/sda3 / ext3 rw,relatime,errors=continue,data=ordered 0 0
none /proc proc rw,relatime 0 0
udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
udev /dev tmpfs rw,nosuid,relatime,size=10240k,mode=755 0 0
/dev/sdc1 /mnt/usb vfat rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro 0 0
/dev/sda1 /boot ext2 rw 0 0


/etc/fstab
Code:

# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1               /boot           ext2            noauto,noatime  1 2
/dev/sda3               /               ext3            noatime         0 1
/dev/sda2               none            swap            sw              0 0
#/dev/cdrom             /mnt/cdrom      auto            noauto,ro,user  0 0
#/dev/fd0               /mnt/floppy     auto            noauto,user     0 0

# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
#  use almost no memory if not populated with files)
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0


Ici on peut voir que le inode est à 128. (j'anticipe). :wink:
Code:

(chroot) sysresccd grub # tune2fs -l /dev/sda1
tune2fs 1.41.9 (22-Aug-2009)
Filesystem volume name:   <none>
Last mounted on:          <not available>
Filesystem UUID:          7c95a786-8807-4e9d-b69a-5e01503e25dc
Filesystem magic number:  0xEF53
Filesystem revision #:    1 (dynamic)
Filesystem features:      ext_attr resize_inode dir_index filetype sparse_super
Filesystem flags:         signed_directory_hash
Default mount options:    (none)
Filesystem state:         not clean
Errors behavior:          Continue
Filesystem OS type:       Linux
Inode count:              124928
Block count:              497980
Reserved block count:     24899
Free blocks:              475593
Free inodes:              124895
First block:              1
Block size:               1024
Fragment size:            1024
Reserved GDT blocks:      256
Blocks per group:         8192
Fragments per group:      8192
Inodes per group:         2048
Inode blocks per group:   256
Filesystem created:       Sun Mar 28 12:46:33 2010
Last mount time:          Sun Mar 28 21:20:50 2010
Last write time:          Mon Mar 29 01:08:06 2010
Mount count:              2
Maximum mount count:      22
Last checked:             Sun Mar 28 12:46:33 2010
Check interval:           15552000 (6 months)
Next check after:         Fri Sep 24 12:46:33 2010
Reserved blocks uid:      0 (user root)
Reserved blocks gid:      0 (group root)
First inode:              11
Inode size:               128
Default directory hash:   half_md4
Directory Hash Seed:      b6e7760e-e217-4e4a-a4ec-e3dd30204cf1
(chroot) sysresccd grub #
Back to top
View user's profile Send private message
man in the hill
Veteran
Veteran


Joined: 15 Dec 2005
Posts: 1552
Location: Madinina

PostPosted: Sun Mar 28, 2010 10:05 pm    Post subject: Reply with quote

Code:
ls /boot

_________________
Get Up and Go !
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Sun Mar 28, 2010 10:07 pm    Post subject: Reply with quote

essaye avec #grub au lieu de #grub-install et quand tu as le shell tu tappes root hd(0 et "tab" pour la complétion pour vérifier s'il voit bien chaque disque et ainsi dessuite

Edit: verrifier aussi le contenu de /boot/grub/device.map
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "


Last edited by boozo on Sun Mar 28, 2010 10:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
mysix
Apprentice
Apprentice


Joined: 26 Mar 2010
Posts: 183

PostPosted: Sun Mar 28, 2010 10:08 pm    Post subject: Reply with quote

Code:
(chroot) sysresccd grub # ls /boot
boot  grub  kernel-2.6.31-gentoo-r10  lost+found
(chroot) sysresccd grub #



Code:
(chroot) sysresccd grub # ls /boot -la
total 3984
drwxr-xr-x  4 root root    1024 Mar 28 19:54 .
drwxr-xr-x 19 root root    4096 Mar 29 01:58 ..
-rw-r--r--  1 root root       0 Feb 16 13:19 .keep
lrwxrwxrwx  1 root root       1 Mar 28 15:00 boot -> .
drwxr-xr-x  2 root root    1024 Mar 29 01:07 grub
-rw-r--r--  1 root root 4042976 Mar 28 19:03 kernel-2.6.31-gentoo-r10
drwx------  2 root root   12288 Mar 28 12:46 lost+found
(chroot) sysresccd grub #


Pour Bozoo:
Code:
(chroot) sysresccd grub # grub
Probing devices to guess BIOS drives. This may take a long time.

    GNU GRUB  version 0.97  (640K lower / 3072K upper memory)

 [ Minimal BASH-like line editing is supported.  For the first word, TAB
   lists possible command completions.  Anywhere else TAB lists the possible
   completions of a device/filename. ]

grub> root (hd
 Possible disks are:  hd0 hd1 hd2

grub> root (hd0,
 Possible partitions are:
   Partition num: 0,  Filesystem type unknown, partition type 0xa
   Partition num: 1,  Filesystem type unknown, partition type 0x82
   Partition num: 2,  Filesystem type is ext2fs, partition type 0x83

grub> root (hd0,
 Possible partitions are:
   Partition num: 0,  Filesystem type unknown, partition type 0xa
   Partition num: 1,  Filesystem type unknown, partition type 0x82
   Partition num: 2,  Filesystem type is ext2fs, partition type 0x83

grub> root (hd0,0)
 Filesystem type unknown, partition type 0xa

grub>


L'auto-complétion fonctionne bien

Code:
(chroot) sysresccd grub # more /boot/grub/device.map
(fd0) /dev/fd0
(hd0) /dev/sda
(hd1) /dev/sdb
(hd2) /dev/sdc
(chroot) sysresccd grub #


Ça me semble correct, le sdb et le sdc ce sont des clé usb
Back to top
View user's profile Send private message
mysix
Apprentice
Apprentice


Joined: 26 Mar 2010
Posts: 183

PostPosted: Sun Mar 28, 2010 10:19 pm    Post subject: Reply with quote

up :D
Back to top
View user's profile Send private message
ghoti
Advocate
Advocate


Joined: 30 Dec 2002
Posts: 3634
Location: Belgium

PostPosted: Sun Mar 28, 2010 10:20 pm    Post subject: Reply with quote

mysix wrote:
Possible partitions are:
Partition num: 0, Filesystem type unknown, partition type 0xa

"0xa" est une partition de type "OS/2 Boot Manager".
Tu devrais pouvoir le vérifier avec fdisk -l /dev/sda
Il faudrait en faire une partition de type 83 (Linux).
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Sun Mar 28, 2010 10:20 pm    Post subject: Reply with quote

Tant mieux donc après faut juste tapper : setup (hd0) :wink:

Edit: au fait une remarque, culturellement, on fait pas de "up" chez nous (sauf éventuellement à + de 48h si c'est important :wink: )

*Grrmml* ghoti est toujours aussi affuté :-$
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
mysix
Apprentice
Apprentice


Joined: 26 Mar 2010
Posts: 183

PostPosted: Sun Mar 28, 2010 10:30 pm    Post subject: Reply with quote

Ok je m'en souviendrai :wink:

Du coup ca marche ^^.
Merci infiniment !
Back to top
View user's profile Send private message
boozo
Advocate
Advocate


Joined: 01 Jul 2004
Posts: 3193

PostPosted: Sun Mar 28, 2010 10:36 pm    Post subject: Reply with quote

de nada :wink: mais la remarque de ghoti reste pertinente à vérifier.

Edit: typo et dodo
_________________
" Un psychotique, c'est quelqu'un qui croit dur comme fer que 2 et 2 font 5, et qui en est pleinement satisfait.
Un névrosé, c'est quelqu'un qui sait pertinemment que 2 et 2 font 4, et ça le rend malade ! "
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index French 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