Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278356 - sys-apps/baselayout-1: init.d/checkfs fails when using sys-fs/ntfsprogs-2.0.0-r1
Summary: sys-apps/baselayout-1: init.d/checkfs fails when using sys-fs/ntfsprogs-2.0.0-r1
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: AMD64 Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-19 22:09 UTC by Christoph Gritschenberger
Modified: 2009-10-11 00:54 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 Christoph Gritschenberger 2009-07-19 22:09:20 UTC
ntfsprogs' ntfsck exits with code 16 (Usage or syntax error) when using the -a option

ntfsck -a /dev/sda1

the init.d/checkfs-script uses the -a parameter for the filesystem-check and causes an error during the boot (asking for manual fixes).

Workaround: 
rm /sbin/fsck.ntfs
(remove the symlink)

Reproducible: Always

Steps to Reproduce:
1. setup an ntfs-partition (in my case /dev/sda7). 
2. add it to fstab:
/dev/sda7                          /media/Data      ntfs     defaults,nls=utf8,umask=007,gid=46,force	 0 1
3. reboot the system

Actual Results:  
the boot-process claims that filesystem check has failed and asks for manual repairs.

Expected Results:  
boot succesfully

emerge --info

Portage 2.1.6.13 (default/linux/amd64/2008.0, gcc-4.3.2, glibc-2.9_p20081201-r2, 2.6.30-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.30-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Duo_CPU_T9400_@_2.53GHz-with-glibc2.2.5
Timestamp of tree: Tue, 14 Jul 2009 21:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 2.1.8-r1
dev-lang/python:     2.5.4-r3
dev-util/ccache:     2.4-r7
dev-util/cmake:      2.6.4
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -msse4.1"
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/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=core2 -O2 -pipe -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo.lagis.at/ ftp://gentoo.lagis.at/ "
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US en_GB de de_DE"
MAKEOPTS="-j5"
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"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 autoipd automount avahi bash-completion berkdb bzip2 cairo cdda cddb cdr cli cracklib crypt cups dbus device-mapper dhcpcd dri dvd dvdnav dvdr encode exif fat ffmpeg firefox flac fontconfig fortran freetype gdbm gif gimp git gnome gnome-keyring gnutls gpm gstreamer gtk hal iconv id3tag ieee1394 ipv6 isdnlog java java6 jpeg lame laptop ldap libass libnotify mad matroska midi mmx mp2 mp3 mpeg mudflap multilib nautilus ncurses networkmanager nls nptl nptlonly nsplugin ntfs ogg opengl openmp openssl pam pcre pdf perl png ppds pppd python quicktime readline reflection restrict-javascript samba session skins spell spl sqlite sse sse2 ssl stream subversion svg synaptics sysfs syslog tcpd threads tiff truetype unicode vorbis x264 xine xinerama xorg xscreensaver xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 authn_alias authn_anon 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 deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US en_GB de de_DE" USERLAND="GNU" VIDEO_CARDS="nvidia fbdev vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Christoph Gritschenberger 2009-07-24 00:22:57 UTC
I created the symlink /sbin/mount.ntfs -> /usr/sbin/ntfsmount by hand, so the fstab-line is valid.

The ntfsck-program seems to be unfinished http://www.linux-ntfs.org/doku.php?id=ntfsck
Comment 2 SpanKY gentoo-dev 2009-10-11 00:54:07 UTC
yes, ntfsck isnt complete enough to use.  dont set the sixth field of your fstab to non-zero.