LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-19-2016, 01:11 PM   #61
visiondude
LQ Newbie
 
Registered: Nov 2010
Location: UK
Distribution: puppyLinux, and OprnSuse
Posts: 14

Rep: Reputation: 9
Need help repartitioning SSD


hi as it looks you have multiple boot points, and this is your problem.
So the first thing is to boot from a live cd
and locate your mbr which should be the first part of sda no partition number
but if it has a number no problem.
Leave ubuntu 12.xx alone, launch gparted and reformat the partitions with ubuntu 14.xx and or 15.xx reboot the live cd and install that version and only set your /root and /swap if one is not on the disk then let the installer take care of boot option.
That should get you back up and running, and not all linux destro support hibernate
 
1 members found this post helpful.
Old 03-19-2016, 01:20 PM   #62
visiondude
LQ Newbie
 
Registered: Nov 2010
Location: UK
Distribution: puppyLinux, and OprnSuse
Posts: 14

Rep: Reputation: 9
Need help repartitioning SSD

Sorry I missed a step point the installer to where your mbr(master boot record) is stored and let the installer do its thing.
 
Old 03-19-2016, 05:49 PM   #63
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Original Poster
Rep: Reputation: 32
H.B.,
Quote:
robert@robert-MS-7641:~$ sudo cat /etc/default/grub
[sudo] password for robert:
# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
# info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
GRUB_CMDLINE_LINUX=""

# Uncomment to enable BadRAM filtering, modify to suit your needs
# This works with Linux (no patch required) and with any kernel that obtains
# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...)
#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef"

# Uncomment to disable graphical terminal (grub-pc only)
#GRUB_TERMINAL=console

# The resolution used on graphical terminal
# note that you can use only modes which your graphic card supports via VBE
# you can see them in real GRUB with the command `vbeinfo'
#GRUB_GFXMODE=640x480

# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux
#GRUB_DISABLE_LINUX_UUID=true

# Uncomment to disable generation of recovery mode menu entries
#GRUB_DISABLE_RECOVERY="true"

# Uncomment to get a beep at grub start
#GRUB_INIT_TUNE="480 440 1"
robert@robert-MS-7641:~$
and
Quote:
robert@robert-MS-7641:~$ sudo cat /etc/fstab
# /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>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda2 during installation
UUID=7fff0116-ceaa-46ad-b43e-233b5e359a58 / ext4 errors=remount-ro 0 1
robert@robert-MS-7641:~$
I hope this yields something useful, but it doesn't mean much to me. Thanks

visiondude, will try as you recommend, but a couple of questions as I cannot visualize the mbr from memory

I have rewritten your instructions to fit my memory. If it is unclear to me, I will enclose in [] and try to explain my confusion

Quote:
So the first thing is to boot from a live cd

and locate your mbr which should be the first part of sda no partition number but if it has a number no problem.

Leave ubuntu 12.xx alone, launch gparted and reformat the partitions with ubuntu 14.xx and or 15.xx

reboot the live cd and install that version and [only set your /root and /swap if one is not on the disk-so the partition should show /root and/or /swap as separate partitions,e.g., sdax if there, no?]

[point the installer to where your mbr(master boot record) is stored-I cannot remember seeing anything described as a master boot record, but will watch for it when I boot the live CD] and let the installer do its thing.

then let the installer take care of boot option.

That should get you back up and running, and not all linux destro support hibernate
More shortly

Edit: I have booted a live cd and chosen "Install"
as I look at the Something Else screen, it shows:
Quote:
/dev/sba
freespace 1MB
/dev/sda1 biosgrub 1GB
/dev/sda2 EXT4 40GB Ubuntu 12.04.5 LTS
/dev/sda3 EXT4 79GB Ubuntu 14.04.4 LTS
and below that is the dropdown selection under
Quote:
Device for bootloader installation
How do I tell where the mbr is? Hope I am not being thick, but this is all semi-greek to me

Last edited by Odyssey1942; 03-19-2016 at 06:06 PM.
 
Old 03-19-2016, 07:09 PM   #64
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
How do I tell where the mbr is?
Under "Device for bootloader installation", click the drop down arrow and the first option should be /dev/sda. If you select that it will install minimal Grub boot code in the master boot record pointing to the boot files on whichever partition you are installing to. You won't see anything specifically saying "install to mbr".

The other option is to install Grub to the partition on which you are installing the new Ubuntu explained in my post above, post 52. If you did that, you would then reboot to 12.04 and run sudo update-grub to get an entry for 14.04.


Quote:
Well, this is looking messy as your boot file now has 3 boot images
There is nothing unusual about that. There are almost always two and I've seen systems with 20 or more that boot fine. This usually only creates problems if there is a separate boot partition and it is too small. It does clutter the boot directory and there is a specific procedure to remove them

Last edited by yancek; 03-19-2016 at 07:14 PM.
 
Old 03-19-2016, 07:28 PM   #65
visiondude
LQ Newbie
 
Registered: Nov 2010
Location: UK
Distribution: puppyLinux, and OprnSuse
Posts: 14

Rep: Reputation: 9
Need help repartitioning SSD

<< How do I tell where the mbr is? >>
<< How do I tell where the mbr is? Hope I am not being thick, but this is all semi-greek to me >>

<< /dev/sba
freespace 1MB
/dev/sda1 biosgrub 1GB
/dev/sda2 EXT4 40GB Ubuntu 12.04.5 LTS
/dev/sda3 EXT4 79GB Ubuntu 14.04.4 LTS >>

/dev/sda1 biosgrub 1GB This looks like your boot space!

Did you enter the text "biosgrub" as the partition label?
You should be able to work with /dev/sda1 because i make the same mistake on my last install and it works fine.

Hope this helps odyssey1942.
 
Old 03-19-2016, 07:45 PM   #66
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Original Poster
Rep: Reputation: 32
yancek, sudo update-grub shows 14.04 on sda3.

You had earlier asked,
Quote:
I don't know what 'grubloader drop-down' you are referring to?
it was the ""Device for bootloader installation" which has a dropdown selection. Apology for not answering earlier.

visiondude,
Quote:
/dev/sda1 biosgrub 1GB This looks like your boot space!

Did you enter the text "biosgrub" as the partition label?
You should be able to work with /dev/sda1 because i make the same mistake on my last install and it works fine.
I have no idea how sda1 got set up but am pretty sure that it was on the SSD when I first put it into my computer. In any case, I did not enter the text "biosgrub"

So, any suggestions now? I still cannot get 14.04 to boot. Any reason I should not run the sourceforge grub repair CD?

Edit: I ran the grub repair. Did not improve anything.

Last edited by Odyssey1942; 03-20-2016 at 07:56 AM.
 
Old 03-20-2016, 07:58 AM   #67
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Rep: Reputation: 50
Quote:
Originally Posted by Odyssey1942 View Post
So, any suggestions now? I still cannot get 14.04 to boot. Any reason I should not run the sourceforge grub repair CD?
So you should have two installs of 14.04 on your SSD? Is that correct?

On your second install of 14.04, what location did you choose for 'Device for bootloader installation'? Did you select sda (the whole drive), sda1 or sda4 (which presumably is the location of the new 14.04 install)?

I have not installed to SSD and I don't have UEFI bios, so I'm not sure what sda1 is doing there. It's also a full 1GB in size.
New installs are usually not this difficult.

I'm wondering if your live CD is an issue? For the sake of variety, you could install 15.04 onto CD (the permanent version, not live), do a SHA256SUM check, and then use that to install to 'free space' on your SSD.
Don't select separate /boot or /swap partitions (to keep things simple).
Install grub specifically to the location where the new 15.04 will reside.

If the above doesn't work, then we will know the problem is not with the CD.
 
Old 03-20-2016, 08:18 AM   #68
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Original Poster
Rep: Reputation: 32
HB, here is my setup:

Quote:
/dev/sda1 biosgrub 1GB
/dev/sda2 EXT4 40GB Ubuntu 12.04.5 LTS
/dev/sda3 EXT4 79GB Ubuntu 14.04.4 LTS
I am unable to find a link to a page that does not contain
Quote:
The desktop image allows you to try Ubuntu-MATE without changing your computer at all, and at your option to install it permanently later. This type of image is what most people will want to use. You will need at least 384MiB of RAM to install from this image.
including the link in #55. I have googled extensively but cannot find anything that does not have this language and therefore presumably a live CD
 
Old 03-20-2016, 08:47 AM   #69
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Quote:
I have no idea how sda1 got set up but am pretty sure that it was on the SSD when I first put it into my computer.
I bios_grub partition is used with GPT partitioning and is usually 1MB in size and contains some Grub boot code. It is usually 1MB in size while your partition is 1GB, 1,000 times larger for some reason.

Run the boot repair and select the option to "Create BootInfo Summary" and post a link to the output here.

Quote:
For the sake of variety, you could install 15.04 onto CD
Just be aware that 15.04 hasn't been supported since January but testing it to see if it installs might prove interesting.

Quote:
The desktop image allows you to try Ubuntu-MATE without changing your computer at all
The language above is what a Live CD does? Your install on sda3 which as far as I can tell from reading your posts, has never booted so the install is likely bad which could happen for any number of reasons. Format it deleting everything on it and re-use it.

When installing, you need to make notes of what happens. Which partition was selected to install the system? Were separate partitions also created during the install? Where was the bootloader installed? Were there any error/warning message during the install? Did you get a message when the install finished indicating the install was successful. The boot repair software can make some changes and repairs to the bootloader but if that isn't successful, there is a lot of detailed information which could help you manually repair if you understand the output. Sicne new users rarely understand, that is why they give the option to post a ling to your output. So you can get help from others who understand it better.
 
Old 03-20-2016, 08:48 AM   #70
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Rep: Reputation: 50
Quote:
Originally Posted by Odyssey1942 View Post
I am unable to find a link to a page that does not contain
including the link in #55.
Yes, I see that now.
It seems with 15.04 there is only one .iso file (1.1GB) and at the beginning of the installation users have the option to select the 'live' version or the 'permanent' version.

Clearly, you are selecting the 'permanent' version when you attempt an install. Is this correct?
 
Old 03-20-2016, 10:09 AM   #71
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Original Poster
Rep: Reputation: 32
When the Live CD boots up, there are two choices, basically:

Try without installing, (so only uses volatile memory), or

Install (this is the one I use and it installs to either the SSD or HDD, as you might want)

The install version brings up screen a little bit like gparted which shows all partitions. The list in my immediate previous post is a "typed" version of that.

Below the list of partitions is the "Device for bootloader installation" which has a dropdown selection showing the device/partition list and gives you a choice of where you want the bootloader.

Hope that is clear

Yancek, I am reinstalling now using 15.10 which is checksum verified. Here is the grub repair link

http://paste.ubuntu.com/15431722/

Last edited by Odyssey1942; 03-20-2016 at 10:12 AM.
 
Old 03-20-2016, 12:03 PM   #72
visiondude
LQ Newbie
 
Registered: Nov 2010
Location: UK
Distribution: puppyLinux, and OprnSuse
Posts: 14

Rep: Reputation: 9
Need help repartitioning SSD

Hi Odyssey1942 when you boot into try before install it allows you to make changes to your ssd or hdd and you can also test your system.

Can you tell us what is the drive ID for both your ssd and your hdd.
 
Old 03-20-2016, 01:05 PM   #73
Odyssey1942
Member
 
Registered: Jul 2006
Posts: 316

Original Poster
Rep: Reputation: 32
Thanks for the heads up for in "Try". Had not thought to try it.

The SSD is sda, the HDD went toes up as set out in #47

So the only thing that shows up at all in anything is sda

Also, just before your post, I had decided to try to install Ubuntu (regular not Mate) 15.10. It has been installing ever since, i.e. over an hour so I think that something has gone wrong with the install. at the bottom of the screen it says:
Quote:
Creating ext4 file system for / in partition #3 of SCSI (0,0,0) (sda)
Doesn't this normally take only take a very few minutes?

I am reluctant to stop the process since it is making significant changes in lots of basic systems.

So how long should I let it run before trying to stop it?

and

what is the safest way to abort the install?

Last edited by Odyssey1942; 03-20-2016 at 01:13 PM.
 
Old 03-20-2016, 01:55 PM   #74
Higgsboson
Member
 
Registered: Dec 2014
Location: UK
Distribution: Debian 8 Cinnamon/Xfce/gnome classic Debian live usb
Posts: 508

Rep: Reputation: 50
Quote:
Originally Posted by Odyssey1942 View Post
Also, just before your post, I had decided to try to install Ubuntu (regular not Mate) 15.10. It has been installing ever since, i.e. over an hour so I think that something has gone wrong with the install.
Yes, it seems the install isn't working. Creating the ext4 filesystem should take seconds (just as it does with gparted).

Quote:
I am reluctant to stop the process since it is making significant changes in lots of basic systems.
Everything is being done on sda3. So sda1 and sd2 should be fine.
Also, it's simply trying to create a filesystem for root (/) - but it's not working.
It looks like the process is in a constant loop. But nothing has been created and nothing has been downloaded yet onto sda3.

Quote:
So how long should I let it run before trying to stop it?
and what is the safest way to abort the install?
There is a function key on the menu to abort after each process.
But the install is currently 'in' a process and so you can't access the menu.
Try ESC, ctrl+alt+delete etc. Either way, the install can't create an ext4 filesystem in sda3.
Your Ubuntu 12 should be untouched and it's on sda2.

The install menu on 'Try' also allows you to check your memory. If you try that, at least you can discount any memory card issues.
Also, on the 'Try' option can you actually boot into the 'live' version and use Ubuntu?
 
Old 03-20-2016, 04:09 PM   #75
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,502

Rep: Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489Reputation: 2489
Your boot repair doesn't show any problems. You have Grub code in the MBR pointing to Ubuntu 12.04 on sda2. On sda2, your grub.cfg file shows entries for 14.04 and they look correct, have the correct UUID anyhow. You might try running a filesystem check on sda3 from Ubuntu 12.04 with:

Code:
sudo fsck /dev/sda3
More details on using fsck at the link below:

http://www.thegeekstuff.com/2012/08/...mand-examples/

When you are doing the new installs on sda3, are you selecting to format that partition as part of the process? You should do that. If you select the "Try Ubuntu" method, you can use GParted to format partitions also.
 
  


Reply



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
Access To Encrypted SSD Partition With Native Password in SSD>SATA Enclosure skidvicious Linux - Hardware 5 12-03-2015 04:40 PM
[SOLVED] I have a SSD a 500GB drive and a 2TB drive and want to move Ubuntu from 500GB to SSD greatormesby Linux - Newbie 12 07-06-2015 09:58 AM
SSD raid1 vs SSD raid10 advice ? wonker Linux - Hardware 8 05-23-2012 01:46 AM
repartitioning brixtoncalling Slackware 10 10-28-2009 03:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:15 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