You are not logged in.

#1 2011-05-08 20:13:02

NeXTWay
Member
Registered: 2011-05-08
Posts: 4

[SOLVED]Weird output for 'mount'

EDIT: It was a systemd problem (:
Solved thanks to this post.
Thank you, everybody (:

OLD POST:
Hi, guys (:
Today I wanted to see where my USB pendrive had been mounted, so I ran 'mount' and I saw this.
It's terrible: it repeats the same devices LOTS of times. This makes it very difficult to read.

devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     nodev,nosuid        0      0

/dev/sda1 /boot ext2 defaults 0 1
/dev/sda3 / ext4 defaults 0 1
/dev/sda5 swap swap defaults 0 0
/dev/sda6 /var reiserfs defaults 0 1
/dev/sda7 /home ext4 defaults 0 1

tmpfs /var/lock tmpfs defaults,nodev,nosuid,noexec,mode=1777,size=10m 0 0
tmpfs /var/run  tmpfs defaults,nodev,nosuid,noexec,mode=0755,size=10m 0 0

This is my /etc/fstab
It looks pretty decent to me (:
Anyone has got an idea of what could be the problem?
Sorry for my bad English :S

Last edited by NeXTWay (2011-05-10 05:16:54)

Offline

#2 2011-05-08 23:37:06

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,217
Website

Re: [SOLVED]Weird output for 'mount'

Very weird... Something has gone wacko like jacko. As much as I hate to say this as a "solution", I'd reboot and see if that fixes it. If it happens again then dig deeper, but if it doesn't, then it's probably not worth the effort and time of digging deeper.

Offline

#3 2011-05-09 11:44:04

NeXTWay
Member
Registered: 2011-05-08
Posts: 4

Re: [SOLVED]Weird output for 'mount'

fukawi2 wrote:

Very weird... Something has gone wacko like jacko. As much as I hate to say this as a "solution", I'd reboot and see if that fixes it. If it happens again then dig deeper, but if it doesn't, then it's probably not worth the effort and time of digging deeper.

It does it at every reboot...
This is the output for cat /etc/mtab >_<

Offline

#4 2011-05-09 14:10:12

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED]Weird output for 'mount'

More important than /etc/mtab would be to take a look at /proc/self/mounts. currently, the mount command in arch reads from /etc/mtab, so its no surprise that the output for the two is nearly identical.

Offline

#5 2011-05-09 19:00:54

NeXTWay
Member
Registered: 2011-05-08
Posts: 4

Re: [SOLVED]Weird output for 'mount'

falconindy wrote:

More important than /etc/mtab would be to take a look at /proc/self/mounts. currently, the mount command in arch reads from /etc/mtab, so its no surprise that the output for the two is nearly identical.

Thank you for your answer (: I've just uploaded it here.
I don't know if it's relevant, but I'm currently using systemd...

Offline

#6 2011-05-09 19:15:28

hiciu
Member
Registered: 2010-08-11
Posts: 84

Re: [SOLVED]Weird output for 'mount'

NeXTWay wrote:

I don't know if it's relevant, but I'm currently using systemd...

https://bbs.archlinux.org/viewtopic.php … 58#p931058

sudo ln -fs /proc/self/mounts /etc/mtab

Offline

#7 2011-05-09 19:44:05

NeXTWay
Member
Registered: 2011-05-08
Posts: 4

Re: [SOLVED]Weird output for 'mount'

hiciu wrote:
NeXTWay wrote:

I don't know if it's relevant, but I'm currently using systemd...

https://bbs.archlinux.org/viewtopic.php … 58#p931058

sudo ln -fs /proc/self/mounts /etc/mtab

Yeah big_smile That solved it.
Thank you, everybody ^_^

Offline

#8 2011-05-09 19:54:11

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: [SOLVED]Weird output for 'mount'

NeXTWay wrote:

I don't know if it's relevant, but I'm currently using systemd...

Yes, that was very relevant. wink

Please mark your thread solved and edit the topic title so that it reflects that it's a systemd question.


ᶘ ᵒᴥᵒᶅ

Offline

Board footer

Powered by FluxBB