bugGNU GRUB - Bugs: bug #29285, grub2 doesn't see logical...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

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

Submitter:  dimas <dimas000>
Submitted:  Sun 21 Mar 2010 07:02:22 PM UTC
   
 
Category:  Disk & Partition Severity:  Major
Priority:  5 - Normal Item Group:  Software Error
Status:  Invalid Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Closed Release:  1.97
Release:  Reproducibility:  Every Time
Planned Release:  None

Sat 27 Mar 2010 12:14:40 AM UTC, comment #4: 

it works in that configuration because then grub doesn't have to access beyond limit. This problem was already throughly discussed

Vladimir Serbinenko <phcoder>
Group administrator
Fri 26 Mar 2010 11:08:34 PM UTC, comment #3: 

thanks for your answer!

>Your BIOS probably has 128GiB limit on USB HDD

yes, probably you're right. because i've made several experiments and... when i made 20G sdb1 + 15G sdb2 - everything was right. 50+15 - ok. 100+15 - ok too. 200+15 - got errors.
but now i've solved this problem and going to tell how. mb it will help someone.
first of all, i've created my big 400G partition (sdb1) at the end of disk and formated to ntfs. in the rest of space in begging of disk i've made sdb2 extended partition. and inside of it i sometimes make or destroy logical partitions. both grub1.97 and 1.98 see everything right. don't know why, but it fixes the problem
this is how it looks now - http://s50.radikal.ru/i130/1003/1d/2160f92a26d6.png
so now all is fine, thanks a lot for attention!

dimas <dimas000>
Fri 26 Mar 2010 10:30:57 PM UTC, comment #2: 

Your BIOS probably has 128GiB limit on USB HDD. By default grub2 uses BIOS to access drives. We have USB subsystem but it's young and has its own issues which are represented by other bugreports and tasks. If this bug isn't a manifestation of BIOS bug feel free to reopen it

Vladimir Serbinenko <phcoder>
Group administrator
Mon 22 Mar 2010 06:23:30 PM UTC, comment #1: 

well... i've repartitioned the whole drive several times, including zero-cleaning of partition table. and what i noticed after it all: grub cannot recognize extended partition in any way!
firstly, when there is only 400G sdb1, all is fine. but when i create extended sdb2 in rest of space, it cannot be seen in grub. "ls" displays (hd1) and (hd1,1) and says "error: no signature". so there is no sdb2 at all. and it doesn't see anywhere created in extended sdb2.
btw, i've tried type 5 and type 85 and results were same. i've tried with fdsik, cfdisk and gparted - the same.
what is more - when i left idea about extended partition here and just created 3 primary partitions
sdb1 - 400G - ntfs
sdb2 - 15G - reiser
sdb3 - 4G - reiser
i've got strange results too. "ls" displays all of them, but only sdb1 is displayed as ntfs. sdb2 and 3 is shown like "unknown filesystem", so i couldn't browse their contents or do smth useful.
oh, forgot to mention: i got latest trunk from bzr, built and installed it. it works, but nothing changed with my problem.
and... grub-emu doesn't see hd1 at all, but i'm not sure if it should
don't know which extra-info to provide. can get smth more if you need

dimas <dimas000>
Sun 21 Mar 2010 07:02:22 PM UTC, original submission:  

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: usb@2:4
          logical name: scsi5
          capabilities: emulated scsi-host
          configuration: driver=usb-storage
        *-disk
             description: SCSI Disk
             physical id: 0.0.0
             bus info: scsi@5: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: scsi@5: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: scsi@5: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

dimas <dimas000>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by phcoder (Posted a comment)
  • -email is unavailable- added by dimas000 (Submitted the item)
  • -email is unavailable- added by dimas000
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-03-26 phcoder StatusNone Invalid
        Open/ClosedOpen Closed
    2010-03-21 dimas000 Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code