post-upgrade, / mounts ro and domain resolution is wonky

This forum is for discussion about general software issues.

post-upgrade, / mounts ro and domain resolution is wonky

Postby ninjaaron » Sun Feb 15, 2015 3:50 am

I just did an upgrade on my raspberry pi server. It now mounts the root file system as read-only. I can fix this with `mount -o remount,rw /`

Also, when I try to ping a domain name, it fails. If I try to ping an IP or an alias from /etc/hosts, it's fine. I can't get pacman to download packages because it can't resolve the host for the mirror.

It also has an NFS server, and the share doesn't mount properly on the clients. ssh/sftp seem to be working fine.
ninjaaron
 
Posts: 2
Joined: Sun Feb 15, 2015 3:46 am

Re: post-upgrade, / mounts ro and domain resolution is wonky

Postby Gyscos » Sun Feb 15, 2015 6:20 am

I once had the DNS issue, it was caused by an IPv6 DNS server in /etc/resolv.conf while the network didn't actually provide IPv6. Removing the entry in resolv.conf fixed it.
Read-only mount are sometimes caused by a corrupt filesystem. Try to fsck it from another computer to check its status. Or maybe a rw flag in fstab (or in the kernel boot line?) could fix that.
Gyscos
 
Posts: 20
Joined: Wed Feb 11, 2015 7:01 am

Re: post-upgrade, / mounts ro and domain resolution is wonky

Postby pepedog » Sun Feb 15, 2015 8:48 am

ro, look at cmdline.pacnew for rw
nfs, search forum for rpcbind for possible answer
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: post-upgrade, / mounts ro and domain resolution is wonky

Postby ninjaaron » Tue Feb 17, 2015 5:28 am

Well, thanks to Gyscos, I got DNS working. I checked my /etc/resolv.conf and it was empty. Ran `resolvconf -u`... not exactly sure what this does, but it populated my /etc/reslov.conf and DNS work!

tried to fsck. dirty bit was found and cleaned. still mounting ro. checked /boot/cmdline.txt and it says rw. Explicitly added rw to my fstab... and yet still ro.

haven't tackled NFS yet.

Anyway, I think my question from long ago has been answered: Can you run a file server off a raspberry pi? Yes, you can, but you might not want to...
ninjaaron
 
Posts: 2
Joined: Sun Feb 15, 2015 3:46 am

Re: post-upgrade, / mounts ro and domain resolution is wonky

Postby MadMe » Tue Feb 17, 2015 7:48 pm

could you post your fstab?
i had the same problem. I don't know why but after the upgrade there were no entry for my root directory ...
here is my fstab.

$this->bbcode_second_pass_code('', '
/dev/mmcblk0p1 /boot vfat defaults 0 0
/dev/mmcblk0p2 / ext4 rw,relatime,data=ordered 0 0
')
MadMe
 
Posts: 5
Joined: Tue Feb 17, 2015 8:35 am


Return to General

Who is online

Users browsing this forum: No registered users and 21 guests