Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[UN-SOLVED] Issues with FAT32 FS on Reboot
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Thu Jan 09, 2014 9:37 pm    Post subject: [UN-SOLVED] Issues with FAT32 FS on Reboot Reply with quote

I recently completed a build on my new-ish HP machine (compaq elite 8300 sff). I am planning on restoring the HP_TOOLS partition I destroyed when changing the disk over to a GPT volume from an HP softpaq. This is my first EFI build. I boot with rEFInd.

Here is my disk layout:

Code:
# parted /dev/sda
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit mib
(parted) p
Model: ATA ST1000DM003-1CH1 (scsi)
Disk /dev/sda: 953870MiB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start      End        Size       File system     Name      Flags
 1      1.00MiB    513MiB     512MiB     fat32           ESI       boot
 2      513MiB     1025MiB    512MiB     ext4            boot
 3      1025MiB    17409MiB   16384MiB   linux-swap(v1)  swap
 4      17409MiB   148481MiB  131072MiB  ext4            rootfs
 5      148481MiB  181249MiB  32768MiB   jfs             var
 6      181249MiB  476935MiB  295686MiB  jfs             home
 7      476935MiB  493319MiB  16384MiB   jfs             tmp
 8      493319MiB  951821MiB  458502MiB  jfs             extra
 9      951821MiB  953869MiB  2048MiB    fat32           HP_TOOLS


And my /etc/fstab (currently have fsck disabled on /dev/sda9 so that I can manually run it for testing purposes):

Code:

# cat /etc/fstab
# /etc/fstab: static file system information.
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed); notail increases performance of ReiserFS (at the expense of storage
# efficiency).  It's safe to drop the noatime options if you want and to
# switch between notail / tail freely.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# See the manpage fstab(5) for more information.
#

# <fs>              <mountpoint>    <type>  <opts>                                         <dump/pass>

#NOTE:IfyourBOOTpartitionisReiserFS,addthenotailoptiontoopts.
PARTLABEL=rootfs    /               ext4    defaults,noatime,nodiratime                     0 1
PARTLABEL=swap      none            swap    sw                                              0 0
PARTLABEL=boot      /boot           ext4    defaults,noatime,nodiratime,nosuid              0 2
PARTLABEL=ESI       /boot/efi       vfat    defaults,noatime,nodiratime,utf8=true,noauto    0 2
PARTLABEL=var       /var            jfs     defaults,noatime,nodiratime                     0 2
PARTLABEL=home      /home           jfs     defaults,noatime,nodiratime                     0 2
PARTLABEL=tmp       /tmp            jfs     defaults,noatime,nodiratime,nodev,nosuid        0 2

#Donotautomount
PARTLABEL=extra     /mnt/extra      jfs     defaults,noatime,nodiratime,noauto              0 0
PARTLABEL=HP_TOOLS  /mnt/hptools    vfat    defaults,noatime,nodiratime,utf8=true,noauto    0 0

#Devices
/dev/cdrom          /mnt/cdrom      auto    user,noauto,exec,ro                             0 0


I have unmasked dosfstools 3.0.24 (supposedly the free cluster bug with EFI partitions was fixed in 3.0.23), reformatted my vfat partitions, and I still get the error. I have tried creating dummy files on /dev/sda9 and I still get the errors.

I have attempted creating and making files and running fsck along the way after the first failed fsck with no issue. This only happens on reboot (this one taken from rc.log; I can reproduce on clean reboot in a terminal running fsck.vfat manually with auto-fsck disabled):

Code:

fsck.fat 3.0.24 (2013-11-23)
Free cluster summary wrong (523185 vs. really 523187)
  Auto-correcting.
Performing changes.
/dev/sda9: 0 files, 1/523188 clusters


I have tried different sized partitions as well to no avail.

I am completely out of ideas of how to further debug this issue. I will attempt to complete my restore of HP_TOOLS and see if there is a disk check utility in there. However, given that this only happens on reboot, I am half wondering if HP's PXE is somehow messing with the file system.

The only interesting thing I noticed is I just labeled the disk, and saw this:

Code:

# fatlabel /dev/sda9 HP_TOOLS
# fsck.vfat /dev/sda9
fsck.fat 3.0.24 (2013-11-23)
Orphaned long file name part "å½ä½ä±ââ ile.èä©t"
1: Delete.
2: Leave it.
? 1
Leaving filesystem unchanged.
/dev/sda9: 0 files, 1/523188 clusters


I forced it:

Code:

# fsck.vfat -a /dev/sda9
fsck.fat 3.0.24 (2013-11-23)
Orphaned long file name part "å½ä½ä±ââ ile.èä©t"
  Auto-deleting.
Performing changes.
/dev/sda9: 0 files, 1/523188 clusters


Code:

# fsck.vfat /dev/sda9
fsck.fat 3.0.24 (2013-11-23)
/dev/sda9: 0 files, 1/523188 clusters


After another reboot, the original issue returns:

Code:

# fsck.vfat -v -V -a /dev/sda9
fsck.fat 3.0.24 (2013-11-23)
fsck.fat 3.0.24 (2013-11-23)
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
       512 bytes per logical sector
      4096 bytes per cluster
        32 reserved sectors
First FAT starts at byte 16384 (sector 32)
         2 FATs, 32 bit entries
   2093056 bytes per FAT (= 4088 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 4202496 (sector 8208)
    523188 data clusters (2142978048 bytes)
63 sectors/track, 255 heads
1949329408 hidden sectors
   4193712 sectors total
Starting check/repair pass.
Reclaiming unconnected clusters.
Checking free cluster summary.
Free cluster summary wrong (523185 vs. really 523187)
  Auto-correcting.
Starting verification pass.
Checking for unused clusters.
Performing changes.
/dev/sda9: 0 files, 1/523188 clusters


At least the disk label survived...

Code:

# blkid /dev/sda9
/dev/sda9: LABEL="HP_TOOLS" UUID="C029-3E85" TYPE="vfat" PARTLABEL="HP_TOOLS" PARTUUID="01cf4fd9-5951-4b83-bc7e-d2a87bb4ca3d"


One final note. I have tried putting ext4 on this partition and rebooting; no disk errors detected.

Any ideas?

Relevant .config entries:

Code:

# egrep -i 'dos|fat' /usr/src/linux/.config
CONFIG_MSDOS_PARTITION=y
# DOS/FAT/NT Filesystems
CONFIG_FAT_FS=y
# CONFIG_MSDOS_FS is not set
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"


Kernel Info:

Code:
# uname -r -v
3.10.25-gentoo #14 SMP Thu Jan 9 13:24:13 EST 2014


Last edited by RazielFMX on Tue Jan 14, 2014 10:21 pm; edited 2 times in total
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Fri Jan 10, 2014 3:11 pm    Post subject: Reply with quote

After jumping through a few hoops I was able to get a fully functional UEFI bootable HP_TOOLS setup on /dev/sda9, which somehow fixed the problem. I imagine the firmware saw the partition, mounted it and panicked when it was empty, causing an unclean dismount. Now that the expected software is there, the firmware is happy again.
Back to top
View user's profile Send private message
RazielFMX
l33t
l33t


Joined: 23 Apr 2005
Posts: 835
Location: NY, USA

PostPosted: Tue Jan 14, 2014 10:22 pm    Post subject: Reply with quote

Well, I had forgotten to re-enable auto fsck on /dev/sda9. The problem still exists:

Code:

# fsck.vfat /dev/sda9
fsck.fat 3.0.24 (2013-11-23)
/Hewlett-Packard/HP Support Framework/..
  Start (0) does not point to .. (3)
/Hewlett-Packard/HP Support Framework/Logs/..
  Start (0) does not point to .. (262175)
Free cluster summary wrong (519396 vs. really 519398)
1) Correct
2) Don't correct
?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum