LinuxQuestions.org
Help answer threads with 0 replies.
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 10-24-2015, 12:53 PM   #16
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35

OK here it is ~

Disk /dev/sda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders, total 117231408 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x20f15306

Device Boot Start End Blocks Id System

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x7acc25c3

Device Boot Start End Blocks Id System
/dev/sdb1 * 2048 146563071 73280512 83 Linux
/dev/sdb2 146563072 302815231 78126080 83 Linux
/dev/sdb3 302817278 312580095 4881409 5 Extended
/dev/sdb5 302817280 312580095 4881408 82 Linux swap / Solaris

Disk /dev/sdd: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x52d03597

Device Boot Start End Blocks Id System
/dev/sdd1 * 2048 625136436 312567194+ 7 HPFS/NTFS/exFAT
 
Old 10-24-2015, 01:03 PM   #17
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35
The Windows 10 Entry has gone from grub as you said, thanks.

I know need to get the Mint system partition moved to sda1 but leave the Home partition on sda2 & then presumably tell Mint where it is, is that right.

Last edited by gillsman; 10-24-2015 at 01:06 PM.
 
Old 10-24-2015, 02:22 PM   #18
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
ok, so you have a completely empty hard drive with 60GB, formerly windows.
there's no partition on it, so it's just sda, not sda1.

you have linux mint, presumably on sdb1, and /home on sdb2.

it is possible to copy sdb1 to sda, and evtl. make it work with the /home on sdb2 and swap on sdb5.

but please consider:
am i right to assume that the 60gb disk is (much) older and slower than the 160GB disk?
maybe you should use it for data, and leave the input/output intensive operating system on sdb?

in case you still want to do this, fire up the live system again (it might be possible to do it from within mint, but it's safer, easier and simpler if you do it from the live medium), find an application called gparted, and see if you can figure out how to copy sda1 to sdb.
since you are copying, you aren't deleting the original and there's no harm if you keep write actions to sda. gparted doesn't execute the changes until you click some sort of OK icon, and always asks for confirmation).
 
Old 10-24-2015, 02:38 PM   #19
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35
What is now sda I.E the old Windows drive is an SSD, only a few months old so it's faster than the hard drive that Mint is now on, that's why I want to copy Mint to that drive.
You are right to assume that sdb1 is the boot partition, sdb2 is home & sdb5 is swap. What I therefore need to do is copy sdb1 to sda, but how do I then point Mint to use the home & swap partitions (sdb2 & sdb5) that will now be on a different drive.
 
Old 10-24-2015, 04:09 PM   #20
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,592

Rep: Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880Reputation: 5880
It might be easier as suggested to copy your /(root) partition from the live disk. No need to update grub at the moment.
I have assume that sda1 is /, sda2 is /home and sda5 swap.

Be sure you have backed all important data to the external drive just in case.

Once the Mint live is running create a sda1 partition and format it as ext4. Make sure that sda is still the SSD.
Mount the old /root (sdb1) as /mnt/oldroot and new root sda1 as /mnt/newroot

You can copy from old to new.
cp -rp /mnt/oldroot/* /mnt/newroot/

You can find the new root sda1 UUID by using the blkid command
Then edit /mnt/newroot/etc/fstab file and update the UUID for / using the information from the above command for sda1

Hopefully, rebooting will be successful and now / is on the ssd.

Always verify your command is correct before pushing the enter key...

Last edited by michaelk; 10-24-2015 at 04:12 PM.
 
Old 10-25-2015, 03:02 AM   #21
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by gillsman View Post
What I therefore need to do is copy sdb1 to sda, but how do I then point Mint to use the home & swap partitions (sdb2 & sdb5) that will now be on a different drive.
step by step.
first you copy.
did you manage that already?
as i said, there's a graphical tool can do that (gparted) but i didn't check it out step by step, because i haven't done it myself. time for you to take a few steps without handholding.
 
Old 10-25-2015, 07:25 AM   #22
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35
Thread Closed

Thank you for all the replies, I clearly have much to learn in terms of the basics of Linux before attempting this so I intend to read up a bit more as I feel I don't fully understand yet what I have to do & don't want to mess up the system as it's taken a long time to configure.
Thanks again.
 
Old 10-25-2015, 08:36 AM   #23
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,444

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Some reading matereial for the future, maybe bookmark the link to the GParted Manual. Aboout as detailed as it gets.

http://gparted.org/display-doc.php%3Fname%3Dhelp-manual
 
Old 10-25-2015, 08:50 AM   #24
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Talk about too many cooks... That's ok, let me just add a possible methodology. First, some assumptions:
/dev/sda is the 60GB SSD
/dev/sdb is a spinning hard drive
/dev/sdb1 is the boot partition (everything but /home)
/dev/sdb2 is the home partition

1. Boot Linux Mint from a live DVD/flash drive
2. Install to /dev/sda1
a. Ensure that any users have the same UID as on the old system
3. Edit /dev/sda1/etc/fstab to mount home from /dev/sdb2
4. Reboot
 
Old 10-25-2015, 10:20 AM   #25
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35
Your assumptions RockDoctor are all correct, 1.) & 2.) great then a & 3 how do I do that? I don't seem to be making anyone understand that I'm not up to speed with all this linux command line stuff, for instance ~

"Ensure that any users have the same UID as on the old system
Edit /dev/sda1/etc/fstab to mount home from /dev/sdb2"

How do I do that?

I don't know what etc/fstab means, where to find it or how to edit it.

This is what I'm struggling with. I can almost hear all the Linux users saying "Oh for God's sake go back to windows if you can't understand it" but I want to learn but without clear instructions how can I.

I want you to realise that I do appreciate the help I'm being offered but at the moment it could be written in Chinese. I have tried to back up all this advice by trawling google to see if it becomes clearer but everyone seems to think the reader will know what it all means & I'm sorry to say I don't.
 
Old 10-25-2015, 12:55 PM   #26
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,444

Rep: Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474Reputation: 2474
Quote:
I'm not up to speed with all this linux command line stuff, for instance ~
The symbol "~" simply means the /home directory. If you are in a terminal in for example the /media directory and type: cd ~ you will then be in your user home directory. Type pwd and it will show that. It's the same as typing: cd /home/gillsman if that is your user.

Logged in as your user on the old system, just type: id and it will output some data including the id for the user.

fstab (file system table) is a text file in the /etc directory. So to edit it, you need admin/root privileges. In the terminal, type:

sudo gedit /etc/fstab should open it. Not sure if you have gedit which is a common text editor. If you don't just replace gedit in the command with whatever text editor you have. Take a look at the fstab file on your current system so you know what it looks like before changing and make a backup of the file in case things go awry.
 
Old 10-25-2015, 01:08 PM   #27
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35
OK that helps, I will go & have look at those things to see if it's beginning to sink in.

Thank You.
 
Old 10-25-2015, 05:10 PM   #28
RockDoctor
Senior Member
 
Registered: Nov 2003
Location: Minnesota, US
Distribution: Fedora, Ubuntu, Manjaro
Posts: 1,791

Rep: Reputation: 427Reputation: 427Reputation: 427Reputation: 427Reputation: 427
Sorry about that, gillsman. I had intended my procedure more as an outline for the others who had posted here. Step 2a can be more-or-less translated into newbie-speak as, "when doing the new installation, add users in the same order as you did when you installed Linux Mint onto /dev/sdb1." It's not essential, but it makes things a little more efficient. Feel free to ignore it. I'm going to backtrack on my step 3. The proper (and easiest) way to deal with using your /home partition in /dev/sdb2 as the new /home partition is in the installation process. The installer should offer you the option of using any existing partition (other than those you've deleted or will be overwriting) and mounting those partitions at any desired mount point. If you specify mounting /dev/sdb2 at /home (be sure you do not reformat it), your old /home directory will appear as your new home directory.
 
Old 10-26-2015, 04:54 AM   #29
gillsman
Member
 
Registered: Mar 2014
Location: UK
Distribution: Mint 18.3
Posts: 192

Original Poster
Rep: Reputation: 35
Ah, that makes more sense, ok many thanks indeed.
 
  


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
moving /home sycamorex Linux - Software 4 05-17-2007 10:25 AM
Moving Home cthomas Linux - Hardware 2 02-17-2007 07:14 PM
Moving UT From /home? carlosinfl Linux - Games 2 04-24-2006 11:26 PM
moving /home drummerdan Slackware 8 03-16-2006 10:30 PM
moving /home to / abu_abdullaah Linux - Newbie 3 07-18-2004 01:15 PM

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

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