FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 05-08-2011, 03:17 PM
Florian Ernst
 
Default rootfs on SSD

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.

Cheers,
Flo


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 20110508151754.GB6072@fernst.no-ip.org">http://lists.debian.org/20110508151754.GB6072@fernst.no-ip.org
 
Old 05-08-2011, 09:23 PM
Rainer Dorsch
 
Default 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=remo unt-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/
 
Old 05-09-2011, 07:18 AM
Andrei Popescu
 
Default rootfs on SSD

On Du, 08 mai 11, 23:23:52, Rainer Dorsch wrote:
>
> rd@blackbox:~$ mount|grep rootfs
> rootfs on / type rootfs (rw)
> rd@blackbox:~$

I don't have any 'rootfs' in the output of mount, instead I have this:

/dev/sda6 on / type ext3 (rw,noatime,errors=remount-ro,commit=0)

I have a feeling there's more to your setup that is missing here. Could
you please post your complete /etc/fstab and full output of 'mount'?

Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
 
Old 05-09-2011, 04:57 PM
Thilo Six
 
Default rootfs on SSD

Andrei Popescu wrote the following on 09.05.2011 09:18

>> rd@blackbox:~$ mount|grep rootfs
>> rootfs on / type rootfs (rw)
>> rd@blackbox:~$
>
> I don't have any 'rootfs' in the output of mount, instead I have this:
>
> /dev/sda6 on / type ext3 (rw,noatime,errors=remount-ro,commit=0)
>
> I have a feeling there's more to your setup that is missing here. Could
> you please post your complete /etc/fstab and full output of 'mount'?
>
> Regards,
> Andrei

and the content of '/boot/grub/device.map'

--
bye Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: iq96dt$va1$1@dough.gmane.org">http://lists.debian.org/iq96dt$va1$1@dough.gmane.org
 
Old 05-11-2011, 10:05 AM
Rainer Dorsch
 
Default rootfs on SSD

Am Montag, 9. Mai 2011 schrieb Thilo Six:
> Andrei Popescu wrote the following on 09.05.2011 09:18
>
> >> rd@blackbox:~$ mount|grep rootfs
> >> rootfs on / type rootfs (rw)
> >> rd@blackbox:~$
> >
> > I don't have any 'rootfs' in the output of mount, instead I have this:
> >
> > /dev/sda6 on / type ext3 (rw,noatime,errors=remount-ro,commit=0)
> >
> > I have a feeling there's more to your setup that is missing here. Could
> > you please post your complete /etc/fstab and full output of 'mount'?
> >
> > Regards,
> > Andrei
>
> and the content of '/boot/grub/device.map'

Thank you for your replies.

Maybe the /boot/grub/device.map is interesting, because the SSD (sdc) is
missing in there (!):

blackbox:~# cat /boot/grub/device.map
(hd0) /dev/disk/by-id/ata-ST3120023A_3KA1BNGQ
(hd1) /dev/disk/by-id/ata-SAMSUNG_HD501LJ_S0MUJ1FPB79563
blackbox:~#

How is the device.map file updated? By whom?

The information Andrei asked for is also not fully conclusive for me in
particular in conjunction with the Ted Tso's bug report
http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=9;bug=616317 as pointed out
by Florian [the full data are appended]:

I tested three setups:

1) Setup: rootflags and UUID fstab entry (the one I had before):
Result: no configured options for root filesystem

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=remo unt-ro
rd@blackbox:~$

from /etc/fstab:
UUID="4a4eb948-2d2b-4188-96ae-76a3776ae69c" / ext4
noatime,discard,data=ordered,errors=remount-ro 0 1

rd@blackbox:~$ mount
rootfs on / type rootfs (rw)
[...]

2) Setup: rootflags and /dev/... fstab entry
Result: root filesystem gets configured options
(in addition the findfs issue goes away, I posted at
http://lists.debian.org/debian-user/2011/05/msg00544.html )

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=remo unt-ro

From /etc/fstab:
/dev/disk/by-uuid/4a4eb948-2d2b-4188-96ae-76a3776ae69c /
ext4 noatime,discard,data=ordered,errors=remount-ro 0 1


rd@blackbox:~$ mount
/dev/sdc1 on / type ext4 (rw,noatime,discard,data=ordered,errors=remount-ro)

3) Setup: no rootfsflags and /dev/... fstab entry
Result: root filesystem gets configured options

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

from /etc/fstab:
/dev/disk/by-uuid/4a4eb948-2d2b-4188-96ae-76a3776ae69c /
ext4 noatime,discard,data=ordered,errors=remount-ro 0 1

rd@blackbox:~$ mount
/dev/sdc1 on / type ext4 (rw,noatime,discard,data=ordered,errors=remount-ro)


The result of the third configuration (and to some extend also the first
configuration) is unexpected for me in the bug report from Ted Tso:

"[...] 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. [...]"

Does anybody understand how both, my data and Ted's report make sense?

Can we be sure that the output of the mount command reflects the system state
(or does it even display wrong information in some configurations I did)?

Many thanks,
Rainer


Full outputs:

### rootflags and UUID fstag entry
======================
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=remo unt-ro
rd@blackbox:~$ mount
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
rootfs on / type rootfs (rw)
/dev/sdb7 on /mnt/disk/home type ext3 (rw)
/dev/sdc2 on /home type ext4 (rw,noatime,discard,data=ordered)
/dev/sdb6 on /mnt/disk/opt type ext3 (rw)
/dev/sdb8 on /mnt/disk/exchange type ext3 (rw)
tmpfs on /tmp type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/scratchbox on /scratchbox/users/rd/scratchbox type none (rw,bind)
/tmp on /scratchbox/users/rd/tmp type none (rw,bind)
/proc on /scratchbox/users/rd/proc type none (rw,bind)
/dev on /scratchbox/users/rd/dev type none (rw,bind)
/dev/pts on /scratchbox/users/rd/dev/pts type none (rw,bind)
/dev/shm on /scratchbox/users/rd/dev/shm type none (rw,bind)
/sys on /scratchbox/users/rd/sys type none (rw,bind)
rd@blackbox:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type>
<options> <dump> <pass>
proc /proc proc
defaults 0 0
# use blkid to check uuid/partition correlation
#/dev/sdc1: LABEL="root_ssd" UUID="4a4eb948-2d2b-4188-96ae-76a3776ae69c"
TYPE="ext4"
# the options are not evaluated for /, use rootflags in /boot/grub/grub.cfg
instead and run update-grub
UUID="4a4eb948-2d2b-4188-96ae-76a3776ae69c" / ext4
noatime,discard,data=ordered,errors=remount-ro 0 1
#/dev/disk/by-uuid/4a4eb948-2d2b-4188-96ae-76a3776ae69c /
ext4 noatime,discard,data=ordered,errors=remount-ro 0 1
#/dev/sdb7
UUID="1639d3c2-c359-43d5-9fbf-a6c2648c629d" /mnt/disk/home ext3
defaults 0 2
# /dev/sdc2
UUID="8b30f379-55fe-49e5-97b7-0f6e7f63661a" /home ext4
noatime,discard,data=ordered 0 2
# /dev/sdb6
UUID=43ec8df9-154f-4eb7-9624-8314b2584fa4 /mnt/disk/opt ext3
defaults 0 2
# tmp space
#/dev/sdb8
UUID="401ecac6-7e48-41da-9cc8-a27e30492152" /mnt/disk/exchange ext3
defaults 0 2
#/dev/sdb2
#LABEL=SWAP, UUID=cfac727c-78d3-4c20-8e08-1a599d42a117
LABEL=SWAP none swap
sw 0 0
# backup
UUID=8d9095ca-8aff-44bc-8563-367febcc24bf /backup auto
defaults,noauto 0 2
#/dev/sdb5 /mnt/sdb5 ext3 noauto 0 0
/dev/scd0 /media/cdrom0
udf,iso9660 user,noauto 0 0
# make tmp as ramdisk
tmpfs /tmp tmpfs
nodev,nosuid,noexec,mode=1777 0 0

#paddy
sshfs#rdorsch@paddy:/ /mnt/paddy fuse
user,uid=1000,gid=1000,reconnect,noauto 0 0

#sshfs#rdorsch@192.168.178.22:/ /mnt/paddy fuse
user,uid=1000,gid=1000,reconnect,noauto 0 0

sshfs#rd@boko:/ /mnt/boko fuse user,uid=1000,gid=1000,reconnect,noauto 0 0

sshfs#root@n810:/ /mnt/n810 fuse user,uid=1000,gid=1000,reconnect,noauto 0
0
sshfs#user@n900:/ /mnt/n900 fuse user,uid=1000,gid=1000,reconnect,noauto 0
0
rd@blackbox:~$



### rootflags and /dev/ fstab entry
=====================
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=remo unt-ro
rd@blackbox:~$ mount
/dev/sdc1 on / type ext4 (rw,noatime,discard,data=ordered,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sdb7 on /mnt/disk/home type ext3 (rw)
/dev/sdc2 on /home type ext4 (rw,noatime,discard,data=ordered)
/dev/sdb6 on /mnt/disk/opt type ext3 (rw)
/dev/sdb8 on /mnt/disk/exchange type ext3 (rw)
tmpfs on /tmp type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/scratchbox on /scratchbox/users/rd/scratchbox type none (rw,bind)
/tmp on /scratchbox/users/rd/tmp type none (rw,bind)
/proc on /scratchbox/users/rd/proc type none (rw,bind)
/dev on /scratchbox/users/rd/dev type none (rw,bind)
/dev/pts on /scratchbox/users/rd/dev/pts type none (rw,bind)
/dev/shm on /scratchbox/users/rd/dev/shm type none (rw,bind)
/sys on /scratchbox/users/rd/sys type none (rw,bind)
/dev/sdd1 on /media/usb0 type vfat (rw,noexec,nodev,sync,noatime,nodiratime)
rd@blackbox:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type>
<options> <dump> <pass>
proc /proc proc
defaults 0 0
# use blkid to check uuid/partition correlation
#/dev/sdc1: LABEL="root_ssd" UUID="4a4eb948-2d2b-4188-96ae-76a3776ae69c"
TYPE="ext4"
# the options are not evaluated for /, use rootflags in /boot/grub/grub.cfg
instead and run update-grub
#UUID="4a4eb948-2d2b-4188-96ae-76a3776ae69c" / ext4
noatime,discard,data=ordered,errors=remount-ro 0 1
/dev/disk/by-uuid/4a4eb948-2d2b-4188-96ae-76a3776ae69c /
ext4 noatime,discard,data=ordered,errors=remount-ro 0 1
#/dev/sdb7
UUID="1639d3c2-c359-43d5-9fbf-a6c2648c629d" /mnt/disk/home ext3
defaults 0 2
# /dev/sdc2
UUID="8b30f379-55fe-49e5-97b7-0f6e7f63661a" /home ext4
noatime,discard,data=ordered 0 2
# /dev/sdb6
UUID=43ec8df9-154f-4eb7-9624-8314b2584fa4 /mnt/disk/opt ext3
defaults 0 2
# tmp space
#/dev/sdb8
UUID="401ecac6-7e48-41da-9cc8-a27e30492152" /mnt/disk/exchange ext3
defaults 0 2
#/dev/sdb2
#LABEL=SWAP, UUID=cfac727c-78d3-4c20-8e08-1a599d42a117
LABEL=SWAP none swap
sw 0 0
# backup
UUID=8d9095ca-8aff-44bc-8563-367febcc24bf /backup auto
defaults,noauto 0 2
#/dev/sdb5 /mnt/sdb5 ext3 noauto 0 0
/dev/scd0 /media/cdrom0
udf,iso9660 user,noauto 0 0
# make tmp as ramdisk
tmpfs /tmp tmpfs
nodev,nosuid,noexec,mode=1777 0 0

#paddy
sshfs#rdorsch@paddy:/ /mnt/paddy fuse
user,uid=1000,gid=1000,reconnect,noauto 0 0

#sshfs#rdorsch@192.168.178.22:/ /mnt/paddy fuse
user,uid=1000,gid=1000,reconnect,noauto 0 0

sshfs#rd@boko:/ /mnt/boko fuse user,uid=1000,gid=1000,reconnect,noauto 0 0

sshfs#root@n810:/ /mnt/n810 fuse user,uid=1000,gid=1000,reconnect,noauto 0
0
sshfs#user@n900:/ /mnt/n900 fuse user,uid=1000,gid=1000,reconnect,noauto 0
0
rd@blackbox:~$


### no rootflags and /dev fstab entry
=======================
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
rd@blackbox:~$ mount
/dev/sdc1 on / type ext4 (rw,noatime,discard,data=ordered,errors=remount-ro)
tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
udev on /dev type tmpfs (rw,mode=0755)
tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
/dev/sdb7 on /mnt/disk/home type ext3 (rw)
/dev/sdc2 on /home type ext4 (rw,noatime,discard,data=ordered)
/dev/sdb6 on /mnt/disk/opt type ext3 (rw)
/dev/sdb8 on /mnt/disk/exchange type ext3 (rw)
tmpfs on /tmp type tmpfs (rw,noexec,nosuid,nodev,mode=1777)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/scratchbox on /scratchbox/users/rd/scratchbox type none (rw,bind)
/tmp on /scratchbox/users/rd/tmp type none (rw,bind)
/proc on /scratchbox/users/rd/proc type none (rw,bind)
/dev on /scratchbox/users/rd/dev type none (rw,bind)
/dev/pts on /scratchbox/users/rd/dev/pts type none (rw,bind)
/dev/shm on /scratchbox/users/rd/dev/shm type none (rw,bind)
/sys on /scratchbox/users/rd/sys type none (rw,bind)
rd@blackbox:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type>
<options> <dump> <pass>
proc /proc proc
defaults 0 0
# use blkid to check uuid/partition correlation
#/dev/sdc1: LABEL="root_ssd" UUID="4a4eb948-2d2b-4188-96ae-76a3776ae69c"
TYPE="ext4"
# the options are not evaluated for /, use rootflags in /boot/grub/grub.cfg
instead and run update-grub
#UUID="4a4eb948-2d2b-4188-96ae-76a3776ae69c" / ext4
noatime,discard,data=ordered,errors=remount-ro 0 1
/dev/disk/by-uuid/4a4eb948-2d2b-4188-96ae-76a3776ae69c /
ext4 noatime,discard,data=ordered,errors=remount-ro 0 1
#/dev/sdb7
UUID="1639d3c2-c359-43d5-9fbf-a6c2648c629d" /mnt/disk/home ext3
defaults 0 2
# /dev/sdc2
UUID="8b30f379-55fe-49e5-97b7-0f6e7f63661a" /home ext4
noatime,discard,data=ordered 0 2
# /dev/sdb6
UUID=43ec8df9-154f-4eb7-9624-8314b2584fa4 /mnt/disk/opt ext3
defaults 0 2
# tmp space
#/dev/sdb8
UUID="401ecac6-7e48-41da-9cc8-a27e30492152" /mnt/disk/exchange ext3
defaults 0 2
#/dev/sdb2
#LABEL=SWAP, UUID=cfac727c-78d3-4c20-8e08-1a599d42a117
LABEL=SWAP none swap
sw 0 0
# backup
UUID=8d9095ca-8aff-44bc-8563-367febcc24bf /backup auto
defaults,noauto 0 2
#/dev/sdb5 /mnt/sdb5 ext3 noauto 0 0
/dev/scd0 /media/cdrom0
udf,iso9660 user,noauto 0 0
# make tmp as ramdisk
tmpfs /tmp tmpfs
nodev,nosuid,noexec,mode=1777 0 0

#paddy
sshfs#rdorsch@paddy:/ /mnt/paddy fuse
user,uid=1000,gid=1000,reconnect,noauto 0 0

#sshfs#rdorsch@192.168.178.22:/ /mnt/paddy fuse
user,uid=1000,gid=1000,reconnect,noauto 0 0

sshfs#rd@boko:/ /mnt/boko fuse user,uid=1000,gid=1000,reconnect,noauto 0 0

sshfs#root@n810:/ /mnt/n810 fuse user,uid=1000,gid=1000,reconnect,noauto 0
0
sshfs#user@n900:/ /mnt/n900 fuse user,uid=1000,gid=1000,reconnect,noauto 0
0
rd@blackbox:~$






--
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/
 
Old 05-11-2011, 04:31 PM
Thilo Six
 
Default rootfs on SSD

Rainer Dorsch wrote the following on 11.05.2011 12:05

> Am Montag, 9. Mai 2011 schrieb Thilo Six:
>> Andrei Popescu wrote the following on 09.05.2011 09:18
>>
>>>> rd@blackbox:~$ mount|grep rootfs
>>>> rootfs on / type rootfs (rw)
>>>> rd@blackbox:~$
>>>
>>> I don't have any 'rootfs' in the output of mount, instead I have this:
>>>
>>> /dev/sda6 on / type ext3 (rw,noatime,errors=remount-ro,commit=0)
>>>
>>> I have a feeling there's more to your setup that is missing here. Could
>>> you please post your complete /etc/fstab and full output of 'mount'?
>>>
>>> Regards,
>>> Andrei
>>
>> and the content of '/boot/grub/device.map'
>
> Thank you for your replies.
>
> Maybe the /boot/grub/device.map is interesting, because the SSD (sdc) is
> missing in there (!):
>
> blackbox:~# cat /boot/grub/device.map
> (hd0) /dev/disk/by-id/ata-ST3120023A_3KA1BNGQ
> (hd1) /dev/disk/by-id/ata-SAMSUNG_HD501LJ_S0MUJ1FPB79563
> blackbox:~#
>
> How is the device.map file updated? By whom?

man grub-mkdevicemap

--
bye Thilo

4096R/0xC70B1A8F
721B 1BA0 095C 1ABA 3FC6 7C18 89A4 A2A0 C70B 1A8F



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: iqedk5$mp8$1@dough.gmane.org">http://lists.debian.org/iqedk5$mp8$1@dough.gmane.org
 
Old 05-13-2011, 04:50 PM
Andrei Popescu
 
Default rootfs on SSD

On Mi, 11 mai 11, 12:05:01, Rainer Dorsch wrote:
>
> I tested three setups:
>
> 1) Setup: rootflags and UUID fstab entry (the one I had before):
> Result: no configured options for root filesystem
>
> 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=remo unt-ro
> rd@blackbox:~$
>
> from /etc/fstab:
> UUID="4a4eb948-2d2b-4188-96ae-76a3776ae69c" / ext4
> noatime,discard,data=ordered,errors=remount-ro 0 1
>
> rd@blackbox:~$ mount
> rootfs on / type rootfs (rw)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This doesn't make sense. Could you try removing the quotes from the
UUID="" entry in fstab?

> The result of the third configuration (and to some extend also the first
> configuration) is unexpected for me in the bug report from Ted Tso:
>
> "[...] 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. [...]"
>
> Does anybody understand how both, my data and Ted's report make sense?
>
> Can we be sure that the output of the mount command reflects the system state
> (or does it even display wrong information in some configurations I did)?

AFAICT 'mount' displays (more or less) the contents of /etc/mtab, which
may under certain conditions not be up-to-date. /proc/mounts is more
accurate, but I doubt in your case this is an issue.

As for the options in /etc/fstab being applied or not, if you read the
thread on debian-devel, it was pointed out that Debian's initscript(s)
will remount the root fs with the options from /etc/fstab, it's just
that some options can not be changed on a *remount*. For those
particular options you will have to use either rootflags or tune2fs.

Regards,
Andrei
--
Offtopic discussions among Debian users and developers:
http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic
 

Thread Tools




All times are GMT. The time now is 03:26 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org