Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Lessons learned...

  • 12-04-2012 12:15am
    #1
    Closed Accounts Posts: 3,981 ✭✭✭


    Is there anything more annoying that getting your system completely built the way you want it (mail, dns & bind, apache, php, mysql, wordpress, stud + irc, jails for every daemon) and realizing the way it was partitioned from the start (not by you) is horrible and you need to do a complete reinstall in order to fix it?

    Hrmph. :mad:

    Of course, losing all your data if you didn't have a backup plan is more annoying but this is 2012! :cool:

    I run a dedicated freebsd box.
    / is tiny (9 gigs, most of which is full).
    /usr and /var are on /
    /home is nearly 1 TB and only using 63 megs.

    Ugh. I know what I'm doing this weekend. :o

    Feel free to post similar lessons learned here. I'm a bit long in the tooth for this, but I have done similar in the past because I thought I could get by with what I had.


Comments

  • Registered Users, Registered Users 2 Posts: 14,063 ✭✭✭✭Johnboy1951


    I guess I have been lucky in that when this has happened I have been able to 'remaster' my install, re-do the partitioning, and reinstall from the remaster.

    Without that tool ('mylivecd' in PCLinuxOS) I would have had a lot of hassle.
    Also it means I can easily keep 'snapshots' of the install and use them in case of disaster (HDD crash).
    Great when changing PC too ...... just use the remaster to install on a different PC.

    I also use a current remaster on a USB stick to carry my own personal install with me .... nothing better than booting into a familiar environment if the need arises.


  • Registered Users, Registered Users 2 Posts: 16,288 ✭✭✭✭ntlbell


    don't do a make all in /usr/ports


  • Registered Users, Registered Users 2 Posts: 3,745 ✭✭✭laugh


    When using this guy --> *, always make sure it's in the right place.


  • Registered Users, Registered Users 2 Posts: 1,931 ✭✭✭PrzemoF


    I never played with *BSD, but can't you change partition size?


  • Closed Accounts Posts: 3,981 ✭✭✭[-0-]


    PrzemoF wrote: »
    I never played with *BSD, but can't you change partition size?

    Yeah it's not certain to work properly and can lead to performance issues though.

    I'll give it a go with gpart now and see how I get on.


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 5,238 ✭✭✭humbert


    I used dd to image my drive to a file on an external disk. Repartitioned, mounted the image from a live usb and used cp -a to put everything back and it worked fine. Boot partition was separate though.



    My lesson is not to try and edit partition tables with windows tools. I'm not a windows hater but good god those things suck ass and finding partition start sectors is time consuming.


  • Closed Accounts Posts: 3,981 ✭✭✭[-0-]


    I decided to backup and reinstall.

    Reinstallation took 10 minutes including partitioning (ovh.ie rocks!).

    Reinstating my backups will take longer, but this was worth it for sure.


  • Registered Users, Registered Users 2 Posts: 3,745 ✭✭✭Eliot Rosewater


    Runing "# chmod 0777 /" is seemingly not a good idea.


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Runing "# chmod 0777 /" is seemingly not a good idea.

    It's a hard lesson to learn......


  • Registered Users, Registered Users 2 Posts: 5,238 ✭✭✭humbert


    Would be a horrible mess but would that break anything?


  • Advertisement
  • Registered Users, Registered Users 2 Posts: 3,745 ✭✭✭Eliot Rosewater


    Once the permissions on some of the binaries governing the sudo command are changed (from 644 iirr) you can no longer use the sudo comand. Catch 22: you need sudo to change the permissions to 644; you need the permissions to be 644 to use sudo! :D

    Could be worse, at least all the files are still there.


  • Closed Accounts Posts: 18,966 ✭✭✭✭syklops


    Don't run fsck on a mounted drive.


  • Registered Users, Registered Users 2 Posts: 326 ✭✭schrodinger


    Runing "# chmod 0777 /" is seemingly not a good idea.

    mtree is your friend

    http://marc.info/?l=freebsd-questions&m=107550476912218&w=2


  • Closed Accounts Posts: 587 ✭✭✭Dum_Dum


    Original poster could have backed up /home and converted it into a ZFS pool (although you should use whole disks)

    Say home was on /dev/ada0s1d:
    umount /home
    zpool create mypool /dev/ada0s1d
    

    Home could be recreated
    zfs create mypool/home
    zfs set mountpoint=/home mypool/home
    

    Use the rest of the space for your jails etc..


  • Closed Accounts Posts: 18,966 ✭✭✭✭syklops


    So you've gone out to the DC, you've reinstalled your machine, you've installed SSH, good job, time to go home. You get home, you can ping it but you can't SSH in. Why? 'Coz you forgot to tell iptables that port 22 should be open. So you have to go back out to the mother flipping DC to type one command.

    Infuriating. :mad:


  • Registered Users, Registered Users 2 Posts: 37,485 ✭✭✭✭Khannie


    Oh god. That is so horrible.

    A moment for our fallen comrade.....

    /bows head


  • Closed Accounts Posts: 3,981 ✭✭✭[-0-]


    That is brutal. :(


  • Registered Users, Registered Users 2 Posts: 62 ✭✭LiamOSullivan


    I've learned a lot of stupid things...

    # rm -r /usr
    is not the same as
    # rm -r usr (don't ask...)

    Compiling a kernel without support for your filesystems is a bad idea.

    USE="doc" makes portage operate in circles.

    Those are a few that come to mind...


  • Registered Users, Registered Users 2 Posts: 755 ✭✭✭mr kr0nik


    Its generally a good idea to (I think anyway) to CVS some important directories like /etc. Realised this after mucking up some config files and not realising what had changed.


Advertisement