LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > LinuxQuestions.org > LinuxQuestions.org Member Intro
User Name
Password
LinuxQuestions.org Member Intro New to LinuxQuestions.org? Been a long time member but never made a post? Introduce yourself here.

Notices


Reply
  Search this Thread
Old 08-13-2007, 08:42 PM   #1
terreaultguy
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Rep: Reputation: 0
trouble moving Ubuntu system to an other drive


introducing Myself first:
I am a Program-Analyst, I have been using
Ubuntu 6 and now Ubuntu 7.04 six months

I live in Montreal.

Now My question. I had a 80 Go HD with
Windows XP on hda1 and Ubuntu 7.04 on hda2

I have bought a new HD 160 Go and planed to install on that drive windows and ubuntu. And use the 80 Go drive to make backups.

so after preparing the new HD I set it up to be my Primary drive and the old HD as slave
I installed a new window and Ubuntu on It.
to my surprise that the Ubuntu installation found the other installation on my second drive great. The problem started when i tried to backup my old Ubuntu to the new one. I wish i had found a clear step by step procedure to do so.

Now I have two Ubuntu installation almost the same one on each drive but I cant remove the old one because it is the only one that works fine and the new installation still has bugs. Like it does not see my ext3 partition on second drive.

any way i have been working on that for 2 days so I need a clear step by step of what has to be done.

thanks nice meeting you guys.
hope to know you better
bye Guy
 
Old 08-13-2007, 08:55 PM   #2
jay73
LQ Guru
 
Registered: Nov 2006
Location: Belgium
Distribution: Ubuntu 11.04, Debian testing
Posts: 5,019

Rep: Reputation: 133Reputation: 133
Please give a more detailed description of your issues. As for the ext3 partition being invisible, I would guess that it simply needs to be mounted onto your newer Ubuntu. Check the output of fdisk -l (run this as root) to see all of the partitions on your disks. Then edit /etc/fstab like this:

device mountpoint filesystemtype options pass dump

So if you need, say, an ext3 partition that is the second one on sdb (check fdisk -l):
/dev/sdb2 /home/username/data ext3 defaults 1 2

you will need to make the data mountpoint first:
mdkir /home/your username/data
or you can call it whatever you like:
mkdir /home/your username/foo
or you can even mount it elsewhere, for example right under /:
mkdir /data
(in the latter case, you'll need to be root since only root has permission to write to /).

Save /etc/fstab and then reboot or mount the newly added partition manually: mount -a.

If you run into permission issues with your new directory, simply chown & chgrp
chown -R username /home/username/data
chgrp -R username /home/username/data
 
Old 08-14-2007, 12:47 AM   #3
terreaultguy
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Original Poster
Rep: Reputation: 0
issue solved

TO CLARIFY THE PROBLEM
when I opened the file browser on the left we should find all the drives some are mounted
and usually the second Ubuntu system drive is there and can be mounted if desired
due to a bad restore I did the file fstab was wrong

that also caused that when i used gparted 2 things happened
first there was an error message generated for the two Linux systems
and for reason i do not know the internet connection got broken
and for things going bad i could not even restart or shutdown
i had to log off and the system froze

I had read the fstab file carefully many times the god one on the good system
and the bad one and the only thing that i could see that seamed wrong
was that line eight said # Entry for /dev/hdb2 :

to me it should have been hda2
so i went in my backup.tgz of that drive and got that old fstab

and I changed lines 8, 9

I had all most given up



######## bad fstab ############
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/hdb2 :
UUID=af3072fa-385f-4d46-9515-9c4df1c13ca5 / ext3 defaults,errors=remount-ro 0 1
# Entry for /dev/hdb5 :
UUID=457064e5-1f4a-4962-aa9f-e89771482fbc none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hda3 /media/PARTPARTAGE ntfs-3g defaults,locale=en_CA.UTF-8 0 0
/dev/hda1 /media/Windows\040XP ntfs-3g defaults,locale=en_CA.UTF-8 0 0
/dev/hdb1 /media/WinBK ntfs-3g defaults,locale=en_CA.UTF-8 0 0


## I made a backup of fstab and
## I changed line 8, 9 to

#### NEW FSTAB ####
# /etc/fstab: static file system information.
#
# -- This file has been automaticly generated by ntfs-config --
#
# <file system> <mount point> <type> <options> <dump> <pass>

proc /proc proc defaults 0 0
# Entry for /dev/hda2 :
UUID=4b44d598-e598-4779-8f1c-cfc83011e8c6 / ext3 defaults,errors=remount-ro 0 1
# Entry for /dev/hdb5 :
UUID=457064e5-1f4a-4962-aa9f-e89771482fbc none swap sw 0 0
/dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/hda3 /media/PARTPARTAGE ntfs-3g defaults,locale=en_CA.UTF-8 0 0
/dev/hda1 /media/Windows\040XP ntfs-3g defaults,locale=en_CA.UTF-8 0 0
/dev/hdb1 /media/WinBK ntfs-3g defaults,locale=en_CA.UTF-8 0 0
 
Old 08-14-2007, 01:01 AM   #4
terreaultguy
LQ Newbie
 
Registered: Aug 2007
Posts: 3

Original Poster
Rep: Reputation: 0
by the way since I am new to LinuxQuestions.org is there something more I have to do to terminate the post when the issue is solved.

Thanks to Jay73 his remarks got me thinking...
while I was preparing to giving him more info on the issue. I was wondering if I could insert images to describe my problem on a post.

But like I said in the previous reply I did not need to.

thanks for the Help
bye, Guy
 
  


Reply

Tags
disk, hard, transfer, ubuntu



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 Ubuntu installation to another drive qjimbo Linux - General 5 04-04-2011 11:50 AM
Moving hard drive from one system type to another type SlowCoder Linux - Newbie 7 11-26-2007 10:38 AM
Ubuntu Error 21 on WinXP with Windows on RAID0 Drive and Ubuntu on eSATA drive videocheez Linux - Newbie 12 06-13-2007 11:23 AM
Trouble mounting floppy drive in Ubuntu 5.10 vital_101 Ubuntu 13 09-16-2006 11:14 AM
Moving files from NTFS drive to a EXT3 drive?? webshark Slackware 10 05-28-2006 03:02 PM

LinuxQuestions.org > Forums > LinuxQuestions.org > LinuxQuestions.org Member Intro

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