LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-02-2007, 01:43 PM   #31
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

pegazuz,

I am beginning to suspect you are installing one hard drive at a time and Mepis isn't booting because the disk order is not static.

I asked the outpout of "fdisk-l" to be posted here so that we could see how a Linux views your partitions.

Until we get the information from the horse's mouth we could not decide how to advise you.

By mounting Mepis partition in Kubuntu you can see the internal information of Mepis and restore its boot loader but Mepis can only boots if the partition reference is correct. You cannot boot a Linux with a Linux already loaded into memory.

Suppose you plug the 1st USB hard disk and install Mepis in it then it will be installed in sda disk. If you pull this USB disk out and insert the second USB disk to install Kubuntu then the 2nd disk will still be called sda. By then if you hook Mepis disk back it will be named as sdb and the installed Mepis will not boot.

Since both Kubuntu and Mepis uses Grub to assist us to formulate a solution please supply the following information

(1) Output of terminal command "fdisk -l"
(2) Mepis' "/boot/grub/menu.lst" and /boot/grub/device.map"
(2) Kubuntu's "/boot/grub/menu.lst" and /boot/grub/device.map"
 
Old 03-02-2007, 02:38 PM   #32
pegazuz
Member
 
Registered: Dec 2006
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by saikee
A
The safest defence for a Linux user is therefore to ask Linux to report to him/her how the disks and partitions are seen by it with the terminal command
Code:
fdisk -l
I always recommend a user to create the partition first so that he/she would knows the names of the partitions he/she are bout to give the installer for the Linux installation. If the system doesn't boot he/she would know where to find it.

Grub error 17 : cannot mount such partition
It menas a wrong partition has been specified and Grub can not mount it, say a data only partition or one unrelated to Linux.

Thus if a user has any booting problem he/she should post here the output of "fdisk -l" plus the relevant menu.lst that fail to fire it up.
I just plugged in second and ran same command and they look identical to me. The first one boots Kubuntu fine and second one creates error message of error 17 when trying to boot Mepis.

fdisk -l

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1216 9765625 83 Linux
/dev/sda2 1216 1338 976562+ 82 Linux swap / Solaris
/dev/sda3 1338 6958 45146484 83 Linux

Disk /dev/sdb: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 1216 9765625 83 Linux
/dev/sdb2 1216 1338 976562+ 82 Linux swap / Solaris
/dev/sdb3 1338 6958 45146484 83 Linux


I do run them one at a time so both would be detected as sda1 when trying to boot. I also installed the linux programs separately to each hard drive when each was only one connected.

I only plugged in both at same time to get this info because I didn't know how to get it off the external drive that won't boot. I was going to get it off a live cd next.

Last edited by pegazuz; 03-02-2007 at 06:10 PM.
 
Old 03-02-2007, 02:50 PM   #33
pegazuz
Member
 
Registered: Dec 2006
Posts: 36

Rep: Reputation: 15
trouble booting Mepis 6.5 from external hard drive.

Quote:
Originally Posted by saikee
pegazuz,



Since both Kubuntu and Mepis uses Grub to assist us to formulate a solution please supply the following information

(1) Output of terminal command "fdisk -l"
(2) Mepis' "/boot/grub/menu.lst" and /boot/grub/device.map"
(2) Kubuntu's "/boot/grub/menu.lst" and /boot/grub/device.map"
It took me a while to figure out how to get this info for both drives but here it is: Hope you can help me figure out a way to get Mepis drive to also boot.

Mepis menu lst
timeout 15
color cyan/blue white/blue
foreground ffffff
background 0639a1

gfxmenu /boot/grub/message

title MEPIS at sda1, newest kernel
root (hd1,0)
kernel /boot/vmlinuz root=/dev/sda1 nomce quiet vga=791
initrd /boot/initrd.img
boot

title MEPIS at sda1, older kernel
root (hd1,0)
kernel /boot/vmlinuz.old root=/dev/sda1 nomce quiet vga=791
boot

title MEPIS at sda1, kernel 2.6.15-27-desktop64-smp
root (hd1,0)
kernel /boot/vmlinuz-2.6.15-27-desktop64-smp root=/dev/sda1 nomce quiet vga=791 root (hd1,0)

boot

title Windows at hda2
rootnoverify (hd0,1)
chainloader +1

title MEMTEST
kernel /boot/memtest86+.bin

Mepis device Map
(hd0) /dev/hda
(hd1) /dev/sda


Kubuntu device map
(hd0) /dev/sda


Kubuntu menu lst

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command 'lock'
# e.g. password topsecret
# password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=/dev/sda1 ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery mode) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title Ubuntu, kernel 2.6.15-28-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-28-386 root=/dev/sda1 ro quiet splash
initrd /boot/initrd.img-2.6.15-28-386
savedefault
boot

title Ubuntu, kernel 2.6.15-28-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-28-386 root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.15-28-386
boot

title Ubuntu, kernel 2.6.15-27-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/sda1 ro quiet splash
initrd /boot/initrd.img-2.6.15-27-386
savedefault
boot

title Ubuntu, kernel 2.6.15-27-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-27-386 root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.15-27-386
boot

title Ubuntu, kernel 2.6.15-23-386
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda1 ro quiet splash
initrd /boot/initrd.img-2.6.15-23-386
savedefault
boot

title Ubuntu, kernel 2.6.15-23-386 (recovery mode)
root (hd0,0)
kernel /boot/vmlinuz-2.6.15-23-386 root=/dev/sda1 ro single
initrd /boot/initrd.img-2.6.15-23-386
boot

title Ubuntu, memtest86+
root (hd0,0)
kernel /boot/memtest86+.bin
boot

### END DEBIAN AUTOMAGIC KERNELS LIST

Last edited by pegazuz; 03-02-2007 at 06:11 PM.
 
Old 03-02-2007, 04:05 PM   #34
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
Your information show two radical situations.

Kubuntu device.map show no internal disk hda. The external disk boots as the first bootable disk (hd0). sda1 is the root of Kubuntu.

Mepis information shows there were 2 disks. 1st bootable disk (hd0) was hda while the external disk was the 2nd disk (hd1). Mepis was also installed its root at sda.

Do you still have an internal hard disk while booting Kubuntu?

If the internal disk isn't there Mepis will boot by these statements (alteration marked red)
Code:
title MEPIS at sda1, newest kernel
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 nomce quiet vga=791
initrd /boot/initrd.img
boot
 
Old 03-02-2007, 10:03 PM   #35
pegazuz
Member
 
Registered: Dec 2006
Posts: 36

Rep: Reputation: 15
Success in booting Mepis from external drive!!

Quote:
Originally Posted by saikee
Your information show two radical situations.

Kubuntu device.map show no internal disk hda. The external disk boots as the first bootable disk (hd0). sda1 is the root of Kubuntu.

Mepis information shows there were 2 disks. 1st bootable disk (hd0) was hda while the external disk was the 2nd disk (hd1). Mepis was also installed its root at sda.

Do you still have an internal hard disk while booting Kubuntu?

If the internal disk isn't there Mepis will boot by these statements (alteration marked red)
Code:
title MEPIS at sda1, newest kernel
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 nomce quiet vga=791
initrd /boot/initrd.img
boot
changing one number is all it took.
cost of labor to change 5 cents
value of knowing which number to change $500

THANKS VERY MUCH!
 
Old 03-02-2007, 10:16 PM   #36
pegazuz
Member
 
Registered: Dec 2006
Posts: 36

Rep: Reputation: 15
Success in booting Mepis from external drive!!

Quote:
Originally Posted by saikee
Your information show two radical situations.

Kubuntu device.map show no internal disk hda. The external disk boots as the first bootable disk (hd0). sda1 is the root of Kubuntu.

Mepis information shows there were 2 disks. 1st bootable disk (hd0) was hda while the external disk was the 2nd disk (hd1). Mepis was also installed its root at sda.

Do you still have an internal hard disk while booting Kubuntu?

If the internal disk isn't there Mepis will boot by these statements (alteration marked red)
Code:
title MEPIS at sda1, newest kernel
root (hd0,0)
kernel /boot/vmlinuz root=/dev/sda1 nomce quiet vga=791
initrd /boot/initrd.img
boot
changing one number is all it took to get Mepis to boot
cost of labor to change 5 cents
value of knowing which number to change $500

THANKS VERY MUCH SAIKEE!

I got it to boot and logged in here by editing the command line in grub. Now I need to figure out how to make change permanent in menu lst but I think I can do it now that I got it to boot and can access it from Mepis and not Kubuntu. Wow, amazing and great feeling.

This has been a most enlightening learning experience and very gratifying that it succeeded too.
Maybe I really might be able to get this Linux stuff to work. Now that i got three distros that can boot up, (two from external hard drive and one from a flash drive) I think I will concentrate on getting them set up to do the things I want to use. I like the fact Mepis boots up and detects my wireless network while open without any changes. Next step is to change it back to secure and then get it to connect. So I got lots more work and learning to keep me busy for awhile.
 
Old 03-03-2007, 03:16 AM   #37
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
Good.

Two happy endings in one thread.

You will find Linux treats you as a first class PC user and gives you the complete control of your PC. Things you learn are real knowledge, perfectly logical and will last for very long time.

----------------------------------------------------
Tips for moving a Linux from partition to partition.

If you change the boot disk disk order, or adding extra disk or removing a disk from the PC it is equivalent to migrating a Linux from one partition to another because it partition reference has been changed.

To make the Linux bootable at the new location you must update the partition reference in

(1) Grub's menu.lst in the "root" statement and the root=/dev/xxx of the "kernel" statement. The latter may be unnecessary for Red Hat distros that use root=Label instead of root=device name.

(2) Update /etc/fstab to make sure the partitions that the kernel must mount are the correct ones.

(3) Amend /boot/grub/device.map if applicable

(4) For Lilo amend the partition reference in "boot=" and "root=" statements and recompile it with the "lilo -b /dev/destination", where destination can be MBR like "hda", "sda" etc or root partition like sda6 or hda2

Last edited by saikee; 03-03-2007 at 03:36 AM.
 
Old 03-03-2007, 04:53 AM   #38
pegazuz
Member
 
Registered: Dec 2006
Posts: 36

Rep: Reputation: 15
How to add other OS to hard drive?

Quote:
Originally Posted by saikee
Good.

Two happy endings in one thread.

You will find Linux treats you as a first class PC user and gives you the complete control of your PC. Things you learn are real knowledge, perfectly logical and will last for very long time.

----------------------------------------------------
Tips for moving a Linux from partition to partition.

If you change the boot disk disk order, or adding extra disk or removing a disk from the PC it is equivalent to migrating a Linux from one partition to another because it partition reference has been changed.

To make the Linux bootable at the new location you must update the partition reference in

(1) Grub's menu.lst in the "root" statement and the root=/dev/xxx of the "kernel" statement. The latter may be unnecessary for Red Hat distros that use root=Label instead of root=device name.

(2) Update /etc/fstab to make sure the partitions that the kernel must mount are the correct ones.

(3) Amend /boot/grub/device.map if applicable

(4) For Lilo amend the partition reference in "boot=" and "root=" statements and recompile it with the "lilo -b /dev/destination", where destination can be MBR like "hda", "sda" etc or root partition like sda6 or hda2

Now that I got Mepis running on one and Kubuntu on the other, I next want to learn how to add another partition and OS to the drives so i can try other newer versions. Mepis now version 7.0 out and Kubuntu has some 64 bit versions I want to try. I should be able to get three or four partitions on these 60 gb drives, right?

My version of dual booting has been to have two different drives and then pug in the one I want to boot. Not very elegant compared to your running 12 OS on my drive, but it was a safe way for a beginner to start.

What tutorial of reference can you suggest to help a beginner learn to do this?
 
Old 03-03-2007, 05:00 AM   #39
pegazuz
Member
 
Registered: Dec 2006
Posts: 36

Rep: Reputation: 15
Quote:
Originally Posted by saikee

Do you still have an internal hard disk while booting Kubuntu?


boot[/code]
i think I still access to the internal hard drive as this shows

fdisk -l

Disk /dev/hda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 1 637 5116671 12 Compaq diagnostics
/dev/hda2 * 638 7583 55793745 c W95 FAT32 (LBA)
/dev/hda3 7584 14593 56307825 c W95 FAT32 (LBA)

Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1216 9765625 83 Linux
/dev/sda2 1216 1338 976562+ 82 Linux swap / Solaris
/dev/sda3 1338 6958 45146484 83 Linux


I just don't know where to find it or how to access it yet under Mepis since the software looks very different. I am only likely to use the internal hard drive to reference some documents or get pix I want to work with under GIMP, but I haven't learned how to do this yet? I did add a program under windows that allows me to see the ext files on external drives so I can also use that to move or copy files I think.

Thanks again for the help.
 
Old 03-03-2007, 08:41 AM   #40
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
You can always mount the Wondows partitions in either Kubuntu or Mepies.

In console as root, jus issue these commands
Code:
mkdir /mnt/hda2
mkdir /mnt/hda3
mount /dev/hda2 /mnt/hda2
mount /dev/hda3 /mnt/hda3
You will find the two Windows partitions available for your access in the desktop /mnt directory.
 
Old 08-24-2007, 10:05 PM   #41
spartan263
LQ Newbie
 
Registered: May 2004
Location: University Park, PA
Distribution: FC2
Posts: 6

Rep: Reputation: 0
WD Passport Partition, MBR = Defective

Quote:
Originally Posted by mck View Post
Is there some firmware in the WD Passports that prevents Linux from partitioning the MRB on these devices?

Thanks,
MCK
I ran into exactly the same problem on a WD Passport 60GB on a Thinkpad T60/T60p (Model No. WD600U017-001) The problem is that tools such as fdisk, parted, dd and Windows Vista create a partition table, but those changes remain in memory only and are never actually written to disk. If firmware is preventing the write, then the "feature" is enough to make the drive "defective".

I strongly suggest staying away from these self-powered Western Digital drives. Support sucks. RMA, RMA, RMA.
 
  


Reply

Tags
boot, drive, external, flash, hard, kubuntu, puppy, usb


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
maxtor usb external hardrive issues mykyl Linux - Hardware 6 11-01-2006 04:15 PM
To upgrade Suse 9.1 to KDE 3.4, How to do it with a external hardrive cheetahman SUSE / openSUSE 4 03-31-2005 01:57 AM
Dual Hardrive Booting suse 9.1 & XP Odin5578 SUSE / openSUSE 2 11-01-2004 02:13 AM
mounting an external hardrive got_nix Linux - Newbie 2 10-18-2004 01:37 AM
external hardrive on redhat 7.3 vicky4u_hyd Linux - Hardware 0 07-11-2004 01:10 PM


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