LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 02-11-2017, 12:18 PM   #16
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925

Quote:
Originally Posted by TB0ne View Post
After the new image is successfully tested, but this isn't going to help the OP much.
It only takes a few minutes to make a partition backup, so I would do these quite regularly in the initial stages, not waiting until the system was fully tested, particularly if the testing process might take a while and a lot will be modified during it.

Out of interest, why do you think it is not going to help the OP much?
 
Old 02-11-2017, 12:20 PM   #17
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by TB0ne View Post
Exactly, which is why I suggested "start fresh", before copying stuff back.
Ah, I see. Restore them but don't run them yet. Fair enough.
 
Old 02-11-2017, 12:22 PM   #18
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,149

Rep: Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856
Quote:
Originally Posted by Fixit7 View Post
Side note:

I added 'you know who' to my ignore list, yet I continue to see his posts. I tried sending a message to 2 moderators about it, but the messages are not sent ??
Don't worry, I sent a message to Jeremy directly.
 
Old 02-11-2017, 12:26 PM   #19
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
Quote:
Originally Posted by hydrurga View Post
Documents, yes. I would hold off on your scripts for the moment, just try and run a clean system for a while. What you certainly don't want to do for the moment is restore any of your old /home directory - if you can build it up from new by installing and configuring then that would be a better approach given the problems you've experienced.

Macrium Reflect don't do a Linux version as far as I know, the bootable media boots a Windows PE. However, it's what I used when I was a Windows guy and it does the job well so I still use it. There are certainly other Linux options (CloneZilla Live is often mentioned on here).
I never restore my home directory. I don't even know who to do it.
 
Old 02-11-2017, 12:26 PM   #20
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,149

Rep: Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856Reputation: 7856
Quote:
Originally Posted by hydrurga View Post
It only takes a few minutes to make a partition backup, so I would do these quite regularly in the initial stages, not waiting until the system was fully tested, particularly if the testing process might take a while and a lot will be modified during it.

Out of interest, why do you think it is not going to help the OP much?
They either won't take advice, or just don't understand what they're told. Look at any of their other threads...running "chown" on a bunch of system directories, and not being convinced that was the cause of numerous other problems/booting issues/permissions issues. Being asked by me, and a BUNCH of other folks including moderators and Jeremy to post details...this thread is a great example. Nothing about the users system, post things that just don't make sense with each other ("boots to black screen", then "ran systemctl"...???????), with no context behind them, and when asked, don't actually and logically walk through what's been done.

Chances are, things will get shoveled back over the fresh install, and the 'problems' will be back to where they were. Can't troubleshoot, if you can't logically walk through steps and answer questions.
 
Old 02-11-2017, 12:30 PM   #21
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
TBone,

Quote:
Can I copy my documents and scripts back ?
Quote:
Documents and scripts are fine, since they're just data. But if you try to restore your ENTIRE home (as said), things could go south quickly. As said before; start fresh, so any system problems will be VERY evident. If, after you move your data/scripts back, you start having problems...you know where the problem is.
I would like to post my scripts so folks can see any problems.
But I can not attach a zip file.
 
Old 02-11-2017, 12:54 PM   #22
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I would like to make a change to fstab so that sdb1 automatically mounts.

Is the last line in fstab o.k. ?

Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=c52f0645-8b56-4805-9697-e9c3424d4ce8 /                  ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=d3b14b0b-c2ba-4494-8fa2-c99067b9483f none               swap    sw                0       0
UUID="b3b0f384-9e2e-45f5-8995-932f1113f59d /SDB1_Mountpoint  ext3    errors=remount-ro 0       1
Code:
andy@7:~$ sudo blkid
[sudo] password for andy: 
/dev/sda1: UUID="ac6bf8cc-5bbc-44a6-a92f-0745372729f7" TYPE="ext4" PARTUUID="cafc53cc-01"
/dev/sda5: UUID="d3b14b0b-c2ba-4494-8fa2-c99067b9483f" TYPE="swap" PARTUUID="cafc53cc-05"
/dev/sdb1: LABEL="MAXTOR_SDB1" UUID="b3b0f384-9e2e-45f5-8995-932f1113f59d" TYPE="ext3" PARTUUID="000f0791-01"
/dev/sdb2: LABEL="MAXTOR_SDB2" UUID="8adebdf0-6bc3-4eee-8363-3e9440688d42" TYPE="ext3" PARTUUID="000f0791-02"
/dev/sdb5: LABEL="MAXTOR_SDB5" UUID="fd00f2d7-d666-4614-885d-5ace942dd3f6" TYPE="ext3" PARTUUID="000f0791-05"
 
Old 02-11-2017, 01:04 PM   #23
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Fixit7 View Post
I never restore my home directory. I don't even know who to do it.
Noted. No worries.
 
Old 02-11-2017, 01:20 PM   #24
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Fixit7 View Post
I would like to make a change to fstab so that sdb1 automatically mounts.

Is the last line in fstab o.k. ?

Code:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
# / was on /dev/sda1 during installation
UUID=c52f0645-8b56-4805-9697-e9c3424d4ce8 /                  ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
UUID=d3b14b0b-c2ba-4494-8fa2-c99067b9483f none               swap    sw                0       0
UUID="b3b0f384-9e2e-45f5-8995-932f1113f59d /SDB1_Mountpoint  ext3    errors=remount-ro 0       1
Code:
andy@7:~$ sudo blkid
[sudo] password for andy: 
/dev/sda1: UUID="ac6bf8cc-5bbc-44a6-a92f-0745372729f7" TYPE="ext4" PARTUUID="cafc53cc-01"
/dev/sda5: UUID="d3b14b0b-c2ba-4494-8fa2-c99067b9483f" TYPE="swap" PARTUUID="cafc53cc-05"
/dev/sdb1: LABEL="MAXTOR_SDB1" UUID="b3b0f384-9e2e-45f5-8995-932f1113f59d" TYPE="ext3" PARTUUID="000f0791-01"
/dev/sdb2: LABEL="MAXTOR_SDB2" UUID="8adebdf0-6bc3-4eee-8363-3e9440688d42" TYPE="ext3" PARTUUID="000f0791-02"
/dev/sdb5: LABEL="MAXTOR_SDB5" UUID="fd00f2d7-d666-4614-885d-5ace942dd3f6" TYPE="ext3" PARTUUID="000f0791-05"
First of all, have a read through https://help.ubuntu.com/community/Fstab which explains the various fields and their meanings.

You use a solitary double quote at the start of the UUID - that should be removed.

I like to mount all my external devices under /media to keep things better organised, but that's personal choice.

So I personally would have used:

Code:
UUID=b3b0f384-9e2e-45f5-8995-932f1113f59d /media/sdb1 ext3 rw,auto,users,exec 0 2
after first creating the directory /media/sdb1 as the mount point.

To test the fstab once you've saved it, use sudo mount -a (it's better to know of any problems now rather than on reboot).

Last edited by hydrurga; 02-11-2017 at 01:22 PM.
 
1 members found this post helpful.
Old 02-11-2017, 08:12 PM   #25
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I took your advice and made the changes.

I also used Clonezilla to make a backup image.

I have rebooted several times with no problems. :-)
 
Old 02-11-2017, 10:11 PM   #26
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,772

Rep: Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599Reputation: 3599
Might be time to run OEM hard drive diags with full test. Then run memtest for a few days.

Guess you could double check bios settings or over clocking settings.

I get the feeling that your computer has a problem but could be some sort of updates.
 
Old 02-11-2017, 10:47 PM   #27
Fixit7
Senior Member
 
Registered: Mar 2014
Location: El Lago, Texas
Distribution: Ubuntu_Mate 16.04
Posts: 1,374

Original Poster
Rep: Reputation: 169Reputation: 169
I recently ran a memory test.

No errors.

I have made no BIOS changes.
 
Old 02-12-2017, 08:36 AM   #28
hydrurga
LQ Guru
 
Registered: Nov 2008
Location: Pictland
Distribution: Linux Mint 21 MATE
Posts: 8,048
Blog Entries: 5

Rep: Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925Reputation: 2925
Quote:
Originally Posted by Fixit7 View Post
I took your advice and made the changes.

I also used Clonezilla to make a backup image.

I have rebooted several times with no problems. :-)
Excellent news. :-) Remember to take it easy when making new changes - take a note of what you do and try to be reasonably sure that what are you going to do is the right thing (by researching and asking) and isn't going to possibly break your system. Be a wee bit cautious in particular about any changes that necessitate being root user to do so.

Keep your system up to date with regular apt update and apt upgrade combinations, and make regular backup images, particularly if you are about to make many and/or fundamental changes to your system, so that you can revert back easily. That way you should have a greater chance of maintaining a working system.

Have fun!
 
2 members found this post helpful.
Old 02-12-2017, 03:37 PM   #29
Jjanel
Member
 
Registered: Jun 2016
Distribution: any&all, in VBox; Ol'UnixCLI; NO GUI resources
Posts: 999
Blog Entries: 12

Rep: Reputation: 363Reputation: 363Reputation: 363Reputation: 363
@hydrurga#28: Superbly *excellent* post! Thank you.

@Everyone: Note the lower right of #28: "Did you find this post helpful? Yes"[?]

@Fixit7: Best wishes always. (I know you will mark [ThreadTools] Solved when you drop by again.)
 
1 members found this post helpful.
  


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
I very frequently receive Error 21 using Ubuntu 8.4. Tobie287 Linux - Desktop 4 01-18-2012 09:10 AM
Ubuntu 10.10 freezes frequently with a black screen prakashsince92 Ubuntu 1 07-06-2011 08:47 AM
Monitor Screen on ubuntu 10.04 goes blank frequently Tim Johnson Ubuntu 2 06-22-2010 04:00 PM
Ubuntu Karmic 9.10 Server with lamp frequently drops connection qhhatman Linux - Server 5 03-22-2010 09:36 PM
Ubuntu 7.10 freezes frequently marco18 Linux - Software 2 01-27-2008 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 04:14 AM.

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
Open Source Consulting | Domain Registration