bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #29285] grub2 doesn't see logical partitions correctly on usb hdd


From: dimas
Subject: [bug #29285] grub2 doesn't see logical partitions correctly on usb hdd
Date: Sun, 21 Mar 2010 19:02:23 +0000
User-agent: Opera/9.80 (X11; Linux i686; U; en) Presto/2.2.15 Version/10.10

URL:
  <http://savannah.gnu.org/bugs/?29285>

                 Summary: grub2 doesn't see logical partitions correctly on
usb hdd
                 Project: GNU GRUB
            Submitted by: dimas000
            Submitted on: Sun 21 Mar 2010 07:02:22 PM GMT
                Category: Disk &amp; Partition
                Severity: Major
                Priority: 5 - Normal
              Item Group: Software Error
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 
                 Release: 1.97
         Reproducibility: Every Time
         Planned Release: None

    _______________________________________________________

Details:

hello! i'm having a problem with usb-hdd "Samsung S2 Portable". first of all,
it's partitioned in a such way:

/dev/sdb1: UUID="4492DD7D514F2801" LABEL="svalka" TYPE="ntfs" 
/dev/sdb5: LABEL="backup" UUID="fd81f9f9-efd0-428f-a30f-8405da82b39e"
TYPE="reiserfs"

sdb1 is 400G ntfs partition, sdb2 is extended and sdb5 is logical, 15G
reiserfs

fdisk -l /dev/sdb:

Диск /dev/sdb: 500.1 ГБ, 500107862016 байт
255 heads, 63 sectors/track, 60801 cylinders
Units = цилиндры of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0001e23a

Устр-во Загр     Начало       Конец       Блоки  
Id  Система
/dev/sdb1               1       52217   419433021    7  HPFS/NTFS
/dev/sdb2           52218       60801    68950980    5 
Расширенный
/dev/sdb5           52218       54176    15735636   83  Linux


the problem is: grub2 doesn't correctly see my sdb5 partition. i go to
command line and do "ls", ls says:

(hd0) ...smth from my sda... (hd1) (hd1,5) (hd1,1)
error: out of disk

if i say "ls (hd1)", it displays (hd1,5) as "unknown filesystem".
partition table type is "msdos". i partition this hdd with gparted, firstly
there was no extended partition, just sdb1. earlier there was second logical
partition, sdb6, and grub2 didn't see it at all. then i used fdisk and removed
extended partition at all. then recreated it with fdisk and created 15G
logical sdb5 inside. and then mkfs.reiserfs with default params (only set
label). after that i got the same errors as before: "out of disk".
what is intersting, in Linux everything is fine with this drive, all
partitons mount/read/write succesfully, during partitioning i've never got any
errors. the disk is new. both sdb1 and sdb5 partitions are ok due to fsck.
i've even installed grub2 on sdb5 (grub-install
--root-directory=/media/backup /dev/sdb), but when i've tried to boot from
this drive, i've got "error: no such disk" and been dropped to grub-rescue.
now i have grub 1.97.b4 on Ubuntu 9.10. i'm not sure if it's related to fs on
sdb5, so i plan to try with another fs or with empty partition.

below is some additional info...

udevadm info --query=all --name=sdb:

P:
/devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4:1.0/host5/target5:0:0/5:0:0:0/block/sdb
N: sdb
W: 54
S: block/8:16
S: disk/by-id/usb-Samsung_S2_Portable_0000002CE0931050192E-0:0
S: disk/by-path/pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0
E: UDEV_LOG=3
E:
DEVPATH=/devices/pci0000:00/0000:00:1d.7/usb2/2-4/2-4:1.0/host5/target5:0:0/5:0:0:0/block/sdb
E: MAJOR=8
E: MINOR=16
E: DEVNAME=/dev/sdb
E: DEVTYPE=disk
E: SUBSYSTEM=block
E: ID_VENDOR=Samsung
E: ID_VENDOR_ENC=Samsung\x20
E: ID_VENDOR_ID=04e8
E: ID_MODEL=S2_Portable
E: ID_MODEL_ENC=S2\x20Portable\x20\x20\x20\x20\x20
E: ID_MODEL_ID=1f05
E: ID_REVISION=0000
E: ID_SERIAL=Samsung_S2_Portable_0000002CE0931050192E-0:0
E: ID_SERIAL_SHORT=0000002CE0931050192E
E: ID_TYPE=disk
E: ID_INSTANCE=0:0
E: ID_BUS=usb
E: ID_USB_INTERFACES=:080650:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=usb-storage
E: ID_PATH=pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0
E: DKD_MEDIA_AVAILABLE=1
E: DKD_PARTITION_TABLE=1
E: DKD_PARTITION_TABLE_SCHEME=mbr
E: DKD_ATA_SMART_IS_AVAILABLE=1
E: DKD_PRESENTATION_NOPOLICY=0
E: DEVLINKS=/dev/block/8:16
/dev/disk/by-id/usb-Samsung_S2_Portable_0000002CE0931050192E-0:0
/dev/disk/by-path/pci-0000:00:1d.7-usb-0:4:1.0-scsi-0:0:0:0


hdparm -I /dev/sdb:

/dev/sdb:

ATA device, with non-removable media
Standards:
        Likely used: 1
Configuration:
        soft sectored
        head switch time > 15us
        spindle motor control option
        disk xfer rate > 5Mbs, <= 10Mbs
        disk xfer rate > 5Mbs
        data strobe offset option
        track offset option
        Logical         max     current
        cylinders       12600   0
        heads           12336   0
        sectors/track   0       0
        --
        bytes/track: 10 bytes/sector: 0
        Logical/Physical Sector size:           512 bytes
        device size with M = 1024*1024:           0 MBytes
        device size with M = 1000*1000:           0 MBytes 
        cache/buffer size  = unknown
Capabilities:
        IORDY not likely
        Cannot perform double-word IO
        R/W multiple sector transfer: not supported
        DMA: not supported
        PIO: pio0


fdisk - x - p:

#  AF Гол Сек  Цил Гол Сек  Цил    Начало     
Разм ID
 1 00   1   1    0 254  63 1023         63  838866042 07
 2 00 254  63 1023 254  63 1023  838866105  137901960 05
 3 00   0   0    0   0   0    0          0          0 00
 4 00   0   0    0   0   0    0          0          0 00
 5 00 254  63 1023 254  63 1023         63   31471272 83

 
fdisk - x - d:

Устройство: /dev/sdb
0x000: EB 63 90 10 8E D0 BC 00 B0 B8 00 00 8E D8 8E C0
0x010: FB BE 00 7C BF 00 06 B9 00 02 F3 A4 EA 21 06 00
0x020: 00 BE BE 07 38 04 75 0B 83 C6 10 81 FE FE 07 75
0x030: F3 EB 16 B4 02 B0 01 BB 00 7C B2 80 8A 74 01 8B
0x040: 4C 02 CD 13 EA 00 7C 00 00 EB FE 00 00 00 00 00
0x050: 00 00 00 00 00 00 00 00 00 00 00 80 01 00 00 00
0x060: 00 00 00 00 FF FA EB 07 F6 C2 80 75 02 B2 80 EA
0x070: 74 7C 00 00 31 C0 8E D8 8E D0 BC 00 20 FB A0 64
0x080: 7C 3C FF 74 02 88 C2 52 BE 88 7D E8 24 01 BE 05
0x090: 7C F6 C2 80 74 48 B4 41 BB AA 55 CD 13 5A 52 72
0x0A0: 3D 81 FB 55 AA 75 37 83 E1 01 74 32 31 C0 89 44
0x0B0: 04 40 88 44 FF 89 44 02 C7 04 10 00 66 8B 1E 5C
0x0C0: 7C 66 89 5C 08 66 8B 1E 60 7C 66 89 5C 0C C7 44
0x0D0: 06 00 70 B4 42 CD 13 72 05 BB 00 70 EB 73 B4 08
0x0E0: CD 13 73 0A F6 C2 80 0F 84 D8 00 E9 82 00 66 0F
0x0F0: B6 C6 88 64 FF 40 66 89 44 04 0F B6 D1 C1 E2 02
0x100: 88 E8 88 F4 40 89 44 08 0F B6 C2 C0 E8 02 66 89
0x110: 04 66 A1 60 7C 66 09 C0 75 4E 66 A1 5C 7C 66 31
0x120: D2 66 F7 34 88 D1 31 D2 66 F7 74 04 3B 44 08 7D
0x130: 37 FE C1 88 C5 30 C0 C1 E8 02 08 C1 88 D0 5A 88
0x140: C6 BB 00 70 8E C3 31 DB B8 01 02 CD 13 72 29 8C
0x150: C3 60 1E B9 00 01 8E DB 31 F6 BF 00 80 8E C6 FC
0x160: F3 A5 1F 61 FF 26 5A 7C BE 8E 7D E8 44 00 EB 0E
0x170: BE 93 7D E8 3C 00 EB 06 BE 9D 7D E8 34 00 BE A2
0x180: 7D E8 2E 00 CD 18 EB FE 47 52 55 42 20 00 47 65
0x190: 6F 6D 00 48 61 72 64 20 44 69 73 6B 00 52 65 61
0x1A0: 64 00 20 45 72 72 6F 72 0D 0A 00 BB 01 00 B4 0E
0x1B0: CD 10 AC 3C 00 75 F4 C3 3A E2 01 00 00 00 00 01
0x1C0: 01 00 07 FE FF FF 3F 00 00 00 7A 14 00 32 00 FE
0x1D0: FF FF 05 FE FF FF B9 14 00 32 88 37 38 08 00 00
0x1E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA

0x000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x040: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x050: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x060: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x070: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x080: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x090: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0C0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x0F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x100: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x110: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x120: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x130: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x140: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x150: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x160: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x170: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x180: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1A0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1B0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 FE
0x1C0: FF FF 83 FE FF FF 3F 00 00 00 A8 36 E0 01 00 00
0x1D0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1E0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
0x1F0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 AA


lshw:

     *-scsi
          physical id: 2
          bus info: address@hidden:4
          logical name: scsi5
          capabilities: emulated scsi-host
          configuration: driver=usb-storage
        *-disk
             description: SCSI Disk
             physical id: 0.0.0
             bus info: address@hidden:0.0.0
             logical name: /dev/sdb
             size: 465GiB (500GB)
             capabilities: partitioned partitioned:dos
             configuration: signature=0001e23a
           *-volume:0
                description: Windows NTFS volume
                physical id: 1
                bus info: address@hidden:0.0.0,1
                logical name: /dev/sdb1
                logical name: /media/svalka
                version: 3.1
                serial: 61da650c-463b-431a-9f97-3534e1bf8632
                size: 400GiB
                capacity: 400GiB
                capabilities: primary ntfs initialized
                configuration: clustersize=4096 created=2010-03-06 17:45:02
filesystem=ntfs label=svalka mount.fstype=fuseblk
mount.options=rw,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096
state=mounted
           *-volume:1
                description: Extended partition
                physical id: 2
                bus info: address@hidden:0.0.0,2
                logical name: /dev/sdb2
                size: 65GiB
                capacity: 65GiB
                capabilities: primary extended partitioned
partitioned:extended
              *-logicalvolume
                   description: Linux filesystem partition
                   physical id: 5
                   logical name: /dev/sdb5
                   capacity: 15GiB


now i'm not ready to re-partition the whole drive, because i have some GBs of
data on my big ntfs partition, but i will try to place them elsewhere outside
and recreate the whole table later




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?29285>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]