LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 11-16-2005, 05:34 PM   #1
nrbelex
LQ Newbie
 
Registered: Nov 2005
Posts: 7

Rep: Reputation: 0
ALERT! /dev/sda1 does not exist. - Installing on external HD


Hi,

I'm attempting to install Ubuntu on a 4Gb drive in an Adaptec ACS-100.

More to follow - I need 5 posts to show a URL which is important.
 
Old 11-16-2005, 05:35 PM   #2
nrbelex
LQ Newbie
 
Registered: Nov 2005
Posts: 7

Original Poster
Rep: Reputation: 0
a few more...
 
Old 11-16-2005, 05:36 PM   #3
nrbelex
LQ Newbie
 
Registered: Nov 2005
Posts: 7

Original Poster
Rep: Reputation: 0
two more...
 
Old 11-16-2005, 05:36 PM   #4
nrbelex
LQ Newbie
 
Registered: Nov 2005
Posts: 7

Original Poster
Rep: Reputation: 0
last one...
 
Old 11-16-2005, 05:37 PM   #5
nrbelex
LQ Newbie
 
Registered: Nov 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Hi,

I'm attempting to install Ubuntu on a 4Gb drive in an Adaptec ACS-100. I followed the instructions at http://ubuntuforums.org/showthread.php?t=80811 (see below) and then at http://www.ubuntuforums.org/showthre...dropping+shell (also below) but I'm still getting an error saying ALERT! /dev/sda1 does not exist.

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 ...

mkinitramfs -o /boot/initrd.img-2.6.12-9-386 /lib/modules/2.6.12-9-386

(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'
Any thoughts would be appreciated.
~ Brett

Last edited by nrbelex; 11-16-2005 at 05:42 PM.
 
Old 11-17-2005, 06:49 AM   #6
nrbelex
LQ Newbie
 
Registered: Nov 2005
Posts: 7

Original Poster
Rep: Reputation: 0
Anybody?

Thanks!

~ Brett
 
  


Reply



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
USB drive... /dev/sda1 does not exist! Lord Zoltar Linux - Hardware 48 05-15-2005 11:55 AM
special device sda1 does not exist mer0090 Linux - Hardware 3 01-22-2005 08:36 AM
special device sda1 does not exist mer0090 Fedora 6 01-21-2005 06:23 AM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 04:54 AM
USB Compact flash card reader hotplug creates /dev/sda but no /dev/sda1 -Mandrake 9.1 bibinono Linux - Hardware 2 08-11-2003 09:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:31 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