[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: rootfs on SSD



Hi Florian,

Am Sonntag, 8. Mai 2011 schrieb Florian Ernst:
> Hello Rainer,
> 
> On Sun, May 08, 2011 at 04:14:53PM +0200, Rainer Dorsch wrote:
> > [...]
> > When I now run the mount command, I get all options listed for /home
> > 
> > /dev/sdc2 on /home type ext4 (rw,noatime,discard,data=ordered)
> > 
> > but not for root
> > 
> > rootfs on / type rootfs (rw)
> > 
> > Were the noatime, discard, and data options lost somewhere on the
> > way....? Can I verify that they work?
> 
> Quoting Ted Ts'o from
> 
> <http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=9;bug=616317>:
> | Debian simply doesn't support the mount options for the root file
> | system in /etc/fstab having any effect on how the root file system is
> | mounted.  The root file system is mounted by the kernel, and the mount
> | options used by the kernel are specified by the rootflags= option on
> | the kernel's boot command line.
> 
> See the remainder of the bugreport for a discussion on how to possibly
> remedy that in Debian. As for now, you need to go for kernel command
> line options passed by your bootloader.

That was an extremely useful reply, I was completely unaware of this, thanks a 
lot.

Nevertheless the rootflags do not end up in mount options for rootfs, maybe I 
am doing something wrong, which is obvious for somebody reading...:

I added rootflags to /etc/default/grub and they are showing up during boot

rd@blackbox:~$ cat /proc/cmdline 
BOOT_IMAGE=/boot/vmlinuz-2.6.32-5-686-bigmem 
root=UUID=4a4eb948-2d2b-4188-96ae-76a3776ae69c ro quiet elevator=noop 
rootflags=noatime,discard,data=ordered,errors=remount-ro
rd@blackbox:~$ 

but have no effect on how the root filesystem is mounted (although I did quite 
some experimentation with variations of the above boot line)

rd@blackbox:~$ mount|grep rootfs
rootfs on / type rootfs (rw)
rd@blackbox:~$ 

None of the rootflags options survived!


I am just wondering what I might have missed.

I include /var/log/boot, since it has a suspicious entry 

 findfs: unable to resolve 'UUID="4a4eb948-2d2b-4188-96ae-76a3776ae69c"'

not sure if that is related though.

Clearly, blkid shows that the UUID exists:

blackbox:~# blkid |grep 4a4eb
/dev/sdc1: LABEL="root_ssd" UUID="4a4eb948-2d2b-4188-96ae-76a3776ae69c" 
TYPE="ext4" 
blackbox:~# 

Any insight, what I might do wrong is very welcome. 

Thanks,
Rainer



For reference the entire /var/log/boot

/var/log/boot:
Sun May  8 23:06:58 2011: Setting parameters of disc:  /dev/sda.
Sun May  8 23:06:58 2011:   /dev/sdb.
Sun May  8 23:06:58 2011: findfs: unable to resolve 
'UUID="4a4eb948-2d2b-4188-96ae-76a3776ae69c"'
Sun May  8 23:06:58 2011: Activating swap...done.
Sun May  8 23:06:58 2011: Usage: mountpoint [-q] [-d] [-x] path
Sun May  8 23:06:58 2011: Checking root file system...fsck from util-linux-ng 
2.17.2
Sun May  8 23:06:58 2011: root_ssd: clean, 877728/3055616 files, 
6710669/12207384 blocks
Sun May  8 23:06:58 2011: done.
Sun May  8 23:06:58 2011: Usage: mount -V                 : print version
Sun May  8 23:06:58 2011:        mount -h                 : print this help
Sun May  8 23:06:58 2011:        mount                    : list mounted 
filesystems
Sun May  8 23:06:58 2011:        mount -l                 : idem, including 
volume labels
Sun May  8 23:06:58 2011: So far the informational part. Next the mounting.
Sun May  8 23:06:58 2011: The command is `mount [-t fstype] something 
somewhere'.
Sun May  8 23:06:58 2011: Details found in /etc/fstab may be omitted.
Sun May  8 23:06:58 2011:        mount -a [-t|-O] ...     : mount all stuff 
from /etc/fstab
Sun May  8 23:06:58 2011:        mount device             : mount device at 
the known place
Sun May  8 23:06:58 2011:        mount directory          : mount known device 
here
Sun May  8 23:06:58 2011:        mount -t type dev dir    : ordinary mount 
command
Sun May  8 23:06:58 2011: Note that one does not really mount a device, one 
mounts
Sun May  8 23:06:58 2011: a filesystem (of the given type) found on the device.
Sun May  8 23:06:58 2011: One can also mount an already visible directory tree 
elsewhere:
Sun May  8 23:06:58 2011:        mount --bind olddir newdir
Sun May  8 23:06:58 2011: or move a subtree:
Sun May  8 23:06:58 2011:        mount --move olddir newdir
Sun May  8 23:06:58 2011: One can change the type of mount containing the 
directory dir:
Sun May  8 23:06:58 2011:        mount --make-shared dir
Sun May  8 23:06:58 2011:        mount --make-slave dir
Sun May  8 23:06:58 2011:        mount --make-private dir
Sun May  8 23:06:58 2011:        mount --make-unbindable dir
Sun May  8 23:06:58 2011: One can change the type of all the mounts in a mount 
subtree
Sun May  8 23:06:58 2011: containing the directory dir:
Sun May  8 23:06:58 2011:        mount --make-rshared dir
Sun May  8 23:06:58 2011:        mount --make-rslave dir
Sun May  8 23:06:58 2011:        mount --make-rprivate dir
Sun May  8 23:06:58 2011:        mount --make-runbindable dir
Sun May  8 23:06:58 2011: A device can be given by name, say /dev/hda1 or 
/dev/cdrom,
Sun May  8 23:06:58 2011: or by label, using  -L label  or by uuid, using  -U 
uuid .
Sun May  8 23:06:58 2011: Other options: [-nfFrsvw] [-o options] [-p 
passwdfd].
Sun May  8 23:06:58 2011: For many more details, say  man 8 mount .
Sun May  8 23:06:58 2011: Starting early crypto disks...done.
Sun May  8 23:06:58 2011: Starting remaining crypto disks...done.
Sun May  8 23:06:58 2011: Cleaning up ifupdown....
Sun May  8 23:06:58 2011: Loading kernel modules...done.
Sun May  8 23:06:58 2011: Activating lvm and md swap...done.
Sun May  8 23:06:58 2011: Checking file systems...fsck from util-linux-ng 
2.17.2
Sun May  8 23:06:58 2011: home_ssd: clean, 295008/4276224 files, 
11310957/17097176 blocks (check after next mount)
Sun May  8 23:06:58 2011: backup: clean, 278/14663680 files, 23995714/29304560 
blocks
Sun May  8 23:06:58 2011: home_disk: clean, 553445/12574720 files, 
26918497/50293482 blocks
Sun May  8 23:06:59 2011: opt_disk: clean, 100621/12222464 files, 
6554174/24414775 blocks
Sun May  8 23:06:59 2011: home_exchange: clean, 11/4890624 files, 
352990/19531015 blocks
Sun May  8 23:06:59 2011: done.
Sun May  8 23:06:59 2011: Mounting local filesystems...done.
Sun May  8 23:06:59 2011: Activating swapfile swap...done.
Sun May  8 23:06:59 2011: Cleaning up temporary files....
Sun May  8 23:06:59 2011: Setting kernel variables ...done.
Sun May  8 23:06:59 2011: Setting up 
resolvconf.../etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a 
symbolic link to /etc/resolvconf/run/resolv.conf
Sun May  8 23:06:59 2011: done.
Sun May  8 23:06:59 2011: Setting up networking....
Sun May  8 23:06:59 2011: Configuring network interfaces...done.
Sun May  8 23:06:59 2011: Starting portmap daemon....
Sun May  8 23:06:59 2011: Starting NFS common utilities: statd.
Sun May  8 23:06:59 2011: Cleaning up temporary files....
Sun May  8 23:06:59 2011: Setting up ALSA...done.
Sun May  8 23:06:59 2011: Setting console screen modes and fonts.
Sun May  8 23:06:59 2011: ^[]R^[[9;30]^[[14;30]Running 0dns-down to make sure 
resolv.conf is ok...done.
Sun May  8 23:07:00 2011: Setting sensors limits.
Sun May  8 23:07:00 2011: INIT: Entering runlevel: 2
Sun May  8 23:07:00 2011: Using makefile-style concurrent boot in runlevel 2.
Sun May  8 23:07:00 2011: Not starting lastfmproxy, see 
/etc/default/lastfmproxy
Sun May  8 23:07:00 2011: Setting sysfs variables....
Sun May  8 23:07:00 2011: Starting portmap daemon...Already running..
Sun May  8 23:07:00 2011: Starting NFS common utilities: statd.
Sun May  8 23:07:00 2011: Starting system log daemon....
Sun May  8 23:07:00 2011: Starting anac(h)ronistic cron: anacron.
Sun May  8 23:07:00 2011: Starting DirMngr: dirmngr.
Sun May  8 23:07:00 2011: Starting system message bus: dbus.
Sun May  8 23:07:00 2011: Starting ACPI services....
Sun May  8 23:07:01 2011: Starting web server: apache2apache2: 
apr_sockaddr_info_get() failed for blackbox
Sun May  8 23:07:01 2011: apache2: Could not reliably determine the server's 
fully qualified domain name, using 127.0.0.1 for ServerName
Sun May  8 23:07:01 2011: .
Sun May  8 23:07:01 2011: Starting deferred execution scheduler: atd.
Sun May  8 23:07:01 2011: Starting Courier authentication services: 
authdaemond.
Sun May  8 23:07:01 2011: Starting Courier IMAP server: imapd.
Sun May  8 23:07:01 2011: Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Sun May  8 23:07:01 2011: Starting bluetooth: bluetoothd.
Sun May  8 23:07:01 2011: Starting Hardware abstraction layer: hald.
Sun May  8 23:07:01 2011: saned disabled; edit /etc/default/saned
Sun May  8 23:07:01 2011: Starting kernel log daemon....
Sun May  8 23:07:01 2011: Starting internet superserver: inetd.
Sun May  8 23:07:01 2011: speech-dispatcher disabled; edit 
/etc/default/speech-dispatcher
Sun May  8 23:07:01 2011: Starting NTP server: ntpd.
Sun May  8 23:07:01 2011: Starting K Display Manager: kdm.
Sun May  8 23:07:01 2011: Starting periodic command scheduler: cron.
Sun May  8 23:07:01 2011: Starting OpenBSD Secure Shell server: sshd.
Sun May  8 23:07:01 2011: Starting Common Unix Printing System: cupsd.
Sun May  8 23:07:01 2011: Starting Scratchbox: binfmt_misc, mount.
Sun May  8 23:07:01 2011: Starting MTA: exim4.

-- 
Rainer Dorsch
Lärchenstr. 6
D-72135 Dettenhausen
07157-734133
email: rdorsch@web.de
jabber: rdorsch@jabber.org
GPG Fingerprint: 5966 C54C 2B3C 42CC 1F4F  8F59 E3A8 C538 7519 141E
Full GPG key: http://pgp.mit.edu/

Attachment: signature.asc
Description: This is a digitally signed message part.


Reply to: