LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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-19-2008, 11:01 PM   #1
macjax
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Rep: Reputation: 0
Linux Boot disk help !!


Hi...Can anybody help me ?!?!? I am a Windows expert but when it comes to Linux, I am lost ! Even my DOS skills aren't helping me! Here is my problem. I have a music server that is using a Linux OS. I am trying to upgrade the hard drive to a larger one. I have cloned the hard drive under Windows XP. The software sees all 3 partitions and it matches the original drive perfectly. The clone software tells me that if the new drive needs to be a bootable drive (which it does) then I need to boot my computer with a Linux boot disk and login as ROOT (whatever that means). Then it says if using ASPLOADER to type in /SBIN/ASPLDR or if using LILO as a loader type in /SBIN/LILO or if using a different loader to follow the main pages of the loader. My question is do I need to have a computer with Linux installed and running or can I aquire Linux boot disk to do this ? I spent the last 5 hours on downloading crap and trying to get this to work. Does anybody know where I can this type of boot disk where I can just load it and type in a few commands and make my new hard drive a bootable drive? I would prefer a CDROM. Also, is it possible to make a bootable Linux CDROM under Windows XP such as a .ISO ?

Thanks !!

Last edited by macjax; 03-19-2008 at 11:25 PM.
 
Old 03-19-2008, 11:51 PM   #2
mechdave
Member
 
Registered: Apr 2007
Location: Adelaide, Australia
Distribution: Ubuntu 8.10 and 7.10 server
Posts: 95

Rep: Reputation: 15
To obtain a just download a copy of Ubuntu 7.10 (http://www.ubuntu.com/getubuntu/download), this is also a live disk. It will boot your computer straight to a GUI. So basically you need to put your image onto the new HD, then boot the computer with the live disk, open a terminal up (Applications -> Accessories -> Terminal) then type sudo su, then type fdisk -l (it is a lower case L)that should give you a listing of all the partitions on the hard drives. Then type mount -t ext3 /dev/hda* (use the partitions listed in the fdisk -l) /mnt make sure you then can see the root directory (ie /bin /root /etc and so on, if you don't see it use umount /mnt) then type chroot /mnt then type grub-install /dev/hda (do not include the partition number). This will then install grub onto the MBR of the primary partition. Reboot your box and sit back and wait, it should boot straight into Linux.

Good luck,
Mechdave
 
Old 03-20-2008, 12:07 AM   #3
roy_lt_69
Member
 
Registered: Aug 2006
Location: Vancouver, BC, Canada
Distribution: Slackware, Mint, Debian
Posts: 238

Rep: Reputation: 29
You can get a SMALL Linux bootable Live-CD to boot into Linux.
See http://distrowatch.com/ for possible choices eg SystemRescue, or even Damn Small Linux.

From there you will be able to follow the instructions to fix the boot problem, which is probably the bootloader, MBR, etc.
You will need to determine what your original system used, eg Lilo, Grub, etc.
As for root, it is an superuser login to allow you to do administration stuff, like reconfig your system.
Usually when booting from CD the distro will give you the password or root privileges.

Good luck.
 
Old 03-20-2008, 09:05 AM   #4
macjax
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Linux Boot Disk

Hello guys and thank you for answering my question. I will try it out tonight when I get home from work and post my outcome.

Thanks, again . .
Mike
 
Old 03-20-2008, 08:03 PM   #5
macjax
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Hi Dave...OK, I got ubuntu and booted my computer with the CDROM. I got into the terminal and I see the 3 partitions with fdisk -l. They are /dev/hda1 (Linux) (has the * for boot)....Secound is /dev/hda2 (Linus swap / Solaris)...and the 3rd is /dev/hda3 (Linus)....Now, I type in mount -t ext3 /dev/hda1 /mnt and it says according to mtab, it is already mounted but I don't see /bin/root/etc at the prompt ? So I typed unmount \mnt and it says bash: unmount: command not found ??? SO then I typed chroot /mnt and i get to a red prompt....I then typed in grub-install /dev/hda and I get error "Not Found or Not a Block device"??/?

HERE IS A SCREEN SHOT

ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# fdisk -l

Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x27db6167

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 574 4610623+ 83 Linux
/dev/hdb2 575 607 265072+ 82 Linux swap / Solaris
/dev/hdb3 608 19457 151412625 83 Linux
root@ubuntu:/home/ubuntu# mount -t ext3 /dev/hdb1 /mnt
mount: /dev/hdb1 already mounted or /mnt busy
mount: according to mtab, /dev/hdb1 is already mounted on /mnt
root@ubuntu:/home/ubuntu# unmount /mnt
bash: unmount: command not found
root@ubuntu:/home/ubuntu# chroot /mnt
ubuntu / # grub-install /dev/hdb
/dev/hdb: Not found or not a block device.
ubuntu / #


Please help !!

Thanks so much !!

Mike

Last edited by macjax; 03-20-2008 at 11:11 PM.
 
Old 03-20-2008, 08:26 PM   #6
mrrangerman
Member
 
Registered: Oct 2007
Location: MI
Distribution: Debian Slackware
Posts: 528

Rep: Reputation: 59
Here is a link for Booting tips.
 
Old 03-20-2008, 11:12 PM   #7
macjax
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Here is a screen shot:

ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# fdisk -l

Disk /dev/hdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x27db6167

Device Boot Start End Blocks Id System
/dev/hdb1 * 1 574 4610623+ 83 Linux
/dev/hdb2 575 607 265072+ 82 Linux swap / Solaris
/dev/hdb3 608 19457 151412625 83 Linux
root@ubuntu:/home/ubuntu# mount -t ext3 /dev/hdb1 /mnt
mount: /dev/hdb1 already mounted or /mnt busy
mount: according to mtab, /dev/hdb1 is already mounted on /mnt
root@ubuntu:/home/ubuntu# unmount /mnt
bash: unmount: command not found
root@ubuntu:/home/ubuntu# chroot /mnt
ubuntu / # grub-install /dev/hdb
/dev/hdb: Not found or not a block device.
ubuntu / #
 
Old 03-21-2008, 02:22 AM   #8
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
firstly the unmount command is spelt
umount

2) if you have a live cd...you can use it to put a bootloader onto the mbr....but you have not said what was the old bootloader?

3) you have hdb....so your drive is slave on primary controller.
Does hda exist as a hard drive?

leaping ahead ....if you only have one drive its this

boot cd then open a shell....forget all that mount crap

Code:
su
grub
root (hd0,0)
setup (hd0)
quit
but if hda exists as is detected by bios as first bootable drive then its

Code:
su
grub
root (hd1,0)
setup (hd1)
quit
now in both instances only if grub was your previous bootloader...grub will detect its grub files and give a message that it succeeds.

but if you were not using grub please tell us what you were using and do not follow my advice.

4) if hda is to be removed...when you jumper hdb as the new master....you reboot with the live cd and change the /boot/grub/menu and the /etc/fstab

5) IF you remember you were using lilo or something else but want to use grub...you can still do it...but you will need to advise
 
Old 03-21-2008, 03:21 AM   #9
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
Just as an additional remark:

I suggest to download a Knoppix Linux CD/DVD and burn it to a CD/DVD disk. Knoppix is Live CD intended to be a maintenance system.

Even though I don't use Knoppix as the main Linux system for day-to-day work, it has been a great help quite often as a rescue disk to amend problems on other installations and it has an amazing amount of support for different hardware.

As a rescue disk it can be run as root. On a commanline prompt simply type 'su' and it will give you root access even without a password (custom passwords on a burned CD wouldn't work anyway, and most people don't like README files, so for that reason root password has been omitted by knoppix a few years ago).

If you only need Linux as a music server and don't want to work on it, and as such don't need to settle for any specific distribution, than you can also install Knoppix to the hard disk as your default Linux.

Even if you handle this current problem in any other way, Knoppix can be handy to have around.


Hope this helps,
Regards,
SIMP

PS: I'm not a Knoppix sales man, I actually use Fedora, but I have found it very usefull in the past

Debian User

Last edited by simplicissimus; 04-02-2008 at 04:46 AM.
 
Old 03-21-2008, 05:36 AM   #10
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Western Australia
Distribution: Icewm
Posts: 5,842

Rep: Reputation: Disabled
yes but knoppix automounts partitions in readonly mode.

as a demo or replacement distro its excellent.

as a live rescue cd I prefer rescuecd or RIP
 
Old 03-21-2008, 09:26 AM   #11
macjax
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Linux Boot Disk

Hey, thanks guys, gonna give it a shot tonight. I got another quick question. Is there cloning software that is available for ubuntu ? I have fully installed it on one of my computers and I like it. If I take my Linux music servers drive and add it to my ubuntu computer and reclone it, it should work and make it a bootable drive ? correct ?


Thanks,
Mike
 
Old 03-21-2008, 09:31 AM   #12
macjax
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Linux Boot Disk

OH, sorry, I have been saying that is /hda but the drive I want to make bootable is actually /hdb, the second HD that is installed so disreguard everyting I typed with /hda... Also, I have been typing UNMOUNT instead of UMOUNT, I will try typing the correct command tonight, when I get home
 
Old 03-21-2008, 03:14 PM   #13
macjax
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Holy %$%#^$^, YOU ROCK AUS9 !!!! I did exactly what you said and it works !!!!Thanks so much !!!!!!

Mike
 
Old 03-21-2008, 03:23 PM   #14
macjax
LQ Newbie
 
Registered: Mar 2008
Posts: 8

Original Poster
Rep: Reputation: 0
Talking Linux Boot Disk

Holy @%^#&($&# !!!!!! It Freaking Works !!!...thanks So Much Aus9 !!! I Did Exactly What You Said And Bingo !! Also, Thank You To Everyone Else Who Took The The Time Out To Help Me !!

Mike
 
Old 03-22-2008, 06:50 AM   #15
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
remount

Quote:
yes but knoppix automounts partitions in readonly mode.
Don't give up too early! And don't give bad advice.

Knoppix mounts read-only for your safety, but nothing prevents you from remounting in writeable mode. Right-clicking on the device icon gives among others the option to open a settings dialog.

When running any other kind of rescue CD and you're dropped into a shell you will find that in most cases (for safety reasons) all devices are mounted read-only. There is reason behind this!

Even so, you still can remount any device where the writeable option makes sense. Use the 'remount' option in conjunction with 'mount'.

Somethings like this is used to remount root to make it writeable (change filesystem type to your needs):

Code:
mount -F ufs -o rw,remount /
Remount definition: Attempt to remount an already-mounted file system. This is commonly used to change the mount flags for a file system, especially to make a readonly file system writeable. It does not change device or mount point.

If you don't like to read man pages on the shell, go and see http://linux.die.net/man/8/mount

Hope this helps,
Regards,
SIMP
 
  


Reply

Tags
linux



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
Linux boot disk drimades Linux - Kernel 2 02-08-2007 03:06 AM
Dual Boot without Linux Boot Disk goldengoddess? Linux - Newbie 4 05-28-2005 07:34 AM
linux won't boot whitout boot disk grizz Linux - Newbie 2 08-12-2003 02:21 PM
Error after boot with REDHAT LINUX boot disk...HELP PLEASE! Creightin Linux - General 0 03-12-2001 07:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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