weird mount behavior

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

weird mount behavior

Postby harrim4n » Fri Dec 28, 2012 2:59 pm

I just noticed a weird mounting behavior as well on my DockStar as on my Pogoplug. I have one USB-HDD and the USB-drive with the OS connected to the plug and only an USB-drive with the OS on the DockStar. Now if I do a mount on the DockStar it shows me that /dev/root is mounted on /. But if I do a ls it says that /dev/root doesn't exist.
$this->bbcode_second_pass_code('', '
[harrim4n@DockStar ~]$ mount
/dev/root on / type ext4 (rw,relatime,data=ordered)
')
$this->bbcode_second_pass_code('', '
[harrim4n@DockStar ~]$ sudo ls /dev/root
ls: cannot access /dev/root: No such file or directory
')
The same applies to the Plug. Also the USB-HDD (with one partition) is suddenly /dev/sda1 and the partition of the USB-drive which contains / is /dev/sdb1, which can also mounted in some other directory, even in multiple directories at once. And two devices can be mounted in one directory.
$this->bbcode_second_pass_code('', '
/dev/root on / type ext2 (rw,relatime,user_xattr,acl,barrier=1)
[...]
/dev/sdb1 on /tmp/Data type ext2 (rw,relatime,user_xattr,acl,barrier=1)
/dev/sda1 on /media/Data type ext2 (rw,relatime,user_xattr,acl,barrier=1)
/dev/sda1 on /tmp/Data type ext2 (rw,relatime,user_xattr,acl,barrier=1)
')

I really don't know if this is as it is supposed to be but it really freaks me out.
Any ideas?

harrim4n
harrim4n
 
Posts: 3
Joined: Wed Dec 26, 2012 2:53 pm

Re: weird mount behavior

Postby WarheadsSE » Fri Dec 28, 2012 3:39 pm

/dev/root is essentially "that thing I got in the 'rootfs=blah' from the commandline"

Neither it, or any block device is intended to be accessed via ls...
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: weird mount behavior

Postby harrim4n » Fri Dec 28, 2012 4:00 pm

I see. But why did this suddenly occur? All the time /dev/sda2 (or /dev/sda1) were mounted on /. I didn't change anything in the uboot, so that can't be the issue. Maybe some update changed the behavior or something? And still, this doesn't explain why two devices can be mounted into one directory, or is this intended? Also, why can I mount the partition that contains the OS while the system is running? Wouldn't the filesystem break if I edit it at the same time as another process?
harrim4n
 
Posts: 3
Joined: Wed Dec 26, 2012 2:53 pm

Re: weird mount behavior

Postby moonman » Fri Dec 28, 2012 11:52 pm

This has always been the behavior. You probably never npticed before. The kernel comes with aufs patch. look it up
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 294 guests