LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-05-2011, 11:38 AM   #16
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649

You should backup everything(save an image of whole drive) before continuing.
Another thing is if you have your system running you can change physical position of OS on drive.

Last edited by EDDY1; 03-05-2011 at 11:39 AM.
 
Old 03-06-2011, 12:57 AM   #17
cddodo
LQ Newbie
 
Registered: Mar 2011
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you EDDY1,
Can you recommend me some tutorial on back out the whole image or the drive and methods moving the position of my OS on drive?

best,
 
Old 03-06-2011, 01:12 PM   #18
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Do you have another drive?
If so using clonezilla, you can save images of whole drive or individual partitions.

This 1 is for whole drive.
http://linuxgravity.com/creating-and...with-clonzilla.
There's an option to save images of each individual partition that's your best option as you'll be able to selectwhich partition you want to restore.
Btw syg00 has much more experience, so you may want to request his help as I'm a newbie.

Last edited by EDDY1; 03-06-2011 at 01:14 PM.
 
Old 03-06-2011, 06:49 PM   #19
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 14,843

Rep: Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823Reputation: 1823
Clonezilla is a good suggestion.

For moving the partitions, use gparted from a liveCD - note you *cannot* do this safely from the running system.
 
1 members found this post helpful.
Old 03-07-2011, 10:07 AM   #20
cddodo
LQ Newbie
 
Registered: Mar 2011
Posts: 12

Original Poster
Rep: Reputation: 0
Thanks to EDDY1, I will try this one. But currently I only have 320g usb driver while my main hard driver is 500g. I will look into it.
Also thanks to syg00, I will follow your advice and try to get my OS moved to right place.
 
Old 03-09-2011, 05:27 AM   #21
milindlokde
Member
 
Registered: Apr 2007
Location: Mumbai, India
Distribution: Fedora, ubuntu
Posts: 121

Rep: Reputation: 21
Cloning is good idea, safe and simple if you have enough free space.
Anyway you won't loose any data by deleting swap partition, which is /dev/sda4 unless you don't understand partitioning. Deleting it and creating new logical swap partition will asign it /dev/sda5 or above.
Correct it in ubuntu's /etc/fstab using liveCD.
You can assign as many new logical partition as needed.
Remember one disk support maximum 4 primary partition, reason for missing disk space.
Backup of /home directory should suffice if you haven't stored any data elsewhere.
If you have made configuration changes then backup /etc directory.
Backup /var/www and your database if you had your webserver setup.
Backup of Ubuntu system is unnecessary if you have it's DVD and not installed any custom packages or drivers.
 
Old 03-11-2011, 03:23 AM   #22
cddodo
LQ Newbie
 
Registered: Mar 2011
Posts: 12

Original Poster
Rep: Reputation: 0
I parted my disk again and got the missing part back.
Here is what I did:
Boot the system with ubuntu live usb.
Run parted on sda: part /dev/sda
Change unit to sector: unit -s
Remove the sda3: rm 3
Create the extended partition, using all the unused part of the drive except a 2g partition for backup.
Recreate a logical partition sda5 on exactly the same place of original ubuntu os root i.e. original sda3.
Move the win7 partition (original sda2) to the right and resize it a little bit.
Fix the grub in MBR with grub-install --root-directory
Now my system is ok to use without losing any data.

While I have two problems right now:
1, The win7 can not boot. I searched a solution said I should use a win7 installation disk to repair the win7 partition. I am working on it.
2, There is still "Partition 1 does not end on cylinder boundary." This is very wired since I already move my partition to the right and leave about 8m space between these two partitions.

/dev/sda1 2048 206847 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 224910 81947564 40861327+ 7 HPFS/NTFS

Can anyone tell me how to fix this cylinder boundary problem?

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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: 0x3ef75c5c

Device Boot Start End Blocks Id System
/dev/sda1 2048 206847 102400 7 HPFS/NTFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 224910 81947564 40861327+ 7 HPFS/NTFS
/dev/sda3 81947565 972671489 445361962+ 5 Extended
/dev/sda4 972671490 976768064 2048287+ 1b Hidden W95 FAT32
/dev/sda5 * 482035712 968364031 243164160 83 Linux
/dev/sda6 968366133 972671489 2152678+ 82 Linux swap / Solaris
/dev/sda7 81947691 278792009 98422159+ b W95 FAT32
/dev/sda8 278792073 482030324 101619126 83 Linux
 
Old 03-11-2011, 03:36 AM   #23
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
sudo os-prober
sudo update-grub
 
Old 03-12-2011, 11:04 AM   #24
cddodo
LQ Newbie
 
Registered: Mar 2011
Posts: 12

Original Poster
Rep: Reputation: 0
thank EDDY1,
But my problem is not in the grub menu. I did have the win7 in my grub menu. But when I choose the windows7, it turns out "there is some change in hardware, please insert your installation CD and choose repair."
I am looking for win7 boot CD now.
Any idea about the "Partition 1 does not end on cylinder boundary" problem?
 
Old 03-12-2011, 12:34 PM   #25
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
If you can't find disk you can download recovery coinsole
http://www.proposedsolution.com/solu...overy-console/
 
  


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
Partition 1 does not end on cylinder boundary.,why is this? cola Linux - Newbie 3 01-29-2010 08:32 AM
Partition 1 does not end on cylinder boundary wood_morris Linux - Newbie 6 08-28-2009 05:57 AM
Partition 1 does not end on cylinder boundary. Galaxy_Stranger Fedora 22 08-24-2009 01:55 AM
need partition to end on cylinder boundary Master of Reality Linux - General 5 02-03-2006 10:51 PM
Partition does not end on cylinder boundary snisheeth Linux - General 0 01-22-2004 08:38 PM


All times are GMT -5. The time now is 06:33 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration