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 07-24-2010, 01:57 AM   #1
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Rep: Reputation: 30
how to install redhat on the attached external usb hard disk?


Dear All
I have RedHat Linux running on my VBox guest on my Windows host. I need to install RedHat Linux on the attached external usb hard disk ,connected to my guest machine.Can you please let me know how can install redhat on this external usb hard disk?
Thank you
 
Old 07-24-2010, 03:19 AM   #2
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
Just install it?

What you must be aware of is the location of the bootloader. If you use grub and install it in the MBR of your internal HD, your system will not be able to boot if the external HD is not connected (not even to Windows). Reason is that part of grub will be on the external HD.

No experience with this type of setup, so there might still be some catches that I'm [edit]NOT[/edit] aware off, but I see the following options to solve this:
  1. You can use LiLo instead on the internal HD (it fits completely in the MBR); not sure if RH still comes with LiLo (my experience goes back to RH8).
  2. you can install Grub on the external HD and use the bootsequence in the BIOS to determine what boots.
  3. you can create a boot partition on the internal HD and install Grub in MBR of the internal HD

Last edited by Wim Sturkenboom; 07-24-2010 at 07:44 AM. Reason: see edit note
 
Old 07-24-2010, 03:22 AM   #3
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Thank you for your reply.Can you please let me know how can I use 'dd' for this purpose ?
 
Old 07-24-2010, 03:31 AM   #4
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Can you please confirm if it can works this way ?
#dd if=/dev/hda of=/dev/sda
 
Old 07-24-2010, 04:52 AM   #5
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
Why would you want to use dd for installation? It would clone the drive in my knowledge.
 
Old 07-24-2010, 05:19 AM   #6
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Actually, I need to make the same machine when connecting this usb hard disk to another machine. So I need some means of cloning my hard disk.Please comment me back.
 
Old 07-24-2010, 05:44 AM   #7
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
If you want to clone the drive, then that dd command should do. But it would be better to use a cloning software like CloneZilla. It is a live distribution, hence both the source and destination drives would not be in use.
 
Old 07-24-2010, 08:18 AM   #8
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Thank you very much. It solved my problem.
 
Old 07-24-2010, 08:50 AM   #9
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Nagpur, India
Distribution: Cent OS 5/6, Ubuntu Server 10.04
Posts: 4,628

Rep: Reputation: Disabled
If you elaborate on how you solved your problem, it could help other members coming for help. Also mark the thread as solved.
 
Old 07-25-2010, 12:07 AM   #10
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
Sorry. My last question is if it is necessary that both of the hard disks have the same size for the 'dd if=/dev/hda of=/dev/sda' to be successful or they can have different sizes ?
 
Old 07-25-2010, 03:04 AM   #11
hadimotamedi
Member
 
Registered: Aug 2009
Posts: 228

Original Poster
Rep: Reputation: 30
I found that disk cloning is not suitable my case as the primary and usb disks are not the same size . Can you please let me know how to install redhat to external usb disk from the redhat installation cd ?
 
Old 07-25-2010, 07:34 AM   #12
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
The story continues in this thread where hadimotamedi tried to install on the external disk
 
Old 07-25-2010, 07:49 AM   #13
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
First it is not necessary to go via a USB external hard disk if you can avoid it. Typically you can hook the second hard disk internally just for the cloning operation. An internal hard disk can be cloned between 3 to 5 times faster than an external hard disk via either a eSata or USB. Internal hard disk can transfer data between 45 to 85Mb/s but the speed will drop to 10 to 15 mb/s via a USB cable.

Secondly you can put the target disk in an external USB hard disk enclosure. On completion just remove the disk and use it to replace your internal hard disk or use it on another machine.

Thirdly you can dd a larger hard disk into a smaller hard disk as long as the partition table of the source disk you read from can be fitted into the capacity of the target disk you are writing onto. This means you might have to resize the partitions so that its overall footprint is no bigger than the target hard disk. Remember in cloning the resulting target disk must have exactly the same partition table as the source. If that partition table needs more cylinders than your target disk no operating system would touch your target disk!

Last edited by saikee; 07-25-2010 at 07:51 AM.
 
  


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
Copy of IBM Server hard disk data to Another USB External Hard disk mazharcdn Linux - Server 2 09-02-2009 01:41 AM
How to install Fedora 9 on external USB hard disk and use a boot CD? Zombie13 Fedora 6 08-27-2008 05:41 PM
60GB laptop hard disk & 200GB external USB hard disk linux compatibility powah Linux - Hardware 0 03-07-2006 11:55 AM
External storage for Linux/Windows: Samba or USB 2.0 attached Hard Drive? SparceMatrix Linux - Hardware 1 02-04-2005 03:33 PM
install a usb external hard disk jik Linux - Newbie 3 08-03-2004 05:21 AM


All times are GMT -5. The time now is 03:20 AM.

Main Menu
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