Mount problems after update

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

Mount problems after update

Postby ipse » Wed Sep 07, 2011 3:53 am

Hi all
Long time lurker, first time poster (coming from Arch Linux ARM board)...and owner of a Pogo v2 (pink).

I wanted to install pptpd and according to threads here, it seemed to require a kernel update. I bit the bullet and ran it...
Now I keep getting mount errors and after reading the forum I installed udev-automount.
That seemed to have fixed the mount problem (I see my USB HDD now) BUT:
- I still get the mount errors
- my USB flash drive that I boot from used to be /dev/sda1, now this has become the USB HDD - is this a problem?

Do I need to edit fstab to specify mounting the USB flash drive with my FS? The line is commented out (and always was...).
Worried that I might mess up the Linux partition at some point...

Here are the errors from the log and the content of fstab and autofs.master:

$this->bbcode_second_pass_code('', '
Sep 6 23:10:23 Arch Linux ARM automount[4903]: mount_autofs_indirect: failed to read map for /media/net
Sep 6 23:10:23 Arch Linux ARM automount[4903]: handle_mounts: mount of /media/net failed!
Sep 6 23:10:23 Arch Linux ARM automount[4903]: master_do_mount: failed to startup mount
Sep 6 23:21:36 Arch Linux ARM automount[5308]: mount_autofs_indirect: failed to read map for /media/net
Sep 6 23:21:36 Arch Linux ARM automount[5308]: handle_mounts: mount of /media/net failed!
Sep 6 23:21:36 Arch Linux ARM automount[5308]: master_do_mount: failed to startup mount
[root@Arch Linux ARM log]#



[root@Arch Linux ARM autofs]# more auto.master
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(5).

#/media /etc/autofs/auto.media
/media/misc /etc/autofs/auto.misc --timeout=5
/media/net /etc/autofs/auto.net --timeout=60
[root@Arch Linux ARM autofs]# more /etc/fstab
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
/swapfile none swap sw 0 0
tmpfs /tmp tmpfs nodev,nosuid 0 0
[root@Arch Linux ARM autofs]#


[root@Arch Linux ARM autofs]# mount
/dev/root on / type ext2 (rw,relatime,errors=continue)
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
/sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
/run on /run type tmpfs (rw,nosuid,nodev,relatime,size=10240k,mode=755)
udev on /dev type tmpfs (rw,nosuid,relatime,size=10240k,mode=755)
devpts on /dev/pts type devpts (rw,relatime,mode=600)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
/dev/sda1 on /media/FATASS500 type vfat (rw,noatime,gid=100,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev)
[root@Arch Linux ARM autofs]# ')

Thanks for any suggestions you have to offer...
ipse
 
Posts: 14
Joined: Wed Sep 07, 2011 3:34 am
Location: Canada

Re: Mount problems after update

Postby hydro » Wed Sep 07, 2011 11:23 am

Sounds a bit like you started the autofs daemon without any reason (udev-automount does not need it). Or else please explain what devices you want autofs to mount (you could post the content of /etc/autofs/auto.misc and /etc/autofs/auto.net)
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Mount problems after update

Postby ipse » Wed Sep 07, 2011 4:57 pm

I installed udev-automount AFTER I started having problems with autofs.
Are you saying I should now get rid of autofs (which I start with the system)? I read the wiki and it looks like udev is the new tool used by Linux. How does it start at boot?

Anyhoo...to make the long story short, all I want is to automount my external USB HDDs (6-7 of them)...no net volumes.

Here's the files you asked for:

$this->bbcode_second_pass_code('', '
[root@Arch Linux ARM autofs]# ls
auto.master auto.misc auto.net
[root@Arch Linux ARM autofs]# more auto.net
/net -hosts --timeout=60

[root@Arch Linux ARM autofs]# more auto.misc
# This is an automounter map and it has the following format
# key [ -mount-options-separated-by-comma ] location
# Details may be found in the autofs(5) manpage

cdrom -fstype=iso9660,ro,nodev,nosuid :/dev/cdrom
floppy -fstype=auto,async,nodev,nosuid,umask=000 :/dev/fl
#usbstick -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sda1

')

Thanks for the quick reply...as you can see I'm a novice trying to learn.
ipse
 
Posts: 14
Joined: Wed Sep 07, 2011 3:34 am
Location: Canada

Re: Mount problems after update

Postby hydro » Wed Sep 07, 2011 5:55 pm

Just stop the autofs daemon and remove it from the DAEMONS in /etc/rc.conf, I assume you never needed it.
viewtopic.php?f=3&t=1484
Udev has become essential since many years, it creates all device nodes.
Btw. I use autofs for mounting net volumes and I remember having trouble with the method described here (same as your auto.net), instead I use entries like this:
$this->bbcode_second_pass_code('', '
share -fstype=nfs4 host:/share
')
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Mount problems after update

Postby ipse » Thu Sep 08, 2011 3:12 pm

Will do...thanks for clearing that out. It might be that I followed the old Wiki (Arch Linux ARM) to install and activate autofs without realizing if I need it.
I wonder though why when changes were made to autofs my USB monted drives disappeared until I installed udev-automount. That makes me think the autofs config had local drives specified and now it has changed.
ipse
 
Posts: 14
Joined: Wed Sep 07, 2011 3:34 am
Location: Canada

Re: Mount problems after update

Postby hydro » Thu Sep 08, 2011 3:37 pm

$this->bbcode_second_pass_quote('ipse', '
')I wonder though why when changes were made to autofs my USB monted drives disappeared until I installed udev-automount. That makes me think the autofs config had local drives specified and now it has changed.

I don't know about changes to autofs, maybe the default configuration files have changed and previously included a line like the one that is commented out in your auto.misc:
$this->bbcode_second_pass_code('', '
usbstick -fstype=auto,async,nodev,nosuid,umask=000 :/dev/sda1
')
This would indeed mount /dev/sda1 on /media/misc/usbstick. But normally new default configuration files come with file extension *.pacnew and are thus disabled.
I think your USB drives were mounted because Arch Linux ARM' udev package contained automout rules, which are now in a separate package, that is not installed by default.
I don not use automounting on my DockStar at all, but I actually would prefer autofs, because devices are unmounted when not in use, while udev rules unmount devices only _after_ they were removed (while mounted). The problem with changing devices can be solved by using the UUID instead, i.e. the link in /dev/disk/by-uuid/
VDR on DockStar / Pogoplug E02: http://linux.bplaced.net/
hydro
 
Posts: 210
Joined: Wed Jun 15, 2011 2:03 pm
Location: Germany

Re: Mount problems after update

Postby ipse » Fri Sep 09, 2011 3:19 pm

Ah...didn't realize udev-automount was running before (since I thought I installed it following this forum's recommendations).
As for the "usbstick" line - it was always commented out and I wondered how is my USB flash drive mounted when I boot up from it.
Lots to read and figure out....now I need to make a bit-copy of the boot thumb drive - I have too much stuff I spent time configuring and would not want to do it again.
ipse
 
Posts: 14
Joined: Wed Sep 07, 2011 3:34 am
Location: Canada

Re: Mount problems after update

Postby kmihelich » Sat Sep 10, 2011 6:40 pm

While the drive is not being used as a rootfs, just 'cp -a' the contents somewhere. Or as root, from the base directory of the drive, tar -jcf mydrive.tar.bz2 ./*

No need to go the dd route really.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 6 guests