Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286106 - sys-boot/grub-0.97-r9 does not work with sector size >512 Bytes
Summary: sys-boot/grub-0.97-r9 does not work with sector size >512 Bytes
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 286107 286109 286110 286112 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-09-23 16:09 UTC by Juergen Rose
Modified: 2014-06-04 13:55 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2009-09-23 16:09:37 UTC
I have three harddisk at my labtop, all with ext2 and ext3 filesystems, one internal and two USB. I would like to install grub in the bootsector of an USB harddisk. If I plugin the USB disk the partions are automatically recognized and mounted, but grub does not recognize the filesystems at hd2:
grub> root (hd0,
 Possible partitions are:
   Partition num: 0,  Filesystem type unknown, partition type 0xde
   Partition num: 1,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 2,  Filesystem type is fat, partition type 0x1c

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

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


root@guenther:/home/guenther(7)# df -T
Dateisystem   Typ   1K‐Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/sda2     ext3    54591040  30614788  21158452  60% /
varrun       tmpfs      512380        92    512288   1% /var/run
varlock      tmpfs      512380         0    512380   0% /var/lock
udev         tmpfs      512380        76    512304   1% /dev
devshm       tmpfs      512380        52    512328   1% /dev/shm
lrm          tmpfs      512380      1852    510528   1% /lib/modules/2.6.24-24-lpia/volatile
/dev/sdb1     ext2      132206     15483    109897  13% /media/disk
/dev/sdb3     ext3    74480096  12369932  58356580  18% /media/disk-1
/dev/sde1     ext2     1083488     15312   1013568   2% /media/disk-2
/dev/sde3     ext3   109210020  25615564  78090588  25% /media/disk-3


Any idea?


Reproducible: Always
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-23 16:57:30 UTC
*** Bug 286107 has been marked as a duplicate of this bug. ***
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-23 16:57:35 UTC
*** Bug 286109 has been marked as a duplicate of this bug. ***
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-23 16:57:39 UTC
*** Bug 286110 has been marked as a duplicate of this bug. ***
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2009-09-23 16:57:43 UTC
*** Bug 286112 has been marked as a duplicate of this bug. ***
Comment 5 Juergen Rose 2009-09-24 08:48:05 UTC
Sorry for the different version of this bugs. When I entered the bug, bugs.gentoo.org complains about "error with exec -T", so I tried once more.
There is still a further difference between the disks with recognized filesystems and the disk where the filesystem is not recognized. The first disks have sector size of 512 bytes, where the latter has 4096 as reported by parted or fdisk. 
root@guenther:/home/guenther(21)# fdisk -l /dev/sdb

Platte /dev/sdb: 80.0 GByte, 80026361344 Byte
255 Köpfe, 63 Sektoren/Spuren, 9729 Zylinder
Einheiten = Zylinder von 16065 × 512 = 8225280 Bytes
Disk identifier: 0xad0cca3d

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sdb1               1          17      136521   83  Linux
/dev/sdb2              18         383     2939895   82  Linux Swap / Solaris
/dev/sdb3             384        9729    75071745   83  Linux
root@guenther:/home/guenther(22)# fdisk -l /dev/sde
Hinweis: Die Sektorgröße ist 4096 (nicht 512)

Platte /dev/sde: 120.0 GByte, 120034123776 Byte
255 Köpfe, 63 Sektoren/Spuren, 1824 Zylinder
Einheiten = Zylinder von 16065 × 4096 = 65802240 Bytes
Disk identifier: 0xe0c64326

   Gerät  boot.     Anfang        Ende     Blöcke   Id  System
/dev/sde1               1          17     1092168   83  Linux
/dev/sde2              18         111     6040440   82  Linux Swap / Solaris
/dev/sde3             112        1824   110077380   83  Linux
root@guenther:/home/guenther(23)# parted /dev/sde
Warnung: Device /dev/sde has a logical sector size of 4096.  Not all parts of
GNU Parted support this at the moment, and the working code is HIGHLY
EXPERIMENTAL.

Could this be the reason for grub issue?
Comment 6 Juergen Rose 2009-09-24 15:44:39 UTC
I am now convinced that the sector size of 4096 Bytes is the reason that grub is not working with my new harddisk.
See also http://savannah.gnu.org/bugs/?22138

Regards
Comment 7 Wormo (RETIRED) gentoo-dev 2009-10-03 23:45:07 UTC
Please post your 'emerge --info' output, and then this bug can be assigned to gentoo base-system team.
Comment 8 Juergen Rose 2009-10-03 23:50:41 UTC
root@lynx:/root(4)# emerge --info
Portage 2.1.6.13 (default/linux/amd64/2008.0/desktop, gcc-4.4.1, glibc-2.10.1-r0, 2.6.31-gentoo-r1 x86_64)
=================================================================
System uname: Linux-2.6.31-gentoo-r1-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T8300_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Sat, 03 Oct 2009 08:00:01 +0000
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.3, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.19.1-r1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
FFLAGS="-march=nocona -O2 -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/n4g /usr/local/portage/layman/dotnet /usr/local/portage/layman/science /usr/local/portage/layman/java-overlay /usr/local/portage/layman/suka /usr/local/portage/layman/zugaina /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi administrator afs aiglx alsa amd64 amrr ao aotuv apache2 asf aspell atlas auctex audacious audiofile automount bash-completion beagle berkdb bjam blas bluetooth bonobo boo boost branding bzip2 c++ cairo cardbus cdda cddb cdf cdio cdparanoia cdr cgi chm cli consolekit corba cracklib cran crypt cups curl cxx daap dbus device-mapper dga dia divx djvu dlloader dmi doc dri ds3490 dts dv dvb dvd dvdr dvi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo examples exif expat extra extras fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx fuse galago garmin gd gdal gdbm geos gif gimp gimpprint ginac glade glib glitz gml gmp gnokii gnome gnome-keyring gnuplot gnutls gphoto2 gpm graphics graphviz gs gsl gsm gstreamer gtk guile hal hardened harness hddtemp hdf hdf5 hlapi http httpd hvm iconv icq icu id3 ide imagemagick imap innodb ipod ipv6 irda irmc isdnlog ithreads jabber java java5 java6 jbig john jpeg jpeg2k kde kde4 kerberos kexi keyring kvm ladspa lame lapack laptop latex lcms ldap libffi libgda libnotify libsamplerate lirc lua lzo lzw mad maildir mailwrapper math matroska mikmod mmx mmxext mng mod modules mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mplayer mtp mudflap multilib musicbrainz mysql mysqli nautilus ncurses neXt netcdf netpbm network networkmanager nfs nls nntp nptl nptlonly nsplugin ntfs ntp numarray numeric nvidia obex objc ocaml octave odbc ogdi ogg ole openexr opengl openmp pae pam pcre pda pdf perl pipechan plotutils plugins png podcast policykit posix postgres postscript ppds pppd preview-latex proj projectx pstricks pulseaudio python qhull qt3 qt3support qt4 quicktime readline reflection reiserfs rhythmbox rle rpc rrdcgi rrdtool samba sasl science sdl server session slang slp smp sndfile snmp soup sox speex spell spl sql sqlite sse sse2 ssl startup-notification stlport subtitles subversion suexec svg sysfs szip t1lib tcl tcpd tex theora thinkpad threads thunar thunderbird tidy tiff tk tntc truetype unicode usb userlocales utempter v4l2 vorbis wav webdav webdav-serf webkit wifi wmf wxwidgets x264 xattr xcb xemacs xext xine xml xmlreader xmlrpc xorg xpm xulrunner xv xvid xvmc zlib zvbi" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" DVB_CARDS="usb-wt220u" ELIBC="glibc" INPUT_DEVICES="keyboard mouse                 synaptics               " KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" NETBEANS_MODULES="ide websvccommon nb harness apisupport groovy gsf j2ee java xml" USERLAND="GNU" VIDEO_CARDS="nv vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 9 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2010-06-25 00:28:28 UTC
I think this would need major changes to fix.
Comment 10 Sergey Popov gentoo-dev 2014-06-04 13:55:00 UTC
Not reproduceable with 4K sectors hard drives and sys-boot/grub-0.97-r12.

Closing this as OBSOLETE