bugGNU GRUB - Bugs: bug #22138, GRUB doesn't support 4K sectors

 
 

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

bug #22138: GRUB doesn't support 4K sectors

Submitter:  John Klug <klugja>
Submitted:  Sun 27 Jan 2008 04:47:31 PM UTC
   
 
Category:  Documentation Severity:  Major
Priority:  5 - Normal Item Group:  None
Status:  Fixed Privacy:  Public
Assigned to:  None Originator Name:  John Klug
Open/Closed:  Closed Release:  1.98
Release:  1.95 Reproducibility:  None
Planned Release:  None

Thu 21 Aug 2008 07:17:15 PM UTC, comment #2: 

This report is now half a year old, things are changing fast so please try current SVN

Felix Zielcke <fzielcke>
Group Member
Wed 30 Jan 2008 10:09:22 PM UTC, comment #1: 

1.95 is quite old.  Please could you check if CVS still has this problem?

Robert Millan <robertmh>
Group administrator
Sun 27 Jan 2008 04:47:31 PM UTC, original submission:  

As far as I can tell no level of grub (0.97 included) will work with logical 2048 byte sector size with USB.  Shouldn't this be documented as a limitation?

I have two 2GB USB flash drives.  One has 512 byte sector size, the other has 2048 byte sector sizes.

Here they were enumerated as /dev/sde (2048) and /dev/sdf (512):

# grub-install /dev/sdf
Installation finished. No error reported.
This is the contents of the device map /boot/grub/device.map.
Check if this is correct or not. If any of the lines is incorrect,
fix it and re-run the script `grub-install'.

(hd0)   /dev/sde
(hd1)   /dev/sdf
(chroot) livecd grub-1.95 # umount /dev/sdf1
(chroot) livecd grub-1.95 # mount /dev/sde1 /boot
(chroot) livecd grub-1.95 # grub-install /dev/sde
cannot find a GRUB drive for /dev/sde1.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.

The OS does not need any special module to read the drive.

Here is what parted says about the drive that fails with grub (I have tried ext2, FAT32, and reiserfs):

# parted /dev/sde unit co print unit s print
Warning: Device /dev/sde has a logical sector size of 2048.  Not all parts of
GNU Parted support this at the moment, and the working code is HIGHLY
EXPERIMENTAL.

Model: CBM Flash Disk (scsi)
Disk /dev/sde: 2041MB
Sector size (logical/physical): 2048B/512B
Partition Table: msdos

Number  Start  End  Size  Type  File system  Flags

Model: CBM Flash Disk (scsi)
Disk /dev/sde: 996607s
Sector size (logical/physical): 2048B/512B
Partition Table: msdos


# parted /dev/sdf1 unit co print unit s print
Model: Unknown (unknown)
Disk /dev/sdf1: 33.6MB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0.00B  33.6MB  33.6MB  ext2

Model: Unknown (unknown)
Disk /dev/sdf1: 65535s
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number  Start  End     Size    File system  Flags
 1      0s     65534s  65535s  ext2

John Klug <klugja>

 

(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 (Updated the item)
  • -email is unavailable- added by fzielcke (Posted a comment)
  • -email is unavailable- added by robertmh (Posted a comment)
  • -email is unavailable- added by klugja (Submitted the item)
  • -email is unavailable- added by klugja (grub partition size limitation undocumented)
  •  

    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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2011-06-23 phcoder StatusNone Fixed
        Open/ClosedOpen Closed
    2010-10-16 phcoder ReleaseNone 1.98
        SummaryGRUB partition size limitation undocumented GRUB doesn't support 4K sectors
    2008-01-27 klugja Carbon-Copy- Added -email is unavailable-

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code