LinuxQuestions.org
Latest LQ Deal: Linux Power User 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 10-12-2011, 01:01 AM   #31
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled

That change just returned an error: "no such partition"

Earlier someone requested the output of updating grub:

Code:
Found linux image: /boot/vmlinuz-2.6.35-30-generic
Found initrd image: /boot/initrd.img-2.6.35-30-generic
Found linux image: /boot/vmlinuz-2.6.35-22-generic
Found initrd image: /boot/initrd.img-2.6.35-22-generic
Found memtest86+ image: /boot/memtest86+.bin
Found Slackware Linux (Slackware 13.37.0) on /dev/sdb1

Last edited by DMTspice; 10-12-2011 at 01:19 AM.
 
Old 10-12-2011, 01:46 AM   #32
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

@ rng,

Ubuntu uses grub2. In grub2 count starts from 1 not 0. So, (hd1,1) denotes the first partition on second hard drive which is Slack partition and (hd1,2) will be swap.

@ DMTSpice

I hope this clarifies why it returned "no such partition" error.
 
Old 10-12-2011, 01:52 AM   #33
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
Thanks for the explanation, it makes sense. I changed the file back as soon as I got that error so back to square 1. I'm still experimenting so if I get anywhere I'll post some results.
 
Old 10-12-2011, 01:58 AM   #34
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,011

Rep: Reputation: 25
@T3RM1NVT0R: Thanks for the info. But in that case sdb1 should be (hd2,1) and not (hd1,1).

Last edited by rng; 10-12-2011 at 01:59 AM.
 
Old 10-12-2011, 02:06 AM   #35
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
rng, are you 100% on that or should I wait for T3RM1NVT0R to chime in before I make changes?
 
Old 10-12-2011, 02:10 AM   #36
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, SLES, CentOS, Red Hat
Posts: 2,385

Rep: Reputation: 476Reputation: 476Reputation: 476Reputation: 476Reputation: 476
@ Reply

Nope! That information corresponds to your hard disk slot and is controlled by BIOS thus system takes it as it is. Whereas, partitions are handled by OS and thus they can handle the partition count. Suppose you have got hdd placed on 1st slot then for both OS and BIOS it will be SLOT 0. BIOS do not handle the partition numbering it is completely handled by OS.

Thus, whether it is Ubuntu or any other OS for all of them hdd placed on first slot will be hd0 whereas the partition numbering will depend on bootloader in use.
 
Old 10-12-2011, 02:11 AM   #37
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,011

Rep: Reputation: 25
Sorry, I am not 100% sure. It may be that hard disks are counted from 0 and partitions from 1 in grub2. I use grub legacy.

But you don't need to make changes to the file all the time. Reboot computer, at grub menu select the item, press 'e' to edit, make changes and press 'b' to boot.

Grub legacy was much easier to install and maintain. You may consider doing that.

Last edited by rng; 10-12-2011 at 05:55 AM.
 
Old 10-12-2011, 02:15 PM   #38
colorpurple21859
Senior Member
 
Registered: Jan 2008
Location: florida
Distribution: slackware64-current, puppy, ubuntu
Posts: 1,905

Rep: Reputation: 262Reputation: 262Reputation: 262
This is correct.
Quote:
It may be that hard disks are counted from 0 and partitions from 1 in grub2.
 
Old 10-12-2011, 04:22 PM   #39
DMTspice
Member
 
Registered: Sep 2011
Posts: 42

Original Poster
Rep: Reputation: Disabled
***Update***

After fooling around with this for several days a deeper problem surfaced. Basically, I have SATA and PATA drives on different slots on my machine and it's causing conflicts with device names which makes troubleshooting impossible. I think that's at the root of not being able to boot slackware. So I'm putting this on the back burner for now or until I can pick up an extra SATA drive.

Thanks everyone for all your help.
 
Old 10-13-2011, 09:17 PM   #40
rng
Senior Member
 
Registered: Aug 2011
Posts: 1,011

Rep: Reputation: 25
Booting different hard disks should also work through bios boot device menu.
 
  


Reply


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
How modify fstab when its 'ro' in "repair filesystem" mode ? emuub Linux - Software 3 03-24-2011 08:46 AM
I need a Linux OS other than Ubuntu which has a repair disk or repair software jhmac77 Linux - Newbie 1 03-17-2008 08:04 AM
How to repair FStab after changin hard drives? Anjin Mandriva 4 03-22-2005 04:04 AM
repair my fstab alaios Linux - General 1 09-14-2003 03:37 PM


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