Author Topic: Zen-Mini install  (Read 2480 times)

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2880
    • other projects...
Re: Zen-Mini install
« Reply #15 on: November 21, 2010, 03:19:19 PM »
Quote
5. Move your cursor down to the line(s) where you see the truncation (e.g., "UUID=8845$") and slowly, carefully use your Right Arrow key to move the cursor past the "$" symbol. (As an alternative, you can type Ctrl-E to reach the end of that line).

kernel (hd0,1)/boot/vmlinuz-2.6.33.7-pclos6.bfs BOOT_IMAGE=linux root=UUID=884599c9-bf30-4f5a-9d5c-e4ce70f8b9b1 resume=UUID=8dbcae55-29d$


really appreciate your help in tring to sort this out

Thanks kalwisti for helping out!  ;)

Innova, could you as root delete the part "resume=UUID=8dbcae55-29d..." from the line you cited in the /boot/grub/menu.lst, so the entry should read:


title linux
kernel (hd0,1)/boot/vmlinuz-2.6.33.7-pclos6.bfs BOOT_IMAGE=linux root=UUID=884599c9-bf30-4f5a-9d5c-e4ce70f8b9b1 splash=silent vga=788
initrd (hd0,1)/boot/initrd-2.6.33.7-pclos6.bfs.img


then safe the file /boot/grub/menu.lst and reboot, make sure you use the boot entry "linux", should be pre-selected.
« Last Edit: November 21, 2010, 05:20:30 PM by old-polack »

Offline kalwisti

  • Sr. Member
  • ****
  • Posts: 276
Re: Zen-Mini install
« Reply #16 on: November 21, 2010, 04:59:32 PM »
really appreciate your help in trying to sort this out

You're very welcome. I'll let pinoc take the lead here, since he is more knowledgeable than I am. I hope that his suggestion will reduce your boot time to something within the normal range.

I still have a suspicion that your swap partition may be involved here, i.e., it may have been assigned a new/different UUID -- which was what happened in my case, when I installed Fedora on a spare partition and allowed its Anaconda installer to re-partition my swap partition.

As a side note, I did first try fixing the problem by learning the newly assigned swap UUID (from the
Code: [Select]
# blkid command), then I simply copied and pasted it into the appropriate place(s) in /boot/grub/menu.lst and /etc/fstab. However, for some reason I don't fully understand, this approach made no difference in the slow boot time. So I used the fix proposed by DLWood and old-polack.

Hang in there and I'm sure we can solve this for you.



Registered Linux User # 442201

LinPC box:  AMD Athlon II X2 240 (Regor) 2.8 GHz, 4 GB RAM, Seagate Barracuda 320 GB HD, Nvidia GeForce 6150SE nForce 430 integrated GPU, Samsung SH-S222L DVD-RW

Offline innova

  • Full Member
  • ***
  • Posts: 68
Re: Zen-Mini install
« Reply #17 on: November 21, 2010, 05:22:17 PM »
Quote

title linux
kernel (hd0,1)/boot/vmlinuz-2.6.33.7-pclos6.bfs BOOT_IMAGE=linux root=UUID=884599c9-bf30-4f5a-9d5c-e4ce70f8b9b1 splash=silent vga=788
initrd (hd0,1)/boot/initrd-2.6.33.7-pclos6.bfs.img


then safe the file /boot/grub/menu.lst and reboot, make sure you use the boot entry "linux", should be pre-selected.

I can change the line to read as above in Nano but cant seem to save it,feel stupid asking how to do that

thanks Kalwisti for your support

Offline kalwisti

  • Sr. Member
  • ****
  • Posts: 276
Re: Zen-Mini install
« Reply #18 on: November 21, 2010, 05:29:54 PM »
I can change the line to read as above in Nano but cant seem to save it.

No problem; that's not a dumb question. To save your changes/edits, just type Ctrl-O -- that's an 'o' as in 'Oscar', not a zero (= "WriteOut") -- and then press Return.
Registered Linux User # 442201

LinPC box:  AMD Athlon II X2 240 (Regor) 2.8 GHz, 4 GB RAM, Seagate Barracuda 320 GB HD, Nvidia GeForce 6150SE nForce 430 integrated GPU, Samsung SH-S222L DVD-RW

Offline kalwisti

  • Sr. Member
  • ****
  • Posts: 276
Re: Zen-Mini install
« Reply #19 on: November 21, 2010, 05:44:34 PM »
FYI, in case this comes in handy later on, some Googling revealed how to enable "soft wrapping" in Nano. This will allow Nano to display the entire contents of a line, even if it is longer than the screen's width. Use the "-$" [hyphen, dollar sign] option, as in:

Code: [Select]
[root@localhost david]# nano -$ /boot/grub/menu.lst
Passing that option to Nano will produce this output:

Code: [Select]
title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=63f75e7a-ca71-43f9-b79
8-4f8c6983b47b  resume=UUID=7406f562-54be-462f-be43-8758c3b59257
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=63f75e7a-ca71-43f9-b798-4
f8c6983b47b  failsafe
initrd (hd0,0)/boot/initrd.img

Instead of this truncated/wrapped output:

Code: [Select]
title linux-nonfb
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=63f75e7a-ca71-43f9-b7$
initrd (hd0,0)/boot/initrd.img

title failsafe
kernel (hd0,0)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=63f75e7a-ca71-43f9-b798-$
initrd (hd0,0)/boot/initrd.img

Registered Linux User # 442201

LinPC box:  AMD Athlon II X2 240 (Regor) 2.8 GHz, 4 GB RAM, Seagate Barracuda 320 GB HD, Nvidia GeForce 6150SE nForce 430 integrated GPU, Samsung SH-S222L DVD-RW

Offline innova

  • Full Member
  • ***
  • Posts: 68
Re: Zen-Mini install
« Reply #20 on: November 21, 2010, 05:57:42 PM »
Thankyou
   cant seem to find a etc/fstab. file any where. When opened in Nano the page is blank! Guess this is not helping

Quote
To save your changes/edits, just type Ctrl-O -- that's an 'o' as in 'Oscar', not a zero (= "WriteOut") -- and then press Return.
Quote
Or ^w
Neither of these gets Nano to save the changes
« Last Edit: November 21, 2010, 06:12:01 PM by innova »

Offline kalwisti

  • Sr. Member
  • ****
  • Posts: 276
Re: Zen-Mini install
« Reply #21 on: November 21, 2010, 06:36:27 PM »
Uh-oh ... sounds like this might be a problem because your filesystem should have an /etc/fstab.

The graphical way to check if this file is present, is to use the Nautilus File Manager to navigate to your root filesystem's /etc directory. (I apologize; I'm a total doofus for not remembering that you are using GNOME rather than KDE!) your Dolphin File Manager (I'm assuming that you're running the KDE 4 version of PCLOS), whose icon resembles a blue filing cabinet, and navigate to the /etc directory. Click on the red "Root" folder, in the left-hand panel of Dolphin (it's labelled "Places" at the top of the panel), and then look for the folder labelled "etc" and single-click on it.

Scroll down and look for a text-file icon labelled "fstab". You should hopefully see something like this:

http://img69.imageshack.us/img69/4624/etcfstab.png

http://img811.imageshack.us/img811/2825/etcfstabnautilus.png
(Note: I don't have PCLOS GNOME Edition installed; this screenshot is from my CentOS 5.5 setup, which is the only GNOME desktop I currently have on my machine. PCLOS's version of GNOME will look slightly different).

The Terminal way of checking for fstab goes like this:

1. Open up a Terminal / Konsole and type:

Code: [Select]
[david@localhost ~]$ cd /etc/
[david@localhost etc]$ ls

(That's a lower-case letter 'el' (not the number 1 or a capital I); the ls command stands for 'list').

2. You'll see a fair amount of stuff scroll by; I'll cut-and-paste the relevant output:
Code: [Select]
fonts/                mozpluggerrc.default    skel/
foomatic/             mplayer/                sound/
fstab                 mplayerplug-in.conf     squid/
fstab~                mplayerplug-in.types    ssh/
fstab.old             mtab                    ssl/
gconf/                mtools.conf             statetab

As a final check, are you sure that you're typing the command below exactly as it appears?

Code: [Select]
[root@localhost david]# nano /etc/fstab
(Make certain that you type both forward slashes as well as just fstab -- not .fstab or fstab. (i.e., no initial period or final period). The Terminal is very picky about input; it must be typed correctly or unexpected results could occur.

Last but not least, verify that you first acquired root privileges by issuing the "su" command and typing your password ... That pound sign (#) as the command prompt is your verification that you're logged in as the root user).

That command should return a file that looks something like this:

Code: [Select]
# Entry for /dev/sda1 :
UUID=63f75e7a-ca71-43f9-b798-4f8c6983b47b / ext4 defaults 1 1
# Entry for /dev/sda5 :
UUID=a2497eba-f580-463e-960f-ef99e6bf4be1 /home ext4 defaults 1 2
none /proc proc defaults 0 0
# Entry for /dev/sda6 :
LABEL=SWAP swap swap defaults 0 0
none /dev/pts devpts defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0




« Last Edit: November 21, 2010, 07:53:58 PM by kalwisti »
Registered Linux User # 442201

LinPC box:  AMD Athlon II X2 240 (Regor) 2.8 GHz, 4 GB RAM, Seagate Barracuda 320 GB HD, Nvidia GeForce 6150SE nForce 430 integrated GPU, Samsung SH-S222L DVD-RW

Offline kalwisti

  • Sr. Member
  • ****
  • Posts: 276
Re: Zen-Mini install
« Reply #22 on: November 21, 2010, 08:42:07 PM »

Quote
To save your changes/edits, just type Ctrl-O -- that's an 'o' as in 'Oscar', not a zero (= "WriteOut") -- and then press Return.

Quote
Or ^w

Neither of these gets Nano to save the changes


I'm surprised by this, as Nano behaves fine on my system. Saving a file is a two-step process:

1. Type Ctrl-O (keep the Ctrl key depressed while you type a lower-case 'oh').

2. At the bottom of the Terminal screen, Nano will ask you to confirm that you want to save the change(s):

Code: [Select]
File Name to Write: <filename here>
A screenshot of that step is here:

http://img139.imageshack.us/img139/3687/nanowriteconfirmation.png

3. Then you press the Return/Enter key to actually write the change(s) to disk.

I suggest that you give it another try and see if this behavior repeats itself. HTH,
=david
Registered Linux User # 442201

LinPC box:  AMD Athlon II X2 240 (Regor) 2.8 GHz, 4 GB RAM, Seagate Barracuda 320 GB HD, Nvidia GeForce 6150SE nForce 430 integrated GPU, Samsung SH-S222L DVD-RW

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2880
    • other projects...
Re: Zen-Mini install
« Reply #23 on: November 22, 2010, 12:52:52 AM »
Hi Innova,

please open a Gnome Terminal (on the Gnome desktop the black icon in the top panel, or Applications -> More Applications -> Terminals -> Gnome Terminal) and then enter this command:
Code: [Select]
su -c "gedit /boot/grub/menu.lst"insert your root-password when asked, and then delete the part "resume=UUID=8dbcae55-29d...", so the linux entry of this file should read:

title linux
kernel (hd0,1)/boot/vmlinuz-2.6.33.7-pclos6.bfs BOOT_IMAGE=linux root=UUID=884599c9-bf30-4f5a-9d5c-e4ce70f8b9b1 splash=silent vga=788
initrd (hd0,1)/boot/initrd-2.6.33.7-pclos6.bfs.img

don't change anything else in this file, safe your changes and reboot, make sure you use the boot entry "linux", should be pre-selected.
-p.

Offline innova

  • Full Member
  • ***
  • Posts: 68
Re: Zen-Mini install
« Reply #24 on: November 22, 2010, 02:51:41 AM »
Morning Guys
   Have edited /boot/grub/menu.lst to read;
Quote
timeout 10
color black/cyan yellow/cyan
gfxmenu (hd0,1)/boot/gfxmenu
default 0

title linux
kernel (hd0,1)/boot/vmlinuz-2.6.33.7-pclos6.bfs BOOT_IMAGE=linux root=UUID=884599c9-bf30-4f5a-9d5c-e4ce70f8b9b1 splash=silent vga=788
initrd (hd0,1)/boot/initrd-2.6.33.7-pclos6.bfs.img

title linux-nonfb
kernel (hd0,1)/boot/vmlinuz BOOT_IMAGE=linux-nonfb root=UUID=884599c9-bf30-4f5a-9d5c-e4ce70f8b9b1 resume=UUID=8dbcae55-29d0-44c5-a67c-274fd73efed3
initrd (hd0,1)/boot/initrd.img

title failsafe
kernel (hd0,1)/boot/vmlinuz BOOT_IMAGE=failsafe root=UUID=884599c9-bf30-4f5a-9d5c-e4ce70f8b9b1 failsafe
initrd (hd0,1)/boot/initrd.img

Have found the fstab file and shows (read only);
Quote
# Entry for /dev/sda2 :
UUID=884599c9-bf30-4f5a-9d5c-e4ce70f8b9b1 / ext2 defaults 1 1
none /dev/pts devpts defaults 0 0
# Entry for /dev/sda1 :
UUID=e08f5cb5-3fdb-4a0f-bd4b-5a0a2e44f8db /home ext2 defaults 1 2
/dev/sr1 /media/sr1 auto umask=0,user,iocharset=utf8,noauto,ro,exec 0 0
none /proc proc defaults 0 0
none /tmp tmpfs defaults 0 0
# Entry for /dev/sda4 :
UUID=8dbcae55-29d0-44c5-a67c-274fd73efed3 swap swap defaults 0 0

Earlier at the start of these posts i changed the swap label and now reads:LABEL=/dev/sda4
Does this now have to be placed in this line somewhere
kernel (hd0,1)/boot/vmlinuz-2.6.33.7-pclos6.bfs BOOT_IMAGE=linux root=UUID=884599c9-bf30-4f5a-9d5c-e4ce70f8b9b1 splash=silent vga=788


not sure that has changed,just ran fdisk -l
Disk /dev/sda: 40.0 GB, 40007761920 bytes
240 heads, 63 sectors/track, 5168 cylinders
Units = cylinders of 15120 * 512 = 7741440 bytes
Disk identifier: 0x0006f999

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        1644    12426246   83  Linux
/dev/sda2            1644        3159    11454345   83  Linux
/dev/sda3            3160        4621    11052720    5  Extended
/dev/sda4            4622        5168     4128705   82  Linux swap / Solaris
/dev/sda5            3160        4621    11052688+  83  Linux
« Last Edit: November 22, 2010, 03:05:02 AM by innova »

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2880
    • other projects...
Re: Zen-Mini install
« Reply #25 on: November 22, 2010, 03:14:36 AM »
Hi Innova,

have you already tried to boot the system with your modified /boot/grub/menu.lst?

Quote
Earlier at the start of these posts i changed the swap label and now reads:LABEL=/dev/sda4
and that may have caused your troubles, see also here.

yes, if you want you can put the resume thing in there so that part reads similar to the second entry linux-nonfb:
Code: [Select]
title linux
kernel (hd0,1)/boot/vmlinuz-2.6.33.7-pclos6.bfs BOOT_IMAGE=linux root=UUID=884599c9-bf30-4f5a-9d5c-e4ce70f8b9b1 resume=UUID=8dbcae55-29d0-44c5-a67c-274fd73efed3 splash=silent vga=788
initrd (hd0,1)/boot/initrd-2.6.33.7-pclos6.bfs.img

good luck,
-p.

Offline innova

  • Full Member
  • ***
  • Posts: 68
Re: Zen-Mini install
« Reply #26 on: November 22, 2010, 03:20:18 AM »
Quote
have you already tried to boot the system with your modified /boot/grub/menu.lst?
Hi P
  Have done that and is the same. I once saw a post to set the file check on every mount, which this does, i would like to change that back to the default 36 mounts before doing a file check, but i cant find that post again,always the way :(,i should bookmark these sorts of things as i go,i have this one.

Online pinoc

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2880
    • other projects...
Re: Zen-Mini install
« Reply #27 on: November 22, 2010, 03:28:34 AM »
sorry, don't know what else to suggest (apart of a fresh formatting and install of 2010.10/11, takes 5 minutes only  ;D), maybe you find other helpful info here or some HW-guru (Old-Polack) will help out.
regards,
-pinoc

Offline melodie

  • Hero Member
  • *****
  • Posts: 5945
  • Internet Relay Chat sur Freenode
    • PCLinuxOS Fr
Re: Zen-Mini install
« Reply #28 on: November 22, 2010, 04:17:39 AM »
Quote
have you already tried to boot the system with your modified /boot/grub/menu.lst?

Hi P
  Have done that and is the same. I once saw a post to set the file check on every mount, which this does, i would like to change that back to the default 36 mounts before doing a file check, but i cant find that post again,always the way :(,i should bookmark these sorts of things as i go,i have this one.


Hi,

The command is tune2fs. The option is -c  (according to "man tune2fs" : -c max-mount-counts). As root:
tune2fs -c 24 /dev/sda6 //for instance. if your partition is not /dev/sda6, change this for the right naming, and if you want the check to be done every 24 mounts.

Please put the content of your file /boot/grub/menu.lst to http://pastebin.com, come back here with the link of the content, then put to pastebin what the console returns when you type as root "blkid", and "mount". (bring the link for the content too, of course).

For the console commands I would like the copy/paste to be complete with the prompts.

With that I could come back with a new menu.lst for you, that you will just have to copy to the directory /boot/grub. I'll put it in a pastebin too.

« Last Edit: November 22, 2010, 04:22:03 AM by melodie »
melodie at #lpic-fr on irc.freenode.net