ALERT! /dev/sda1 does not exist. - Installing on external HD
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
The external HD is running through a USB expansion port if it matters.
Quote:
Here is what I now do to successfully load UBUNTU v5.10 on this EXTERNAL USB DRIVE ...
(1) Instead of using "expert" mode to install, I just hit enter to start the install process (using the install CD ... NOT the live CD).
(2) During the partitioning phase, I let the install program format my external USB drive. (I believe UBUNTU calls this a guided partitioning ... which sets up an ext2 or ext3 partition and a swap partition for you.)
NOTE: Look for the line during the partitioning phase that might say ...
erase entire disk SCSI (0,0,0) (sda)
BE VERY CAREFUL on these screens to choose the correct SDA drive and NOT an HDA drive or you may unintentionally format another drive in your system. There is no undo button for this!
Once again ... BE 100% SURE OF THE DRIVE YOU WANT TO FORMAT!
(3) When the install gets to loading the GRUB bootloader ... DO NOT LET IT LOAD TO ANY OTHER DRIVE BUT THE EXTERNAL USB drive we are working with here.
The install program will ask to load GRUB to the master boot record (MBR) of your internal hard drive (HDA). Say NO to this, and on the next screen, type in the correct path to the SDA (external USB) drive where we want to install the GRUB bootloader.
(Mine was /dev/sda)
NOTE: at this point, the install program loads some stuff and ejects the CD ... wanting you to do a reboot.
(4) BE 100% SURE to leave the CD in the drive (and close the drive door) before rebooting. When the PC reboots, type in rescue (to load UBUNTU in rescue mode)
Why do we startup in rescue mode you might ask? It's because we have to edit a few files to get USB support loaded before UBUNTU actually gets going. And, we also need to change a setting in the GRUB menu file to make it work correctly.
(5) When the system comes back up it will ask for a partition to mount. Pick the correct mount point for your drive from the list.
(Mine was mount /dev/discs/disc1/part1)
(6) When it comes up to a terminal window (with RESCUE MODE in the upper left corner) and just sits there, hold down Ctrl-Alt-F2 to open another terminal window for us to do our edits in.
(7) Type in these lines before we start editing out files ...
mount -tproc proc /target/proc <enter>
chroot /target <enter>
su <enter>
NOTE: I used vim to edit the files. It is weird to use at first until you learn what a few keys do in it ... The INSERT key allows you to actually enter text where you place the cursor ... The ESC key takes you out of INSERT mode ... And hitting : x (colon x) saves the file and exits out of vim.
( 8 ) Run vim to edit the modules file to make sure USB support is added/loaded during UBUNTU startup ...
vim /etc/mkinitramfs/modules <enter>
Right below the last line of text, enter these lines ...
ehci-hcd
usb-storage
scsi_mod
sd_mod
Be sure to save the file changes (using : x)
(9) Run vim to edit the initramfs.conf file to make sure enough time elapses for USB support to load before UBUNTU gets running ...
vim /etc/mkinitramfs/initramfs.conf
At the very top of this file, add this line which tells UBUNTU to pause for 12 seconds before starting up ...
WAIT=12 (in all caps here, not sure if necessary though)
Be sure to save the file changes (using : x)
NOTE: Editing these two files loads the necessary commands to get USB support going so UBUNTU will recognize the external USB drive. But we still need to recompile (or recreate) the initrd.img that UBUNTU uses at startup ... so that these edits actually work.
(10) Recompile (recreate) the initrd.img file to include USB support from these edited files ...
(11) Edit the GRUB bootloader menu file to correct a small error that looks at the wrong drive to boot from ...
vim /boot/grub/menu.lst
Navigate down this file until you get to a section where there is a menu list (not commented out ... no #s) that has Ubuntu mentioned three times (and possibly an area mentioning Windows XP down below it, if you have XP installed on an internal drive of yours).
There is a line in these three Ubuntu menu choices that has root listed on it and probably has (hd1,0) to the right of it. We need to change this to (hd0,0) on all three of these menu choices. Why? Because according to GRUB, the external USB drive will be our first drive (hd0,0) and not our second drive (hd1,0) because we loaded GRUB on it's bootsector.
NOTE: You may want to change the root line for the Windows XP section to (hd1,0) just in case you want to boot XP from this menu.
Be sure to save the file changes (using : x)
(12) Exit out of this terminal window (keep typing exit <enter> until the screen actually says to press enter). Hold down Ctrl-Alt-F1 to get back to the RESCUE MODE terminal window and type exit<enter> to reboot the system.
BE 100% SURE TO GET THE CD OUT OF THE DRIVE BEFORE UBUNTU RESTARTS
(13) After rebooting, UBUNTU continues to run it's install process and comes to the desktop. Use the username and password you setup earlier in the install process to get into UBUNTU
then
Quote:
I fixed this myself by adding mptbase and mptscsih to /etc/mkinitramfs/modules and then running 'sudo mkinitramfs -o /boot/initrd.img-2.6.12-6-386.new /lib/modules/2.6.12-6-386'
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.