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

Submitted by:  dimas <dimas000>
Submitted on:  Sun 21 Mar 2010 07:02:22 PM UTC  
 
Category: Disk & PartitionSeverity: Major
Priority: 5 - NormalItem Group: Software Error
Status: InvalidPrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: ClosedRelease: 
Release: 1.97Reproducibility: 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>
Project 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>
Project 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:
sdb1 is 400G ntfs partition, sdb2 is extended and sdb5 is logical, 15G reiserfs

fdisk -l /dev/sdb:

the problem is: grub2 doesn't correctly see my sdb5 partition. i go to command line and do "ls", ls says:
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:

hdparm -I /dev/sdb:

fdisk - x - p:

fdisk - x - d:

lshw:

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>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 26 Mar 2010 10:30:57 PM UTCphcoderStatusNone=>Invalid
      Open/ClosedOpen=>Closed
    Sun 21 Mar 2010 07:02:22 PM UTCdimas000Carbon-Copy-=>Added -unavailable-

    Back to the top


    Powered by Savane 3.1-cleanup1