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 > Redhat > Fedora User

 
 
LinkBack Thread Tools
 
Old 11-22-2011, 11:53 AM
Timothy Murphy
 
Default mount command absurdly verbose?

Does anyone agree with me that the mount command
(when used simply to get information)
has become absurdly verbose?

I only use this command to determine
what hard disks are mounted.
Now I have to wade through large tracts of information
that make no sense to me, to find the few lines about hard disks.

Is there any way of getting the information one used to get,
short of saying something like "mount | grep sd"?

I think this change already took place in Fedora-15.


--
Timothy Murphy
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-22-2011, 11:57 AM
Andras Simon
 
Default mount command absurdly verbose?

2011/11/22, Timothy Murphy <gayleard@eircom.net>:
> Does anyone agree with me that the mount command
> (when used simply to get information)
> has become absurdly verbose?

Absolutely!

> I only use this command to determine
> what hard disks are mounted.
> Now I have to wade through large tracts of information
> that make no sense to me, to find the few lines about hard disks.
>
> Is there any way of getting the information one used to get,
> short of saying something like "mount | grep sd"?

I use df.

> I think this change already took place in Fedora-15.

That's right.

Andras
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-22-2011, 11:59 AM
Reindl Harald
 
Default mount command absurdly verbose?

Am 22.11.2011 13:53, schrieb Timothy Murphy:
> Does anyone agree with me that the mount command
> (when used simply to get information)
> has become absurdly verbose?
>
> I only use this command to determine
> what hard disks are mounted.
> Now I have to wade through large tracts of information
> that make no sense to me, to find the few lines about hard disks.
>
> Is there any way of getting the information one used to get,
> short of saying something like "mount | grep sd"?
>
> I think this change already took place in Fedora-15.

this MAJOR BUG was introduced with F15 and nobody cares

https://bugzilla.redhat.com/show_bug.cgi?id=709351
https://bugzilla.redhat.com/show_bug.cgi?id=730138

this is absolutely unacceptable and starts to become
funny if you are using sftp with chroots instead of
ftp while you have to make tons auf bind-mounts and
the permission error for "/var/named/chroot" breaks
ANYTHING which is not running as root and calling df
in a cronjob resulting with useless mails to root
__________________________________________________ ___

[harry@srv-rhsoft:~]$ df
Dateisystem Typ Größe Benut Verf Ben%% Eingehängt auf
/dev/md1 ext4 29G 8,0G 21G 28% /
/dev/md0 ext4 485M 52M 429M 11% /boot
/dev/md2 ext4 3,6T 1,3T 2,3T 36% /mnt/data

[harry@srv-rhsoft:~]$ which df
alias df='df -hT 2> /dev/null | grep -v tmpfs | grep -v rootfs | grep -v /chroot/ | grep -v
/Volumes/dune/www-servers | grep -v /var/cache/yum | grep -v /home | grep -v /tmp'
/bin/df
/bin/grep
/bin/grep
/bin/grep
/bin/grep
/bin/grep
/bin/grep
/bin/grep
__________________________________________________ ___

[harry@srv-rhsoft:~]$ /bin/df -hT
Dateisystem Typ Größe Benut Verf Ben%% Eingehängt auf
rootfs rootfs 29G 8,0G 21G 28% /
udev devtmpfs 7,8G 4,0K 7,8G 1% /dev
tmpfs tmpfs 1,0G 0 1,0G 0% /dev/shm
tmpfs tmpfs 7,9G 616K 7,9G 1% /run
/dev/md1 ext4 29G 8,0G 21G 28% /
tmpfs tmpfs 7,9G 0 7,9G 0% /sys/fs/cgroup
tmpfs tmpfs 7,9G 616K 7,9G 1% /var/run
tmpfs tmpfs 7,9G 616K 7,9G 1% /var/lock
tmpfs tmpfs 7,9G 0 7,9G 0% /media
tmpfs tmpfs 150M 0 150M 0% /var/www/sessiondata
tmpfs tmpfs 5,0G 0 5,0G 0% /var/tmp
/dev/md0 ext4 485M 52M 429M 11% /boot
/dev/md2 ext4 3,6T 1,3T 2,3T 36% /mnt/data
/dev/md2 ext4 3,6T 1,3T 2,3T 36% /home
/dev/md2 ext4 3,6T 1,3T 2,3T 36% /var/cache/yum
/dev/md2 ext4 3,6T 1,3T 2,3T 36% /tmp
/dev/md2 ext4 3,6T 1,3T 2,3T 36% /Volumes/dune/www-servers
/dev/md2 ext4 3,6T 1,3T 2,3T 36% /Volumes/dune/www-servers/phpincludes
/bin/df: „/var/named/chroot/etc/named“: Keine Berechtigung
/bin/df: „/var/named/chroot/usr/lib64/bind“: Keine Berechtigung
/bin/df: „/var/named/chroot/etc/named.iscdlv.key“: Keine Berechtigung
/bin/df: „/var/named/chroot/etc/named.root.key“: Keine Berechtigung

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-22-2011, 12:10 PM
suvayu ali
 
Default mount command absurdly verbose?

On Tue, Nov 22, 2011 at 13:53, Timothy Murphy <gayleard@eircom.net> wrote:
> Is there any way of getting the information one used to get,
> short of saying something like "mount | grep sd"?
>

findmnt -s

--
Suvayu

Open source is the future. It sets us free.
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-22-2011, 12:22 PM
Markus Schnhaber
 
Default mount command absurdly verbose?

22.11.2011 14:10, suvayu ali:

> On Tue, Nov 22, 2011 at 13:53, Timothy Murphy <gayleard@eircom.net> wrote:
>> Is there any way of getting the information one used to get,
>> short of saying something like "mount | grep sd"?
>>
>
> findmnt -s

Which may or may not be what the OP is looking for, since it only shows
mounts defined in /etc/fstab. It does not show, for example,
thumb-drives mounted on the fly by the DE.

--
Regards
mks
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-22-2011, 01:52 PM
Joachim Backes
 
Default mount command absurdly verbose?

On 11/22/2011 02:10 PM, suvayu ali wrote:
> On Tue, Nov 22, 2011 at 13:53, Timothy Murphy <gayleard@eircom.net> wrote:
>> Is there any way of getting the information one used to get,
>> short of saying something like "mount | grep sd"?
>>
>
> findmnt -s
>

"findmnt -se" additionally shows the disk devices

--
Joachim Backes <joachim.backes@rhrk.uni-kl.de>

http://www.rhrk.uni-kl.de/~backes

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-22-2011, 01:56 PM
Ralf Corsepius
 
Default mount command absurdly verbose?

On 11/22/2011 01:57 PM, Andras Simon wrote:
> 2011/11/22, Timothy Murphy<gayleard@eircom.net>:
>> Does anyone agree with me that the mount command
>> (when used simply to get information)
>> has become absurdly verbose?
>
> Absolutely!
>
>> I only use this command to determine
>> what hard disks are mounted.
>> Now I have to wade through large tracts of information
>> that make no sense to me, to find the few lines about hard disks.
>>
>> Is there any way of getting the information one used to get,
>> short of saying something like "mount | grep sd"?
>
> I use df.

Not that much better:

Real world example:

$ df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 50395844 32372316 15463528 68% /
..
tmpfs 3057628 46748 3010880 2% /run
/dev/sda3 50395844 32372316 15463528 68% /
tmpfs 3057628 46748 3010880 2% /run
...
/dev/sdb8 638902480 153233668 453214376 26% /users/user1
/dev/sdb8 638902480 153233668 453214376 26% /users/user2
/dev/sdb8 638902480 153233668 453214376 26% /users/user3
...

Ralf

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-22-2011, 02:09 PM
Andras Simon
 
Default mount command absurdly verbose?

2011/11/22, Ralf Corsepius <rc040203@freenet.de>:
> On 11/22/2011 01:57 PM, Andras Simon wrote:

[...]

>> I use df.
>
> Not that much better:
>
> Real world example:
>
> $ df
> Filesystem 1K-blocks Used Available Use% Mounted on
> rootfs 50395844 32372316 15463528 68% /
> ..
> tmpfs 3057628 46748 3010880 2% /run
> /dev/sda3 50395844 32372316 15463528 68% /
> tmpfs 3057628 46748 3010880 2% /run
> ...
> /dev/sdb8 638902480 153233668 453214376 26% /users/user1
> /dev/sdb8 638902480 153233668 453214376 26% /users/user2
> /dev/sdb8 638902480 153233668 453214376 26% /users/user3
> ...

Hmmm. I wonder why /dev/sdb8 is mounted to 3 different places?
I see here something like this too:

/dev/sda1 on / type ext2 (rw,noatime,nodiratime,seclabel,errors=continue)
/dev/sda1 on /home type ext2 (rw,noatime,nodiratime,seclabel,errors=continue)

sda1 should only be mounted to / (according to fstab).

Andras
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-22-2011, 02:21 PM
Ed Greshko
 
Default mount command absurdly verbose?

On 11/22/2011 08:53 PM, Timothy Murphy wrote:
> Does anyone agree with me that the mount command
> (when used simply to get information)
> has become absurdly verbose?
>
> I only use this command to determine
> what hard disks are mounted.
> Now I have to wade through large tracts of information
> that make no sense to me, to find the few lines about hard disks.
>
> Is there any way of getting the information one used to get,
> short of saying something like "mount | grep sd"?

How about using "mount -t ext3,ext4 or whatever combination of
filesystem types you want to query?


--
Even if you do learn to speak correct English, whom are you going to
speak it to? -- Clarence Darrow
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 
Old 11-22-2011, 02:25 PM
Reindl Harald
 
Default mount command absurdly verbose?

Am 22.11.2011 16:09, schrieb Andras Simon:
> 2011/11/22, Ralf Corsepius <rc040203@freenet.de>:
>> On 11/22/2011 01:57 PM, Andras Simon wrote:
>
> [...]
>
>>> I use df.
>>
>> Not that much better:
>>
>> Real world example:
>>
>> $ df
>> Filesystem 1K-blocks Used Available Use% Mounted on
>> rootfs 50395844 32372316 15463528 68% /
>> ..
>> tmpfs 3057628 46748 3010880 2% /run
>> /dev/sda3 50395844 32372316 15463528 68% /
>> tmpfs 3057628 46748 3010880 2% /run
>> ...
>> /dev/sdb8 638902480 153233668 453214376 26% /users/user1
>> /dev/sdb8 638902480 153233668 453214376 26% /users/user2
>> /dev/sdb8 638902480 153233668 453214376 26% /users/user3
>> ...
>
> Hmmm. I wonder why /dev/sdb8 is mounted to 3 different places?
> I see here something like this too:
>
> /dev/sda1 on / type ext2 (rw,noatime,nodiratime,seclabel,errors=continue)
> /dev/sda1 on /home type ext2 (rw,noatime,nodiratime,seclabel,errors=continue)
>
> sda1 should only be mounted to / (according to fstab).

you know "bind mounts"?
and that is why the behavior since F15 is a bad joke

you will need them to chroot sftp-users to different phyiscal folders
you will need them to provide a physical path of a production server
in test-environment while symlinks would change the realpath and
a bind mount does not

http://linux.die.net/man/2/mount
MS_BIND (Linux 2.4 onward)
Perform a bind mount, making a file or a directory subtree visible at another point
within a file system. Bind mounts may cross file system boundaries and span chroot(2)
jails. The filesystemtype and data arguments are ignored. Up until Linux 2.6.26,
mountflags was also ignored (the bind mount has the same mount options as the underlying
mount point). Since Linux 2.6.26, the MS_RDONLY flag is honored when making a bind mount.

/mnt/data/home /home none bind
/mnt/data/.yum-cache /var/cache/yum none bind
/mnt/data/.tmp /tmp none bind
/mnt/data/www/thelounge.net /Volumes/dune/www-servers none bind
/mnt/data/www/phpincludes /Volumes/dune/www-servers/phpincludes none bind

[root@rh:~]$ /bin/df -hT
Dateisystem Typ Gre Benut Verf Ben%% Eingehngt auf
rootfs rootfs 29G 8,0G 21G 28% /
udev devtmpfs 7,8G 4,0K 7,8G 1% /dev
tmpfs tmpfs 1,0G 196K 1,0G 1% /dev/shm
tmpfs tmpfs 7,9G 572K 7,9G 1% /run
/dev/md1 ext4 29G 8,0G 21G 28% /
tmpfs tmpfs 7,9G 0 7,9G 0% /sys/fs/cgroup
tmpfs tmpfs 7,9G 572K 7,9G 1% /var/lock
tmpfs tmpfs 7,9G 572K 7,9G 1% /var/run
tmpfs tmpfs 7,9G 0 7,9G 0% /media
tmpfs tmpfs 150M 64K 150M 1% /var/www/sessiondata
tmpfs tmpfs 5,0G 186M 4,9G 4% /var/tmp
/dev/md0 ext4 485M 52M 429M 11% /boot
/dev/md2 ext4 3,6T 627G 3,0T 18% /mnt/data
/dev/md2 ext4 3,6T 627G 3,0T 18% /home
/dev/md2 ext4 3,6T 627G 3,0T 18% /var/cache/yum
/dev/md2 ext4 3,6T 627G 3,0T 18% /tmp
/dev/md2 ext4 3,6T 627G 3,0T 18% /Volumes/dune/www-servers
/dev/md2 ext4 3,6T 627G 3,0T 18% /Volumes/dune/www-servers/phpincludes

--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
 

Thread Tools




All times are GMT. The time now is 02:27 AM.

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