LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 11-28-2019, 09:00 AM   #1
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch x86_64 | Xubuntu 18.04 bridge | Fedora 31 | windows 10 pro
Posts: 437

Rep: Reputation: 199Reputation: 199
OpenBSD 6.6 /usr full. 98%


here is photo of df -h etc.

this box is dual booting openbsd 6.6 and xubuntu 18.04. i dont know what to do, give me hint to right direction and i try to do it myself.
Attached Thumbnails
Click image for larger version

Name:	hDveHNC.jpg
Views:	22
Size:	36.0 KB
ID:	31979  
 
Old 11-28-2019, 09:13 AM   #2
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,266
Blog Entries: 3

Rep: Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118
How many packages do you have installed? You might split out /usr/local/ into its own partition and leave /usr/ for base.
 
Old 11-28-2019, 09:18 AM   #3
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch x86_64 | Xubuntu 18.04 bridge | Fedora 31 | windows 10 pro
Posts: 437

Original Poster
Rep: Reputation: 199Reputation: 199
Quote:
Originally Posted by Turbocapitalist View Post
How many packages do you have installed? You might split out /usr/local/ into its own partition and leave /usr/ for base.
i installed xfce desktop and couple of progs like geany, conky.
 
Old 11-28-2019, 09:32 AM   #4
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida panhandle
Distribution: slackware64-current, arch, ubuntu, others
Posts: 3,673

Rep: Reputation: 606Reputation: 606Reputation: 606Reputation: 606Reputation: 606Reputation: 606
make /usr partition bigger by shrinking c or e, not sure what c is or as suggested move /usr/local/ to its own partition.

Last edited by colorpurple21859; 11-28-2019 at 09:35 AM.
 
Old 11-28-2019, 09:44 AM   #5
Turbocapitalist
Senior Member
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 4,266
Blog Entries: 3

Rep: Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118Reputation: 2118
Quote:
Originally Posted by colorpurple21859 View Post
not sure what c is
c is a marker for the total capacity. It won't be used directly except for operations which affect/ wipe the whole disk. So trimming e, /home/, is probably the best option. Shrinking will mean backing up that partition and then erasing it. Depending on the geometry you might be able to grow /usr/ or add /usr/local/ but if you have the possiblity, I'd reinstall and make a separate /usr/local/ in the process.
 
1 members found this post helpful.
Old 11-28-2019, 12:19 PM   #6
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD
Posts: 2,380
Blog Entries: 6

Rep: Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724
What purpose is partition f serving? It's also formatted to 4.2BSD, but nothing is mounted there? It seems to around half the disk...
 
Old 11-29-2019, 01:47 AM   #7
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch x86_64 | Xubuntu 18.04 bridge | Fedora 31 | windows 10 pro
Posts: 437

Original Poster
Rep: Reputation: 199Reputation: 199
i made some kind of mistake and got "loading err m" warning when booting.
i gave up and now have just xubuntu bridge, ill try later to dual boot bsd and buntu.

thanks to all that replied.
 
Old 12-03-2019, 11:17 AM   #8
cynwulf
Senior Member
 
Registered: Apr 2005
Distribution: OpenBSD
Posts: 2,380
Blog Entries: 6

Rep: Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724Reputation: 1724
Quote:
Originally Posted by ////// View Post
"loading err m" warning when booting.
https://man.openbsd.org/biosboot.8

Quote:
ERR M
Bad magic. The ELF “magic number” \7fELF in boot(8)'s header was not found. This indicates that the first block of boot(8) was not read correctly. This could be due to disk corruption, failing to run installboot(8), giving an invalid boot(8) program as the boot argument to installboot(8), or incorrect geometry translation.
Moving / resizing partitions is a possible cause. Re-running installboot(8) usually solves this kind of thing.
 
1 members found this post helpful.
Old 12-03-2019, 12:23 PM   #9
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 216

Rep: Reputation: 93
It's a problem caused by a change in the physical location of the file /boot, the second stage bootloader. Caused either by moving/deleting the file or by moving/resizing the root partition resulting in a changed location. The error message is issued by the first stage bootloader, stating that it did not find the second stage where expected.

As noted, installboot(8) will fix the problem. The installboot program is available to the admin while using the RAMDISK kernel, so booting installation media and requesting the (S)hell provides access to the program. The 2 stages -- biosboot and boot, respectively -- are already installed in /usr/mdec, or may be manually extracted from the baseXY fileset. I find mounting /usr easier.

Here's an example of the steps I take from the RAMDISK shell when I make this error. Every time I make it. In this example, the disk I damaged is "sd0" and I discover /usr is partition "e" when I read the fstab(5) output:
Code:
# mount /dev/sd0a /mnt
# cat /mnt/etc/fstab
.
.
.
# mount /dev/sd0e /mnt/usr
# cd /mnt/usr/mdec
# installboot -v -r /mnt sd0 biosboot boot
# reboot

Last edited by jggimi; 12-03-2019 at 12:24 PM.
 
2 members found this post helpful.
Old 12-04-2019, 10:26 AM   #10
//////
Member
 
Registered: Nov 2005
Location: Land of Linux :: Finland
Distribution: Arch x86_64 | Xubuntu 18.04 bridge | Fedora 31 | windows 10 pro
Posts: 437

Original Poster
Rep: Reputation: 199Reputation: 199
thanks for the info.
that BSD box wasnt important, but thanks to you two.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error: Cannot find 'ssh-keygen' in '/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin' venu.navat Linux - Software 3 03-08-2012 05:00 AM
echo $PATH = /home/g3rc4n/bin:/usr/local/bin:/usr/bin:/bin:/usr/games ? i_heart_pandas Linux - Software 7 09-18-2009 09:33 AM
FreeBSD 6.2, no /usr/src/tools and /usr/src/usr.bin, failed to build world. Mr_Shameless *BSD 4 05-16-2008 09:43 AM
OpenBSD - Where can i get OpenBSD 3.7 ISO CD -- Please help me b:z Linux - Software 1 04-07-2005 09:46 AM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-29-2004 12:33 AM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 03:10 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration