PCLinuxOS-Forums
News: ...FLASH!!! ...New PCLinuxOS Testing board now open. Register today! Be an active contributor to the PCLinuxOS future! ... Read all about it now, on THIS forum!!!..
 
*
Welcome, Guest. Please login or register. May 25, 2012, 08:48:57 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: [ solved ] Stanza desperation, stanza boots another partion  (Read 251 times)
wedgetail
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 2111


Any Bugs in site?


« on: January 30, 2012, 08:27:56 PM »

Seems I have discovered a backup to my workhorse KDE-mini, though I thought I might have deleted it. I may have been an rsync copy from my /dev/sda2 and found on /dev/sdb12.

I am just showing the two stanzas involved, original and copy and one other which does the right thing.  


Quote
timeout 7000
color black/cyan yellow/cyan
gfxmenu (hd0,2)/boot/gfxmenu
default 0
.....
.....
....
title MiniMe 2011.07  Suspect Still (hd0,1) = /dev/sda2  vga=788  800x600x16bit
kernel (hd0,1)/boot/vmlinuz BOOT_IMAGE=MniMe2010.10 root=LABEL=minime2010 resume=LABEL=swap4000 splash=silent vga=788   console=tty0  console=ttyS0,38400n8 nokmsboot
initrd (hd0,1)/boot/initrd.img
...
...
...
many stanzas
...


title linux - gert test 2011  vga791
kernel (hd1,19)/boot/vmlinuz BOOT_IMAGE=linux_-_gert_test_2011 root=LABEL=B-20  splash=verbose nokmsboot acpi=on resume=LABEL=swap4000 vga=791
initrd (hd1,19)/boot/initrd.img


title MiniMe 2011.07  Suspect Still (hd0,1) = /dev/sda2 vga788 800x600x16 this is rsync -av copy  vga791 1024x768x16bit
kernel (hd1,11)/boot/vmlinuz BOOT_IMAGE=KDE-mini2010.10 root=LABEL=DELTA-12 resume=LABEL=swap4000 splash=verbose vga=791   console=tty0  console=ttyS0,38400n8 nokmsboot
initrd (hd1,11)/boot/initrd.img

...
...
...

When I boot using last stanza it works, but when immediately doing a mount :

Quote
Password:
[root@localhost ~]# mount
/dev/sda2 on / type ext4 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@localhost ~]#

As the copy is on the second drive I tested the stanza in the middle and after startup immediately running mount it will show /dev/sdb20 mounted on /

I need a little hint  Grin
Logged

KDE & KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen
AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4112

Have a nice ... night!


« Reply #1 on: January 30, 2012, 08:33:09 PM »

Hint:

Quote
root=LABEL=DELTA-12

 Grin
Logged
wedgetail
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 2111


Any Bugs in site?


« Reply #2 on: January 30, 2012, 08:50:43 PM »

AS

How about this:

Quote
                                                 cfdisk (util-linux-ng 2.18)

                                                      Disk Drive: /dev/sdb
                                              Size: 1000204886016 bytes, 1000.2 GB
                                     Heads: 255   Sectors per Track: 62   Cylinders: 123562

      Name               Flags             Part Type        FS Type                    [Label]                Size (MB)
 ------------------------------------------------------------------------------------------------------------------------------
                                                            Unusable                                               1.05        *
      sdb1               Boot               Primary         ext3                       [DELTA-01]              32217.38        *
      sdb2                                  Primary         ext4                       [DELTA-02]              42952.42        *
      sdb3                                  Primary         ext4                       [DELTA-03]              53686.41        *
                                            Logical         Free Space                                             1.03        *
      sdb5               NC                 Logical         ext4                       [DELTA-05]              26854.52        *
      sdb6               NC                 Logical         ext4                       [DELTA-06]              29002.34        *
      sdb7               NC                 Logical         ext4                       [DELTA-07]              31149.14        *
      sdb8               NC                 Logical         ext3                       [DELTA-08]              33295.94        *
      sdb9               NC                 Logical         ext4                       [DELTA-09]              10738.47        *
      sdb10              NC                 Logical         ext4                       [DELTA-10]              10738.47        *
      sdb11              NC                 Logical         ext4                       [DELTA-11]              12885.96        *
      sdb12              NC                 Logical         ext4                       [DELTA-12]              12001.05        *
      sdb13              NC                 Logical         ext4                       [DELTA-13]              12885.96        *
      sdb14              NC                 Logical         ext4                       [DELTA-14]              12885.96        *
      sdb15              NC                 Logical         ext4                       [DELTA-15]              16107.18        *
      sdb16              NC                 Logical         ext4                       [DELTA-16]              16107.18        *
      sdb17              NC                 Logical         ext4                       [DELTA-17]              16107.18        *
      sdb18              NC                 Logical         ext4                       [DELTA-18]              21475.89        *
      sdb19              NC                 Logical         ext3                       [DELTA-19]              53688.14        *
     sdb20              NC                 Logical         ext3                       [B-20]                  53688.14        *
      sdb21              NC                 Logical         Linux                                              10001.05        *
                                            Logical         Free Space                                        491729.04        *



I did look at the root=LABEL=DELTA-12 but then the stanza above shows root=LABEL=B-20 similar and it runs fine.  Cry


Addition:

Quote
[root@localhost gert]# df /dev/sdb12
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb12             12G  6.0G  4.5G  57% /media/DELTA-12
[root@localhost gert]#

Logged

KDE & KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen
AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4112

Have a nice ... night!


« Reply #3 on: January 30, 2012, 08:53:37 PM »

AS

How about this:


Please, show us /dev/sda, not /dev/sdb   Wink
Logged
wedgetail
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 2111


Any Bugs in site?


« Reply #4 on: January 30, 2012, 09:17:04 PM »

AS

I have put it in code so it looks neater but can't add cosmetics.  You have got me rattled? What is the thinking?

Code:
                                                    cfdisk (util-linux-ng 2.18)

                                                       Disk Drive: /dev/sda
                                               Size: 1000204886016 bytes, 1000.2 GB
                                      Heads: 255   Sectors per Track: 63   Cylinders: 121601

      Name                Flags             Part Type         FS Type                    [Label]                 Size (MB)
 ---------------------------------------------------------------------------------------------------------------------------------
      sda1                Boot               Primary          ntfs                       [XP]                     36701.20         
      sda2                                   Primary          ext4                       [minime2010]             30005.83
      sda3                                   Primary          ext4                       [kde2010]                30005.83
      sda5                                   Logical          ntfs                       [500GB]                 524287.58
      sda6                                   Logical          swap                       [swap4000]                4186.67
      sda7                                   Logical          ext4                       [ALFA-07]                12576.46
      sda8                                   Logical          ext3                       [lxde2010]               24996.63
      sda9                                   Logical          ext4                       [zen2010]                20003.89
      sda10                                  Logical          ext4                       [gnome2010]              24996.63
      sda11                                  Logical          ext4                       [lxde-mini]              19995.66
      sda12               NC                 Logical          ext4                       [mythtvkde12]            21475.89   *
      sda13               NC                 Logical          ext4                       [backup]                 16319.28   *
      sda14                                  Logical          ext4                       [Backup_Scraps]          23154.17
      sda15               NC                 Logical          ext4                       [ALFA-15]                21475.89   *
      sda16               NC                 Logical          ext4                       [ALFA-16]                21475.89   *
                                             Logical          Free Space                                         168544.86   *


I am not quite out of ideas so I decided to add another stanza but chainload, as I know there is grub stuff on the partition. (find /boot/grub/stage2 or similar, will show (hd1,11))

title  desperation
root (hd1,11)
chainload +1


That also failed, so I assumed it was me that do not understand the chainload after seeing it many times in Old-Polack's teaching. (Thought I was being clever)

Well I tried the same trick on the B-20 changing to root (1,19) was simple, and that works fine.  The menu list was a bit odd and I have ended up running Zen writing this.   Cheesy

I will go back and get some more detail why chainload failed.
 
Logged

KDE & KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen
AS
Global Moderator
Hero Member
*****
Offline Offline

Posts: 4112

Have a nice ... night!


« Reply #5 on: January 30, 2012, 09:22:19 PM »

I was thinking there was the same label on sda2, which clearly is not.  Undecided
At this point I can only think at a wrong fstab in /dev/sdb12, so, boot some other installation, log in as root:

Quote
mkdir /temp
mount /dev/sdb12   /temp
cat /temp/etc/fstab

post results, I'm curious  Cheesy


Logged
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9693


----IOFLU----


« Reply #6 on: January 30, 2012, 09:30:01 PM »

I was thinking there was the same label on sda2, which clearly is not.  Undecided
At this point I can only think at a wrong fstab in /dev/sdb12, so, boot some other installation, log in as root:

Quote
mkdir /temp
mount /dev/sdb12   /temp
cat /temp/etc/fstab

post results, I'm curious  Cheesy




Thinking the same, but ya beat me to it... again. Grin
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
wedgetail
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 2111


Any Bugs in site?


« Reply #7 on: January 31, 2012, 01:03:42 AM »

Most interesting question fstab to be honest I don't understand what fstab really does I can't remember how long ago it is I looked in it.

I think it was back in my very first Linux months (2006?) I found that if I did not update fstab I don't think I would see available drives.  I can't remember how important fstab was in PCLOS2007. Later on it just didn't seem to matter, Konqueror and now Dolphin show available drives and I click on them to mount them as I want them.

Perhaps I have found a use for fstab now  Grin , well here is the fstab for  my normal booting partition (running that at the moment), /dev/sda2:

Code:
[root@localhost gert]# cat  /etc/fstab
# Entry for /dev/sda2 :
UUID=54d9096f-9f73-44a0-bd07-903c7a10c4c9 / ext4 defaults 1 1   < ---------------- /dev/sda2 LABEL=minime2010
none /proc proc defaults 0 0
# Entry for /dev/sda6, this is the common KDE and KDE-mini and others swap file :
UUID=061c4ede-3435-4b06-8be5-e07ba90e2191 swap swap defaults 0 0   < ------------------ /dev/sda6  LABEL=swap4000
# Entry for /dev/sdc6 another swap file, this is on USB465 ext drive :
UUID=6fdbb9bb-f52e-4f56-8c4b-844de0960066 swap swap defaults 0 0    < ---------------- /dev/sdc6 LABEL= "has no label" system on USB hardrive (cleaned out)
none /dev/pts devpts defaults 0 0
[root@localhost gert]#

Above annotations made from, check against content of blkid I have deleted the other 50 lines, gets a bit overwhelming

Quote
[root@localhost there]# blkid
/dev/sda2: LABEL="minime2010" UUID="54d9096f-9f73-44a0-bd07-903c7a10c4c9" TYPE="ext4"
..
..
/dev/sda6: LABEL="swap4000" UUID="061c4ede-3435-4b06-8be5-e07ba90e2191" TYPE="swap"
..
..
/dev/sdc6: UUID="6fdbb9bb-f52e-4f56-8c4b-844de0960066" TYPE="swap"



Hmmm I am starting to see where this is leading, the copy of /dev/sda2 now sitting on /dev/sdb12  will of course have the identical fstab, let me just check.

I have a bit of Old-Polack leftover in the filesystem, getting to a de facto stage I use the likely to exist already /here (yes it does /here and /there)

Quote
[root@localhost ~]# cat /here/etc/fstab
# Entry for /dev/sda2 :
UUID=54d9096f-9f73-44a0-bd07-903c7a10c4c9 / ext4 defaults 1 1
none /proc proc defaults 0 0
# Entry for /dev/sda6, this is the common KDE and KDE-mini and others swap file :
UUID=061c4ede-3435-4b06-8be5-e07ba90e2191 swap swap defaults 0 0
# Entry for /dev/sdc6 another swap file, I think it is on the second hard drive :
UUID=6fdbb9bb-f52e-4f56-8c4b-844de0960066 swap swap defaults 0 0
none /dev/pts devpts defaults 0 0
[root@localhost ~]#

Well that of course explains why a KDE-mini copy on /dev/sdb12 appears to have mounted /dev/sda2 on /

When you look at a boot stanza where is the link to fstab when I accidentally did following, a little light showed up in my brain, fstab is needed?

Quote
[root@localhost gert]# mount /dev/sdb12
mount: can't find /dev/sdb12 in /etc/fstab or /etc/mtab
[root@localhost gert]#

Has something new been introduced whereby Konqueror and Dolphin and Huh will show available drives (not mounted drives) and I can/do use Konqueror to mount and umount my drives.  When it gets messy with loosing track of what drives are mounted I do a quick umount -a and begin all over.  I think I might see what I have of Old-Polack information saved some where.
Logged

KDE & KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen
wedgetail
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 2111


Any Bugs in site?


« Reply #8 on: January 31, 2012, 04:28:28 AM »

Ok, I have now got the /dev/sdb12 or LABEL=DELTA-12 running. I can start from the main menu and when running this backup system I believe it is using the data from DELTA-12.  I have now made mylivecd of this an will skip back to mylivecd thread.

I will just leave these two section for my own record, to show that the use of LABEL make a lot of readability sense.

I have simplified the /sdb12 fstab deleting the now defunct swap file on the external drive.


Code:
[root@localhost gert]# cat /etc/fstab
# Entry for /dev/sda2 :
UUID=54d9096f-9f73-44a0-bd07-903c7a10c4c9 / ext4 defaults 1 1
none /proc proc defaults 0 0
# Entry for /dev/sda6, this is the common KDE and KDE-mini and others swap file :
UUID=061c4ede-3435-4b06-8be5-e07ba90e2191 swap swap defaults 0 0
# Entry for /dev/sdc6 another swap file, I think it is on the second hard drive :
UUID=6fdbb9bb-f52e-4f56-8c4b-844de0960066 swap swap defaults 0 0
none /dev/pts devpts defaults 0 0
[root@localhost gert]# cat /h/etc/fstab
here/ home/


[root@localhost gert]# cat /here/etc/fstab
# Entry for /dev/sdb12 :
LABEL=DELTA-12  / ext4 defaults 1 1
none /proc proc defaults 0 0
# Entry for /dev/sda6, this is the common KDE and KDE-mini and others swap file :
LABEL=swap4000 swap swap defaults 0 0
[root@localhost gert]#

Logged

KDE & KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen
Old-Polack
Administrator
Hero Member
*****
Offline Offline

Posts: 9693


----IOFLU----


« Reply #9 on: January 31, 2012, 04:58:16 AM »

wedgetail:

In a terminal, enter man fstab and press the Enter key.

Alternatively, open the konqueror web browser and enter man:fstab in the location bar, then press the Enter key.

All things fstab will be explained.  Grin
Logged

Old-Polack

Of what use be there for joy, if not for the sharing thereof?



Lest we forget...
wedgetail
PCLinuxOS Tester
Hero Member
*******
Offline Offline

Posts: 2111


Any Bugs in site?


« Reply #10 on: February 01, 2012, 02:49:14 AM »

Looks like a bit of study required.  I have begun working my way through my fstabs and at least make them have a basic outlay. (Having a good review of a number of Old-Polacks ripper contributions too)

1.. root partition
2.. associated swap file
3.. the two none  (you would think this is something that should be reomved  Grin)
4.. /mnt/dvd and /mnt/cdrom
5.. commented out line for floppy drive for the moment

I will mark the topic as solved too.
Logged

KDE & KDE-mini, ASUSTek P5P41D Rev X.0x, BIOS AMI0207 07/21/2009, "Pentium(R) Dual-Core CPU E5300 @ 2.60GHz", nVidia GeForce 9600 GT, 2x1GB Seagate Technology 1000528AS HDD
TV CompuPro VideoMate Vista E700 (not working in Linux), Acer X243HD LCD Screen
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM