DaemonForums  

Go Back   DaemonForums > OpenBSD > OpenBSD Installation and Upgrading

OpenBSD Installation and Upgrading Installing and upgrading OpenBSD.

Reply
 
Thread Tools Display Modes
Old 17th February 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Glad you got it resolved.
Reply With Quote
Old 1st June 2018
afdruiprek afdruiprek is offline
New User
 
Join Date: Jun 2017
Posts: 9
Default

Hello.

I run -current on my laptop (x220) and it works great.
use to update it with the latest snapshot every week
i download all the necessary files from an ftp mirror to
my /mnt/home/afdruiprek/upgrade folder
and cp bsd.rd to / and reboot bsd.rd and update, all has worked well untill now.

when it was time to install today it verifyed all files and installed bsd bsd.rd and bsd.mp
but when it was time for base63.tgz it says "id0 on /mnt: file system is full", which is true.

df -h shows (I use full disk encryption therefore sd1)
Filesystem size used avail capacity Mounted on
/dev/sd1a 1005M 1003m -48.4M 105% /mnt

when i installed the system from the start i choose auto partitioning.


When i boot the system normal i cant do anything, some things was probably owerwritten.

init : can´t exec /bin/sh for /etc/rc: Exec format error

When i try to change shell nothing hapens.

How can i make /mnt bigger (without damage everything else)? or what files under /mnt is it safe to remove to make room for the update.
du dosent work.

Best regards...
~
Reply With Quote
Old 1st June 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

In a default installation, "/mnt" is an empty directory in the root filesystem "/". Its purpose is to be a mount point for removable media or other temporarily accessed filesystems, as described in the hier(8) man page.

In your environment, you appear to have used this directory for other purposes, since you have a "/mnt/home/..." whereas the default filesystem for user directories is "/home".

The root filesystem is designed to hold the second-stage bootloader (/boot), kernels (/bsd* files), configuration files (/etc), device nodes (/dev), a mount point used for root filesystem backup (/altroot), static binary programs (/bin, /sbin), and mount points to all the other filesystems. The automatic allocation, if used, varies depending on architecture and the size of the physical drive. On large drives, the size of the root filesystem will typically be limited to 1GB, as it is in your configuration. See the AUTOMATIC DISK ALLOCATION section in disklabel(8) for details.

Without seeing your complete df(1) output, I will be unable to provide you with any recommendations.

Last edited by jggimi; 1st June 2018 at 08:45 PM. Reason: clarity - and a bunch of typos
Reply With Quote
Old 1st June 2018
afdruiprek afdruiprek is offline
New User
 
Join Date: Jun 2017
Posts: 9
Default

The reason why i didn't post the whole df is because i could not copy it from the laptop
and /mnt/home is because df was run from bsd.rd boot, normal boot docent work anymore

But here comes a hand written df -h
Code:
Filesystem  size     used      avail    capacity   Mounted on
/dev/rd0a    3.5M    3.2M     229k   94%      /
/dev/sd1a  1005M 1003m -48.4M  105%     /mnt
/dev/sd1k   95.0G  9.7G    80.5G    11%      /mnt/home
/dev/sd1d   3.9G    10.0k    3.7G       0%     /mnt/tmp
/dev/sd1f    2.0G    966M     946M     51%   /mnt/usr
/dev/sd1g  1005M   185M    769M     19%   /mnt/usr/X11R6
/dev/sd1h  9.8G      1.3G     8.1G      14%   /mnt/usr/local
/dev/sd1j   5.9G      2.0k      5.6G       0%   /mnt/usr/obj
/dev/sd1i   2.0G      2.0k       1.9G      0%   /mnt/usr/src
/dev/sd1e  18.1G     17.5M    17.2G    0%   /mnt/var

Last edited by ocicat; 2nd June 2018 at 03:35 AM. Reason: Please use [code] & [/code] tags when posting command output.
Reply With Quote
Old 1st June 2018
jggimi's Avatar
jggimi jggimi is offline
More noise than signal
 
Join Date: May 2008
Location: USA
Posts: 7,975
Default

Thank you for sharing this. Now I understand the "/mnt" references in your first post. You were using the RAMDISK kernel after running the upgrade script.

You need to determine what file has filled the root filesystem.

The most common reason is a standard file in the /dev directory instead of a character or block special file (device node).

/dev should be very small.
Code:
$ du -sh /dev
 34.0K   /dev
The only standard file in that directory should be the MAKEDEV(8) script. The other files should all either be character or block special files, or symbolic links. You can inspect and repair this even from that RAMDISK kernel's shell:

# cd /mnt/dev
# export TERM=vt220
# ls -l | less
# rm file.I.accidentally.created.with.a.typo

In most cases, the offending file will be obvious.

Should the /dev directory be correct and small, then the other directories on the root filesystem may be investigated.

Last edited by jggimi; 1st June 2018 at 10:16 PM. Reason: formatting, clarity
Reply With Quote
Old 2nd June 2018
afdruiprek afdruiprek is offline
New User
 
Join Date: Jun 2017
Posts: 9
Default

Quote:
Originally Posted by jggimi View Post
Thank you for sharing this. Now I understand the "/mnt" references in your first post. You were using the RAMDISK kernel after running the upgrade script.

You need to determine what file has filled the root filesystem.

The most common reason is a standard file in the /dev directory instead of a character or block special file (device node).

/dev should be very small.
Code:
$ du -sh /dev
 34.0K   /dev
The only standard file in that directory should be the MAKEDEV(8) script. The other files should all either be character or block special files, or symbolic links. You can inspect and repair this even from that RAMDISK kernel's shell:

# cd /mnt/dev
# export TERM=vt220
# ls -l | less
# rm file.I.accidentally.created.with.a.typo

In most cases, the offending file will be obvious.

Should the /dev directory be correct and small, then the other directories on the root filesystem may be investigated.
Thank you so much jggimi.

I was making a bootable usb with dd earlier this week and guess what ?
an 918M file in /mnt/dev called sd2

Everything works fine now.

Last edited by afdruiprek; 2nd June 2018 at 10:43 AM.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Full Disk Encryption jjstorm OpenBSD Installation and Upgrading 3 30th May 2016 08:19 PM
Full disk encryption in NetBSD 7.0 RC2 bashrules NetBSD Installation and Upgrading 1 18th August 2015 02:11 AM
Reliability concerns on full disk encryption virtuvoos OpenBSD Security 4 31st October 2013 11:06 PM
FreeNAS 8.3.1 introduces full disk ZFS encryption J65nko News 0 22nd March 2013 02:54 AM
Full disk encryption with Loop-AES deviant085 OpenBSD Security 9 23rd November 2009 12:51 AM


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


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick