Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61724 - mindi fails to mount vfat when creating boot disks
Summary: mindi fails to mount vfat when creating boot disks
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Jay Pfeifer (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-25 21:12 UTC by David Snider
Modified: 2005-07-18 04:24 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 David Snider 2004-08-25 21:12:41 UTC
I emerged mindi and mondo.  When attempting to run mindi, I say n to "Use your own kernel".  N to Lilo instead of Syslinux.  However, if I modify the following line 2036

2036:    mount -t vfat -o loop $imagefile $mountpoint || LogIt "Cannot mount (PBDI)\n\n"

to

mount -t msdos -o loop $imagefile $mountpoint || LogIt "Cannot mount (PBDI)\n\n" this completes successfully.  Did the vfat file system type change to msdos with the 2.6.8 kernel?

Here is the output after the change...

Your mountlist will look like this:-4 directories.
        DEVICE          MOUNTPOINT      FORMAT          SIZE (MB)
        /dev/hda1       /boot           reiserfs            101
        /dev/hda2       swap            swap                251
        /dev/hda3       /               reiserfs           2870
        /dev/hda4       /data           reiserfs         236142
Tarring and zipping the groups...............                   Done.
Creating data disk #1...#2...#3...#4...                         Done.
... 1722KB boot disk was created OK.....................        Done.
Making 2880KB boot disk...........................mkfs.vfat 2.10 (22 Sep 2003)
... 2880KB boot disk was created OK                             Done.
In the directory '/root/images/mindi' you will find the images:-
mindi-bootroot.1722.img mindi-bootroot.2880.img    mindi-data-1.img    mindi-data-2.img    mindi-data-3.img    mindi-data-4.img
Would you like to create boot+data floppy disks now (y/n) ?n
Shall I make a bootable CD image? (y/n) y
NB: Mindi's bootable CD always uses isolinux.
For a bootable CD w/LILO, please use Mondo.
Finished.

Boot and data disk images were created.


Reproducible: Always
Steps to Reproduce:
1. Run Mindi
2. Say N to "Use your own kernel"
3. Say N to "Use Lilo instead of Syslinux"
4. Watch error

Actual Results:  
Software errored with:
Your mountlist will look like this:-
        DEVICE          MOUNTPOINT      FORMAT          SIZE (MB)
        /dev/hda1       /boot           reiserfs            101
        /dev/hda2       swap            swap                251
        /dev/hda3       /               reiserfs           2870
        /dev/hda4       /data           reiserfs         236142
Tarring and zipping the groups...............                   Done.
Creating data disk #1...#2...#3...#4...                         Done.
Making 1722KB boot disk...........................mount: wrong fs type, bad
option, bad superblock on /dev/loop1,
       or too many mounted file systems
       (could this be the IDE device where you in fact use
       ide-scsi so that sr0 or sda or so is needed?)
Cannot mount (PBDI)


umount: /tmp/mindilinux/4248/mountpoint.4248: not mounted
Fatal error. Cannot unmount mountpoint (/tmp/mindilinux/4248/mountpoint.4248)

Please e-mail a copy of /tmp/mindi.err.4248.tgz to the mailing list.
See http://www.mondorescue.org for more information.
WE CANNOT HELP unless you enclose that file.


Expected Results:  
Completed creating boot+data disks

Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r0,
2.6.8-gentoo-r1)
=================================================================
System uname: 2.6.8-gentoo-r1 i686 Intel(R) Celeron(R) CPU 2.20GHz
Gentoo Base System version 1.4.16
Autoconf: sys-devel/autoconf-2.59-r3
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo
ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://mirrors.tds.net/gentoo
ftp://mirrors.tds.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY=""
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acpi alsa apm arts avi berkdb cdr crypt cups dga dio directfb divx4linux
dvb dvd encode esd fbcon foomaticdb gdbm gif gnome gpm gtk gtk2 imlib jpeg kde
libg++ libwww lirc mad mikmod mmx motif mozilla mpeg mysql mysqli ncurses nls
nocardbus offensive oggvorbis opengl oss pam pdflib perl png python qt quicktime
readline sdl slang spell sse ssl svg svga tcpd truetype usb videos x86 xinerama
xml2 xmms xosd xv xvid zlib"
Comment 1 David Snider 2004-08-25 22:32:57 UTC
Potentially related article here:

http://seclists.org/lists/linux-kernel/2004/Aug/1606.html
Comment 2 David Snider 2004-09-30 20:36:35 UTC
This should be closed.   

I removed ide-scsi support from the kernel.  The issue went away.   If you look at the error from mount, it actually says that /dev/loop may be used by ide-scsi.   mindi now properly creates filesystems.  And, I can manually mount vfat partitions.  Strange that the two are related.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2005-07-18 04:24:46 UTC
(In reply to comment #2)
> This should be closed.   

Closing a stale bug, since it works for the reporter.