• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Linux Stuff / General Linux questions / Re: Adding to empty fstab on: July 12, 2010, 11:49:50 PM
Hi all again,

ok, I solved this issue by adding a line for / to /etc/fstab. My fstab now looks like this:

Code:
# UNCONFIGURED FSTAB FOR BASE SYSTEM
/dev/mmcblk0p2 / ext3 defaults,noatime 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda1 /mnt ext4 acl,user_xattr 1 2

The system now boots without any fsck errors [yippie ! :p ]

Still leaves the question, why ubuntu doesn't need a line for / in fstab respectively what's wrong with the debian install ?

cheers,
Chris
2  Linux Stuff / General Linux questions / Re: Adding to empty fstab on: July 12, 2010, 11:30:59 PM
Hi everyone,

I just started to play around with debian on my sheevaplug as well and ran into the same problems with fsck at boot.

With an empty /etc/fstab the system starts up without any problems:
Code:
tmpfs /lib/init/rw tmpfs rw,nosuid,mode=0755 0 0
proc /proc proc rw,noexec,nosuid,nodev 0 0
sysfs /sys sysfs rw,noexec,nosuid,nodev 0 0
udev /dev tmpfs rw,mode=0755 0 0
tmpfs /dev/shm tmpfs rw,nosuid,nodev 0 0
devpts /dev/pts devpts rw,noexec,nosuid,gid=5,mode=620 0 0
rootfs / rootfs rw 0 0

Now when I add the following line to /etc/fstab in order to mount my external drive connected to the sheevaplug:
Code:
/dev/sda1 /mnt ext4 acl,user_xattr 1 2

on the next startup I run into an fsck error on the root filesystem:


EXT3 FS on mmcblk0p2, internal journal                                                                                                                                                                       
EXT3-fs: mounted filesystem with writeback data mode.                                                                                                                                                         
VFS: Mounted root (ext3 filesystem) on device 179:2.                                                                                                                                                         
Freeing init memory: 140K                                                                                                                                                                                     
INIT: version 2.86 booting                                                                                                                                                                                   
Starting the hotplug events dispatcher: udevd.                                                                                                                                                               
Synthesizing the initial hotplug events...done.                                                                                                                                                               
Waiting for /dev to be fully populated...done.                                                                                                                                                               
Activating swap...done.                                                                                                                                                                                       
Checking root file system...fsck from util-linux-ng 2.16.2
Usage: fsck.ext4 [-panyrcdfvtDFV] [-b superblock] [-B blocksize]
                [-I inode_buffer_blocks] [-P process_inode_size]
                [-l|-L bad_blocks_file] [-C fd] [-j external_journal]
                [-E extended-options] device

Emergency help:
 -p                   Automatic repair (no questions)
 -n                   Make no changes to the filesystem
 -y                   Assume "yes" to all questions
 -c                   Check for bad blocks and add them to the badblock list
 -f                   Force checking even if filesystem is marked clean
 -v                   Be verbose
 -b superblock        Use alternative superblock
 -B blocksize         Force blocksize when looking for superblock
 -j external_journal  Set location of the external journal
 -l bad_blocks_file   Add to badblocks list
 -L bad_blocks_file   Set badblocks list
fsck died with exit status 16
failed (code 16).
An automatic file system check (fsck) of the root filesystem failed. A manual fsck must be performed, then the system restarted. The fsck should be performed in maintenance mode with the root filesystem mo!
The root filesystem is currently mounted in read-only mode. A maintenance shell will now be started. After performing system maintenance, press CONTROL-D to terminate the maintenance shell and restart the .
Give root password for maintenance
(or type Control-D to continue):


I don't have the fsck problem on boot, when I boot the system from an sd-card with ubuntu.

What is different with debian ? Am I missing something ?

Many thanks in advance !

cheers,
Chris

Pages: [1]