LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 04-16-2011, 07:12 PM   #1
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Fedora
Posts: 234

Rep: Reputation: 8
Question Installing grub on a new HDD


I'm still, sorry, on F12 and sure need to upgrade.

Way back when I first had a bad disk on the "system" disk that was 80G, I only had a 200G lying around.
Next time that happened my other 200G wasn't "big" enough it said, so I put a 500G in there.
Now it seems I got more bad blocks etc but I need to lower the size 'cos I don't want to put a 1Tb HDD in there.

My question from all of this is, how do I decrease the image so I can put it all on a smaller HDD?
Used space on the system disk's partitions is about 30G, so an 80G disk should be sufficient.

Can anyone tell me how to do this?

What I can think of is that I need to "move" all data to the "beginning" of the HDD, then make an image of it but and the entire disk, just the data.
I've tried that with no luck since the image seem to get as big as the HDD, hence why I always needed to increase the HDD all the time.

Please help

//TIA B52

Last edited by Basher52; 04-25-2011 at 04:29 PM.
 
Old 04-16-2011, 07:41 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Wouldn't it be simpler to copy your files with rsync? This way you can partition your new drive the way you want.
 
Old 04-16-2011, 07:47 PM   #3
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Fedora
Posts: 234

Original Poster
Rep: Reputation: 8
yeah, but I need it to be an exact copy of the disk since it's bootable and all
 
Old 04-16-2011, 08:03 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Just copy the files to the new disk and re-install grub. You will get a bootable system this way.
 
1 members found this post helpful.
Old 04-16-2011, 10:00 PM   #5
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 12,497

Rep: Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077Reputation: 1077
Totally agree with TobiSGD.
The only safe way to go IMHO. "imaging" solutions (most of them) only replicate any problems you already have. Copying the files allows you to redesign the partition layout and f/s to whatever is (now) best for you.
Re-installing (classic) grub on Fedora is simple.
 
Old 04-17-2011, 07:34 AM   #6
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Fedora
Posts: 234

Original Poster
Rep: Reputation: 8
hmm, have been fiddling with Linux all these years and never new this
I'm gonna do that right now

thx ya'll
 
Old 04-22-2011, 04:17 PM   #7
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Fedora
Posts: 234

Original Poster
Rep: Reputation: 8
Trying to install grub on the newly switched disk told me that it was already installed, so I 'rpm -e' it.
Tried again but since I now don't have network access how can I use the F12 CD or my own setup repo that I've been using for a long time.
(A pal told me to setup my own repo so all updates would be faster since they are all on my disk that get's DLd during the night)
 
Old 04-22-2011, 04:46 PM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
You misunderstood that part about installing grub. The software of the boot-loader is already installed, as you have already recognized. You have to set it up so that it writes it self to the master boot record.
You can find a detailed HowTo about doing that with Fedora here.
 
1 members found this post helpful.
Old 04-22-2011, 04:47 PM   #9
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Fedora
Posts: 234

Original Poster
Rep: Reputation: 8
UPDATE:

DOH!!

I uninstalled grub and that ain't the same as using 'grub-install'
Now I need to reinstall grub but how can I do that from the DVD or my own repo sicne I can't get network.
 
Old 04-22-2011, 04:59 PM   #10
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
Search for the grub package on your DVD and install it with
Code:
rpm -i NAME-OF-YOUR-GRUBPACKAGE
You need to be root to do that.
 
Old 04-22-2011, 05:55 PM   #11
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Fedora
Posts: 234

Original Poster
Rep: Reputation: 8
that I know, my new problem is that I can't even find my DVD drive
been googling for a while now and still nothing
I got nothing in my fstab either for this DVD drive, can that be "auto" added?
I can add it manually if I can find the device it is, but how can I find that: "That's the question" :P
 
Old 04-22-2011, 05:59 PM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
I don't know for sure about Fedora , but it should be either /cdrom, /dev/cdrom or /dev/sr0.
Assuming that it is /dev/sr0 (which I think it is on most modern systems) you can mount it manually. Just create a mount-point for it (I assume that you are already using /mnt for your harddisk) and then mount it.
Code:
mkdir /DVD
mount /dev/sr0 /DVD
 
Old 04-22-2011, 06:23 PM   #13
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Fedora
Posts: 234

Original Poster
Rep: Reputation: 8
thx Tobi
didn't know that sr0 is the DVD, most on "google" says hdx or something

thx a LOT


btw... what does sr0 stand for?

s=SCSI
r=ReadOnly
0=First device


or?

Last edited by Basher52; 04-22-2011 at 06:26 PM.
 
Old 04-22-2011, 06:46 PM   #14
Basher52
Member
 
Registered: Mar 2004
Location: .SE
Distribution: Fedora
Posts: 234

Original Poster
Rep: Reputation: 8
Frell
My brain sure ain't with my tonight...

I mounted the DVD into /mnt/dvd
I chrooted into my "new" disk and then I want to reinstall grub.
but when I chroot I can't get to the DVD

What am I missing here
 
Old 04-22-2011, 06:47 PM   #15
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
I have absolute no clue for what that can stand. But what you write seems to be somewhat logical, at least until you have a CD/DVD-burner in the system.
 
  


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
How to decrease size of a libc-2.5.1.so? Nad0x00 Linux From Scratch 3 11-14-2007 06:08 AM
How to decrease text editor size? marcoguillen Linux - Software 2 03-24-2007 03:44 AM
How do I decrease K-Menu size? Slamtilt Linux - Software 4 01-12-2006 03:18 PM
photo's size decrease with 'convert' ? thelonius Linux - Software 1 10-04-2005 10:28 PM
How To Decrease Mozilla 1.6 Browser Menu Font Size Ian Linux - Software 3 06-07-2004 07:37 AM


All times are GMT -5. The time now is 03:51 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration