LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 03-18-2006, 04:41 PM   #1
jdmcdaniel3
Member
 
Registered: Jan 2006
Location: Austin
Distribution: openSUSE 11.2
Posts: 167

Rep: Reputation: 31
Thumbs up SuSE 10.0 Linux on External USB Dell Latitude D610


OS: SuSE 10.0
Computer: Dell Latitude D610 (Intel 815 Graphics)
Boot Device: External USB 2.0 2.5” Hard Drive with Enclosure (Adaptec ACS-120 & 40 GB Hitachi 2.5" Drive)

Goal: Boot SuSE 10.0 Linux from External 2.5” USB 2.0 Hard Drive Enclosure

This information is based on instructions I found on the Internet about making an external USB 2.0 drive enclosure bootable while leaving the internal hard drive, per-loaded with Windows XP in its original unaltered condition. I do not take credit for all of the information listed in this document. I have added information as it pertains to loading SuSE 10.0 using a Dell Latitude D610 Laptop computer.

I have only worked with four other Linux Distros. They were Red Had 8.0, Red Hat 9.0, Fedora Core 4 and OS/X Core 4.0. Not until I tried SuSE 10.0, did I find an install that would work properly with the Dell D610 Intel Graphics chip. Once I found I could get the video to work with SuSE 10, I preceded in trying to load the OS on an external hard drive.

I highly recommended you consider using the Adaptec ACS-120 External USB 2.0 2.5" Hard Drive enclosure. I found that at least one other cheaper brand enclosure did not want to boot, even though it worked fine when just attaching a USB drive to an already loaded copy of Windows or Linux. You could waste a lot of time trying to boot a USB drive that simply will not boot from the external USB drive enclosure you have purchased. Here are my 12 steps to success.

Step 1: Backup your C: Windows hard drive to another USB external drive (not the drive you are going to load Linux on. I suggest you use Norton Ghost 9 or 10. Both worked great for me. If, you do not back up your internal hard drive, be aware that if you fail to stop GRUB from loading on the Laptop internal IDE hard drive, your copy of Windows may be GONE! Be Ye for WARNED!

Step 2: Setup the correct boot order in the Dell BIOS. Restart the Laptop, and Press F2 to go into BIOS setup. Go to the boot setup and press enter. Use the up and down arrow keys to highlight the USB device and use the 'U' key (Up) or 'D' key (Down) to place the device where you want it. I setup the floppy first, the CD-ROM second, the USB device third and the IDE hard drive forth. Other listed devices can exist in any order below the IDE hard drive. Press enter when done and press Escape to exit and save your changes.

Step 3: Plug-in your USB hard drive into any USB port on the computer (do not use an external hub). If you are using a docking station, use one of the built-in USB ports on the side of the Laptop computer. Do not use a Docking Station USB port. Insert the first SuSE 10.0 disk in the CD-ROM drive. Since the CD-ROM is listed first in the boot order, it should boot up first. Either turn on or restart your computer. I used the five CD-ROM SuSE 10 disk set and did not use the single DVD.

Step 4: Boot from the first SuSE 10.0 Disk and answer the first questions as you wish until you get to the point just before the install. You need to select the Expert tab and pick the Boot Loader. Do Not Install Grub on your local hard drive (Master MBR). Doing so will render your copy of Windows XP unbootable. I selected the second option to load to /Dev/Sdb2. I also picked the Grub option to load generic boot code in the MBR and left the other two options selected.

Step 5: Also, before you begin the install, this is your opportunity to select other software from the lists by picking the software setting on either Tab. I suggest you add games, mobile computing and expert options. Read through the list and watch your used disk space to make sure you have lots of room left over. I used the KDE desktop as I found it was able to print to Windows shared printers with little trouble and in general more of the installed applications seemed to work properly.

Step 6: Let the Install begin. The first disk takes between 10 and 25 minutes to complete depending on the speed of your hard drive and the number programs you are loading. Do not leave the front of your monitor, but watch the load progress. This is because SuSE 10.0 reboots the computer after loading the first disk and the reboot will not work properly until you make more changes to your USB load. Further, you could end up either starting over loading Linux for no reason or locked up on your new USB drive, sitting there not doing anything.

Step 7: Allow the SuSE install Disk one to reboot your computer after the loading of SuSE disk one is complete. Keep Disk 1 of SuSE 10.0 in your CD-ROM drive. Because you have setup the CD-ROM drive to boot before the External USB drive, the first SuSE 10.0 install disk will boot up again. When you get to the first SuSE menu, select the Rescue Linux operation. SuSE will then load the text based Linux system into a RAM drive that can be used to modify you newly loaded USB external hard drive.

Step 8: When you finally get to the Linux Terminal text based prompt enter the name 'root' and press enter. I assume you used the default partitioning of the external USB drive. Now you need to get to the Root of the Linux RAM disk file system and, mount your USB drive and modify your kernel text file to load USB drivers. Type in the following commands without the single quotes and press enter at the end of each line.

'CD ..'
'mkdir /mnt/sysimage'
'mount /dev/sdb2 /mnt/sysimage'
'chroot /mnt/sysimage'

What you just did was create a folder called /mnt/sysimage in your present RAM drive created by the SuSE 10.0 boot disk rescue mode. You then mounted the external USB hard drive partition number 2 into Linux's unified file system. Last, you changed the Root folder to your external USB drive Linux folders. When you do a DIR terminal command now, it will look the same as before you entered all of the above commands, but you are looking at your USB drive instead. It is important to remember the four above steps. You can use them anytime you need to modify a non-working copy of Linux using the Number one Linux 10.0 boot disk.

Step 9: Next, you need to edit the Kernel Text file to allow the loading of USB drivers at boot time by your Linux Kernel after Grub is done. USB drivers are already being loaded by Linux latter, but you need them to load during startup. I assume they are left out here to speed up the loading of Linux from an internal IDE hard drive.

You can use the Text Editor 'VI' which is VERY simple in nature. When you start VI, you can delete characters, but you can not add them, so press the 'INSERT' key to allow adding and removing characters as needed. You can move your cursor any where around the file. Do Not Press Enter unless you really want another line. Press the 'ESCAPE' key to exit the insert mode so you can save the file after doing an edit. Then you press ':wq' which means Command:Write file and Quit. Enter the following terminal command:

'vi /etc/sysconfig/kernel'

Find the line that starts with INITRD_MODULES=” and you want to insert the following items and a space each after the command reiserfs.

ehci-hcd
ohci-hcd
uhci-hcd
usb-storage
sd_mod

It might look something like this when done:

INTRD_MODULES=”reiserfs ehci-hcd ohci-hcd uhci-hcd usb-storage sd_mod”

Other commands may exist before reiserfs and that is OK, just leave them alone. If you see INTRD_MODULES=”” you are most likely not editing the right file. If you can't find kernel, you have not really mounted your external hard drive properly.

Step 10: We need to make the INITRD disk image file to use at boot time based on the items we have in the Kernel Text file. We use the command mkintrd which is defined as:

**********************

mkinitrd, creates an initial image used by the kernel for preloading the block device modules (such as IDE, SCSI or RAID) which are needed to access the root file system. mkinitrd automatically loads file system modules (such as ext3 and jbd), IDE modules, all scsi_host adapter entries in /etc/modprobe.conf, and raid modules if the system's root partition is on raid, which makes it simple to build and use kernels using modular device drivers.

Any module options specified in /etc/modprobe.conf are passed to the modules as they are loaded by the initial ram disk.

The root file system used by the kernel is specified in the boot configuration file, as always. The traditional root=/dev/hda1 style device specification is allowed. If a label is used, as in root=LABEL=rootPart the initrd will search all available devices for an ext2 or ext3 file system with the appropriate label, and mount that device as the root file system.

***********************

Issue the following commands:

'mount -tproc none /proc'
'mkinitrd'

If you get an error that /proc is already loaded, you forgot to enter the CHROOT command in the instructions in Step 8 above. You should see the new USB commands you entered go by the screen in a small blaze of text. If you get any errors at all, you may have skipped a step or misspelled something.

Step 11: OK, now is time for the acid test. Remove your SuSE 10.0 Boot disk one from the CD-ROM drive and hit Ctrl-Alt-Del and restart your computer. If you did it right, SuSE 10 will load from the USB hard drive and continue on with loading, asking for disks two through five.

I suggest you change your monitor setting to Vesa 1280x1024@60hz and make the default screen size the same. I had sound, network and video work like a champ. I have not yet tried out the wireless connection, but I will do so.

Step 12: OK, so you might want to boot to Windows XP while your USB 2.0 External Hard Drive is attached. I found that the default Windows load created by the SuSE 10.0 installation did not work for me. I found that the following entries in the file /boot/grub/menu.lst worked for me.

###Don't change this comment - YaST2 identifier: Original name: windows###
title Windows XP
map (hd0) (hd1)
map (hd1) (hd0)
rootnoverify (hd1,0)
chainloader +1
boot

Here is some important text file information to know.

/etc/kernel Text File with Kernel loading information
/etc/fstab Text file with Loading instructions for mounting drives
and devices
/boot/grub/menu.lst Text File with your Grub Menu selections
/boot/grub/device.map Text file listing hard drives and physical Linux names
/etc/grub.conf The file /etc/grub.conf contains parameters for the
terminal command "grub"

It you find you need to edit one the files listed above, just boot from the first SuSE CD and pick rescue mode. Enter the four commands as listed in Step 8 and use the VI text editor to make your changes. I suggest you use VI to look at all of these files, but just use ':q' to exit VI when done. Lets say you loaded Linux on an internal disk drive and then moved it to an external USB case. You could edit fstab, menu.lst and device.map to match the drives new location. If you change device.map you must enter the following commands to update grub.conf. If you did not change device.map, do NOT enter the following command!

'grub --batch --device-map=/boot/grub/device.map </etc/grub.conf'

Also, if you are using a docking station, do not plug your USB Hard Drive into the docking station USB ports. The external USB drive becomes /dev/sdc and not /dev/sdb when connected to the docking station. So, what you need to do is to plug your USB drive into one of the Laptop side mounted USB ports which still work and allows the drive to remain device /dev/sdb as you have configured your Linux load.

Good luck. You can send your comments to this document to:

jmcdaniel3@austin.rr.com

Thank You,
James D. McDaniel
 
Old 03-21-2006, 08:52 AM   #2
abisko00
Senior Member
 
Registered: Mar 2004
Location: Munich
Distribution: Ubuntu
Posts: 3,517

Rep: Reputation: 58
Thanks for this thread. I've been looking for a success-report about this issue for some time now. Maybe you can submit this to LQ answers/Tutorials? It would be a shame if this howto gets lost in the depths of a regular forum.
 
Old 03-23-2006, 10:10 PM   #3
jdmcdaniel3
Member
 
Registered: Jan 2006
Location: Austin
Distribution: openSUSE 11.2
Posts: 167

Original Poster
Rep: Reputation: 31
Smile Booting SuSE 10.0 from USB on Dell Latitude D610

I would love to send in a copy and make a few corrections. For instance I said Intel 815 graphics when I meant 915. I must have read it three times before posting it, but that got by me. I could also add some info on device.map, menu.lst and fstab as it pertains to the way the Dell BIOS/SeSU 10 combination comes up with its settings. SuSE 10.0 really gets close and only the fact you must add usb support and make a change if you want Windows to really load had to be made. When I tried loading the SuSE 10.0 Super disk, it got a lot of the same things wrong about HD0 and HD1 unlike the SuSE 10.0 standard release.

In my case, I have a work laptop, the Dell Latitude D610 and we are not allowed to load personnel data or programs on that laptop. They did not say anything about using an external USB drive however and so I got a 120 gig external unit made by WD and it works great. I have a large FAT32x partition for all of my data and music files and the two required partitions to get Linux to work. I often must travel out of town and the Dell Laptop is all I have. Now I can do Windows work when I must and play with Linux when I am off in the hotel room. I just got Wireless to look like it is working, but I don't have wireless at home to try it out. I go out of town next week and will give it a try. I have found several good postings about using wireless. You know when something does not work it is hard to determine why. Sometimes the load you have does not work due to bad or missing files. Sometimes you mess it up by loading some other upgrade or program. And often no one else has reported in with their success on your exact machine.

I find it fun to figure out these issues. It reminds me of the old DOS days before Windows took over the world. I do hope Linux continues to improve so it has a real chance to over take Windows, but yet not be too good so some room is left for us to tinker around with it. I have no idea how it will all end up. I just saw today where Windows Vista for the common folk is delayed again. Perhaps new Linux distros before Christmas will help the Linux cause. One can only hope.

Thanks for your comments.

James
 
Old 05-07-2007, 11:56 PM   #4
c_a_s
LQ Newbie
 
Registered: Jan 2007
Distribution: SuSE 10.1
Posts: 3

Rep: Reputation: 0
SuSE 10.1 on External Hard Drive

Very in-depth guide! Wish I had found this before I installed.

The following is a bit confusing...

I have successfully installed identical configurations of SuSE 10.1 to two different external drives (one is mine, the other is a friend's) without following any of the above instructions. The end goal is to be able to plug these "Magic Boxes" into any other x86 computer and boot Linux, but we're having some difficulty getting them to work on single hardware configurations. For clarity; know that I only boot up my Magic Box on my PC, and he only boots his up on his PC.
So far, both external drives can boot SuSE on their respective computers, but a few boot time quirks have come up. If I have a CD in either of my optical drives while booting, it exits to sh and I basically have to remove the cd(s) and reboot. My friend's Magic Box won't make it to the login prompt if his two RAID SATA hard drives are plugged in; it loads the reiserfs module and then tries to mount sda2 as root, but returns an unknown file system error regarding ntfs.
Obviously it is trying to mount the wrong disc. It boots fine upon the disconnection of these two problematic HDs. I don't believe that the mere fact that his drives are SATA interfere with booting. I could not reproduce similar errors on my computer with my Magic Box when I temporarily added another SATA to my system (which is normally a single IDE HD setup.) Is RAID the culprit here? I don't know if this is relevant, but when we installed Linux on the Magic Box, we disconnected the internal HDs to prevent changes to our XP setups. I am still a bit of a linux noob and am wary about editing the kernel lines. Will the above kernel edits fix the one/both of the problems we are experiencing? I know this is a confusing situation. Thanks to anyone willing to help.

Last edited by c_a_s; 05-08-2007 at 12:02 AM.
 
Old 05-08-2007, 06:03 PM   #5
jdmcdaniel3
Member
 
Registered: Jan 2006
Location: Austin
Distribution: openSUSE 11.2
Posts: 167

Original Poster
Rep: Reputation: 31
Exclamation Logical and Physical Drive Designations Are Determined Upon Each Computer Reboot!

There are two basic issues to consider, one is the drive boot priority as setup in your BIOS and second is how your BIOS processes drives and the order that they appear. For instance, if you plugged in two usb hard drives into your system, which one will boot first? One of them will be assigned a lower drive designation than the other.

When you boot from a drive, it has a logical designation like HD0 or HD1 and it has a hardware designation such as sd0, sd1 and so forth. Both drive assignments occur dynamically at boot time based on hardware position and boot priority. And, you are also concerned about drive partition as well. SuSE is configured for a fixed Logical and hardware designation and will not work properly if BIOS settings change or if the physical order the drives are detected are changed. Some issues occur on one PC but not another using the same hardware because of how its BIOS works.

You have to configure SuSE to work on your system and at least with its USB boot drive, you may need to find the highest priority USB port to place your boot drive into so that other drives do not change your SuSE's ability to boot from your present hardware configuration.

Thank You,
 
  


Reply

Tags
boot, box, magic, ntfs, reiserfs, sata, suse



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
Graphics problems with Intel 915GM on Dell Latitude D610 EdoardoC Linux - Laptop and Netbook 46 09-19-2006 06:19 AM
netinstall Dell Latitude D610 can't mount CD-ROM Oxyacetylene Debian 9 02-09-2006 01:51 PM
Help with sound on Dell Latitude D610, works with Knoppix 4.0 CD. carmeli Red Hat 0 02-03-2006 04:53 PM
SUSE 9.1 on Dell Latitude D610, network card issue gooroo363 Linux - Networking 5 01-06-2006 01:36 PM
Mandrake on Dell Latitude. Kernel Panic when trying to install on external USB drive JonBoy Linux - Newbie 5 07-20-2003 03:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 03:47 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
Open Source Consulting | Domain Registration