بِسْمِ اللهِ الرَّحْمٰنِ الرَّحِيْمِ = In the name of Allah, the Most Gracious, the Most Merciful
Tuesday, 4 November 2014
Reinstall grub2 from LiveCD
These instructions are based on the instructions from the ubuntu help website - https://help.ubuntu.com/community/Grub2#Reinstalling from LiveCD
I'll try and make them easier to understand as when i first saw them it looked a bit complicated. Please dont look at this post thinking its gonna take forever it wont. Just take your time and follow them correctly.
1. Ok.. 1st thing you want to do is boot into your LiveCD of Mint. (best to use the same version as the one you are running on your computer). Once everything is loaded and your at the mint desktop. Open the Mint Menu and type "Gparted" into the filter text box.When it loads you should see all the partitons that are on the hard drive. Linux Mint partitions will probaly be EXT4 and the windows partitions will probaly be NTFS.
2. Look at the list of partitons and see what one is the Linux Mint partiton.You can tell this by looking at the Mount Points of the partitons. You should see one with a "/" under Mount Point and its File system will likely be EXT4. When you have located this partition look to the left and see what it is called. For example mine is called dev/sda5 (yours may be something different like dev/sda1 etc).
Now that you know what partition is the Linux Mint partition, just leave gparted open so you can look back at it again incase you forget. Now open up a Terminal by clicking the Mint menu then clicking "Terminal" under System.
Now we need to mount the Linux Mint partition so that we are able to use it (access it) . To do this copy and paste this code into the terminal
$ sudo mount /dev/sdXY /mnt
You will need to change the XY part of the code to match the name of your Linux Mint partition. For example my mint partition is dev/sda6 so i would change the code to -
$ sudo mount /dev/sda5 /mnt
Now that you edited the line of code to match your mint partiton, go ahead and press Enter on your keyboard then type in your password if your asked for it then press Enter again.(When your entering in your password you will not see any characters, letters numbers etc). It may look as if nothing has happened, but your Linux Mint partition will now be mounted. The terminal will display nothing after the $ sign like it did when you 1st open it.
3. Now we need to tell the computer to reinstall grub2 to the Linux Mint partition we just mounted. To do this copy and paste this line of code into the terminal
$ sudo grub-install --root-directory=/mnt/ /dev/sdX
Again you will need to change this line of code to match your Linux Mint partition. Change the "X" at the end to match your mint partiton. My partition is dev/sda5 so i will change the the line of code to -
$ sudo grub-install --root-directory=/mnt/ /dev/sda
It is IMPORTANT that you do not enter any number just the letters of the partitions.
When you have edited the line of code press Enter on your keyboard. You should then see a message saying Grub installer finished or something like that. Now close the terminal and gparted and reboot your pc/laptop without the livecd in the disc drive. To restart click the mint menu then click "Quit" then "Reboot".
*Note after you reboot you should see the grub2 menu you had before you installed/repaired windows. You may need to refresh (update) this menu so that it detects the new windows partition.
This can easily be done by logging into your Linux Mint, opening a Terminal then copying and pasting sudo update-grub then press Enter then enter your password then hit Enter again. You will then see it detecting all the bootable partitons on the Hard drive. When you it displays 'Done', reboot again and you should be able to boot into windows again.
I know this isn't the best tutorial for reinstalling grub but i hope it helps someone.
Tags: Reinstall grub2 mint/ubuntu Livecd
Wednesday, 14 May 2014
7 easy steps to reset forgotten root password on CentOS/Red Hat Linux
Terlupa centos root password?
7 langkah mudah untuk memperbaharui kata-laluan root di CentOS/Red Hat.
7 easy steps to reset forgotten root password on CentOS/Red Hat
1. Boot the system and when you see the following message "Press any key to enter the menu", press any key. (You will see the list of available kernel versions.)
2. Press e in order to edit commands before booting.
3. Highlight the list item with vmlinuz in it by using the arrow keys and press e.
4. Now type single or init 1 at the end of the line.
5. Then press enter and b to boot the system with the new argument. (The system will boot into single user mode and you will see bash prompt)
Now it's time to change the password:
6. Type passwd
7. Type reboot to restart the system.
7 langkah mudah untuk memperbaharui kata-laluan root di CentOS/Red Hat.
7 easy steps to reset forgotten root password on CentOS/Red Hat
1. Boot the system and when you see the following message "Press any key to enter the menu", press any key. (You will see the list of available kernel versions.)
2. Press e in order to edit commands before booting.
3. Highlight the list item with vmlinuz in it by using the arrow keys and press e.
4. Now type single or init 1 at the end of the line.
5. Then press enter and b to boot the system with the new argument. (The system will boot into single user mode and you will see bash prompt)
Now it's time to change the password:
6. Type passwd
1.### Shell Commands ###2.passwd3.Enter new UNIX password:4.Retype new UNIX password:5.passwd: password updated successfully7. Type reboot to restart the system.
Saturday, 10 May 2014
OSS adalah singkatan untuk "Open Source Software" atau "Perisian Sumber Terbuka"
Pengenalan.
OSS adalah singkatan untuk "Open Source Software" atau "Perisian Sumber Terbuka". Sekiranya anda telah menggunakan Google atau Yahoo, telefon pintar yang menggunakan Android, maka anda adalah seorang pengguna OSS!
Mengapa OSS?
OSS menjimat wang.
OSS menghalang cetak-rompak.
OSS menggalak daya-cipta.
OSS mengurang wang keluar negara.
OSS adalah singkatan untuk "Open Source Software" atau "Perisian Sumber Terbuka". Sekiranya anda telah menggunakan Google atau Yahoo, telefon pintar yang menggunakan Android, maka anda adalah seorang pengguna OSS!
Mengapa OSS?
OSS menjimat wang.
OSS menghalang cetak-rompak.
OSS menggalak daya-cipta.
OSS mengurang wang keluar negara.
How to Set Default Font in LibreOffice / OpenOffice.org
Set Default Font in LibreOffice / OpenOffice.org Calc/Writer
After much struggling with wanting to change the default font in Calc/Writer to anything but eco green fonts, I discovered just how to change the default font. I will be using Liberation Sans for this example, but any font installed on your system will work.Set a Default Font
First, we will need to set a default font. With LibreOffice Calc open, select Styles and Formatting from the Format menu. This will open the Styles and Formatting window. Default should be the default item select (first item). Right click default and choose Modify… Choose the font settings you wish to set for the default font and click OK. The font information will change to the settings you just set.You’re not done yet. We need to save as a template.
Save as Template
From the File menu, choose Templates > Save… (Shift+F11). Enter a name for the template and click OK. The default template, listed in the right area for the Templates window is default. I did not want to overwrite this template, so I called mine Liberation Sans.Now that we have created and saved the template, we need to set it as the default template.
Set as Default Template
We will be setting the template we just created as the default template to use. From the File menu, choose Templates > Organize… This will open the Template Management window. The left area will display the template folders. The template we just created above is inside My Templates. Double click the My Templates folder. The templates will appear right below the folder. Choose the template you wish to use.On the right hand side of the window there a button labeled Commands. Click Commands and select Set as Default Template. Click Close.
Now when you create a new file in LibreOffice Calc, the template you created, saved and set as default will be used.
(Original Source: os4me.com)
Terima Kasih.
Hj Mohsin bin Sarip
Friday, 27 September 2013
How to enable CD/DVD boot on ASUS BIOS notebook ASUS A450C
Bagaimana untuk membolehkan CD/DVD memulakan komputer bimbit ASUS 450C;
untuk memasang linux.
(How to enable CD/DVD boot on ASUS notebook ASUS A450C - to install linux:)
--------------------------------------------------------------------------------------------------------------------------
ESC or F2 to enter the BIOS setup, Boot tab Fast Boot is set to Disabled, Security tab secure boot is set to Disabled, F10 to save restart.
--------------------------------------------------------------------------------------------------------------------------
F2 re-enter the BIOS, Boot tab Launch CSM is set to Enabled, F10 to save restart.
--------------------------------------------------------------------------------------------------------------------------
F2 re-enter the BIOS, Boot Option can be selected at BOOT USB devices.
--------------------------------------------------------------------------------------------------------------------------
================================================
Linux Ubuntu 10.04 (telah dinaiktaraf kepada Ubuntu Mate 16.04.6)
Jadi saya ingin memasang linux yang biasa saya gunakan sejak beberapa tahun lalu. (Skg ini pun saya menggunakan firefox di ubuntu linux 10.04, pc acer dual-core).
(Ubuntu 10.04 desktop - telah dinaik-taraf kpd Ubuntu Mate 16.04.6 LTS)
Mengapa saya memilih Ubuntu? Ubuntu adalah sistem operasi yang lengkap, sangat stabil dan yang paling penting ia tidak dijangkiti virus. Ubuntu boleh dipasang di PC atau komputer bimbit dengan percuma, hanya muatturun salinan ISO dari internet, bakar ke CD/DVD dan boleh terus dipasang ke PC ataupun komputer bimbit.
Tetapi... Komputer bimbit Asus ini tidak mahu boot drp CD/DVD! Puas saya mencari-cari dlm internet akhirnya dapat juga... ini dia:
-----------------------------------------------------------------------------------------------------------------------
ESC or F2 to enter the BIOS setup, Boot tab Fast Boot is set to Disabled, Security tab secure boot is set to Disabled, F10 to save restart.
--------------------------------------------------------------------------------------------------------------------------
F2 re-enter the BIOS, Boot tab Launch CSM is set to Enabled, F10 to save restart.
--------------------------------------------------------------------------------------------------------------------------
F2 re-enter the BIOS, Boot Option can be selected at BOOT USB devices.
--------------------------------------------------------------------------------------------------------------------------
Reply to Post Good Library About | Site Map | Help | Imprint Copyright © 2009-2013 OKBASE.NET All Rights Reserved Copyright good library
--------------------------------------------------------------------------------------------------------------------------
ESC or F2 to enter the BIOS setup, Boot tab Fast Boot is set to Disabled, Security tab secure boot is set to Disabled, F10 to save restart.
--------------------------------------------------------------------------------------------------------------------------
F2 re-enter the BIOS, Boot tab Launch CSM is set to Enabled, F10 to save restart.
--------------------------------------------------------------------------------------------------------------------------
F2 re-enter the BIOS, Boot Option can be selected at BOOT USB devices.
--------------------------------------------------------------------------------------------------------------------------
================================================
Linux Ubuntu 10.04 (telah dinaiktaraf kepada Ubuntu Mate 16.04.6)
Jadi saya ingin memasang linux yang biasa saya gunakan sejak beberapa tahun lalu. (Skg ini pun saya menggunakan firefox di ubuntu linux 10.04, pc acer dual-core).
(Ubuntu 10.04 desktop - telah dinaik-taraf kpd Ubuntu Mate 16.04.6 LTS)
Mengapa saya memilih Ubuntu? Ubuntu adalah sistem operasi yang lengkap, sangat stabil dan yang paling penting ia tidak dijangkiti virus. Ubuntu boleh dipasang di PC atau komputer bimbit dengan percuma, hanya muatturun salinan ISO dari internet, bakar ke CD/DVD dan boleh terus dipasang ke PC ataupun komputer bimbit.
Tetapi... Komputer bimbit Asus ini tidak mahu boot drp CD/DVD! Puas saya mencari-cari dlm internet akhirnya dapat juga... ini dia:
-----------------------------------------------------------------------------------------------------------------------
ESC or F2 to enter the BIOS setup, Boot tab Fast Boot is set to Disabled, Security tab secure boot is set to Disabled, F10 to save restart.
--------------------------------------------------------------------------------------------------------------------------
F2 re-enter the BIOS, Boot tab Launch CSM is set to Enabled, F10 to save restart.
--------------------------------------------------------------------------------------------------------------------------
F2 re-enter the BIOS, Boot Option can be selected at BOOT USB devices.
--------------------------------------------------------------------------------------------------------------------------
Reply to Post Good Library About | Site Map | Help | Imprint Copyright © 2009-2013 OKBASE.NET All Rights Reserved Copyright good library
Tuesday, 13 August 2013
How to sync your zimbra's calendar -> google's -> smartphone's
Alhamdulillah! How to sync your zimbra's calendar to google's then to your Android?, Sangat mudah!
0. Update/Create an event in your MBMB's Zimbra Calendaring System. Add reminder etc.
1. Log to your gmail, then Open your Calendar. 2. Click at Other calendars. 3. Click URL 4. Add your server's url, use this format "http://webmail.mbmb.gov.my/home/mohsin@mbmb.gov.my/Calendar?fmt=ics" (pls buang the ""; tukar "hjmohsin" kpd email id yg anda gunakan) 5. Tekan enter 6. Event drp zimbra calendar akan di paparkan di google calendar anda:
7. if you set reminder, it will be sent to you by google (sms or email orr even s-planner!).
8. your email system at MBMB will prompt you like this:
Selamat mencuba...
0. Update/Create an event in your MBMB's Zimbra Calendaring System. Add reminder etc.
1. Log to your gmail, then Open your Calendar. 2. Click at Other calendars. 3. Click URL 4. Add your server's url, use this format "http://webmail.mbmb.gov.my/home/mohsin@mbmb.gov.my/Calendar?fmt=ics" (pls buang the ""; tukar "hjmohsin" kpd email id yg anda gunakan) 5. Tekan enter 6. Event drp zimbra calendar akan di paparkan di google calendar anda:
7. if you set reminder, it will be sent to you by google (sms or email orr even s-planner!).
8. your email system at MBMB will prompt you like this:
Selamat mencuba...
Tuesday, 25 June 2013
Converting lvm to a normal partition
Converting lvm to a normal partition
I've recently set up a new gentoo-box and first decided to use lvm2 on my root. Well, I ran into some issues with the kernel and initrd which I could figure out and fix. But then I noticed that, because of the lvm, I won't be able to access the disk from Windows with the free ext3-drivers that are available. Linux will even boot faster because I'll have no need for the initrd anymore. That's when I decided to get rid of the lvm.And that's actually easier than you'd think: If you have a spare-partition or -harddisk around that is at least the size of the logical volume that you'd like to convert to a partition, you can easily do this with dd. Imagine that /dev/vg/volume is a logical volume that consists of only one partition, /dev/sday:
sh# dd if=/dev/vg/volume of=/dev/sdbx bs=8M
sh# dd if=/dev/sdbx of=/dev/sday bs=8M
That's it. This will back up the logical, continuous data that's hosted on the lvm to a partition. After the first dd you'll be able to mount /dev/sdbx and see how the content of /dev/vg/volume has been copied. The mounted partition's usable size will be exactly the same as the volume's size, even if the partition itself is much bigger. That's because the filesystem on it will still be the same size it was before. You could (but it wouldn't make much sense because we want to move the data to the other partition anyways) fix this with resize2fs (if you use ext2 or ext3, that is). The second dd copies the data back to the partition that it was formerly stored on, but without the additional lvm-abstraction. The lvm will be overwritten by the 'flat' filesystem-data. If sdbx happens to be bigger than sday, an error will be printed that dd reached the end of the partition. This is nothing to worry about since the data left on sdbx is not interesting to us anyways. You can fix the filesystem-size to the actual partition size with resize2fs. Since the lvm itself needs some space, too, it will be slightly (a few bytes) larger now.
4 comments:
Logu July 1, 2011 at 6:05 AM
Excelent buddy. I was really looking for it. I am going to do this for a vmware vm
1. Create virtual disk (sdb) to hold the LVM enabled disk on the guest
2. Partiton the disk similar to the LVM layout.
3. Boot the LVM machine with a live CD.
4. dd if=/dev/vg/volume|ssh vmguest > /dev/sdbx
Reply
---------------------------------------------------------------------------------------------
IkemFebruary 3, 2013 at 6:11 AM > If you have a spare-partition _or_ -harddisk around
Reply
Replies Daniel AlbuschatFebruary 4, 2013 at 4:02 AM
Fixed - thanks!
Reply
----------------------------------------------------------------------------------------------
Mohsin sarip June 25, 2013 at 7:44 AM
Tqvm Daniel. this command:
" dd if=/dev/vg/volume of=/dev/sdbx bs=8M "
this will overide all data in /dev/sdbx (possibly your ext harddisk).
what if we use this command:
" mount /dev/sdbx /mnt "
" dd if=/dev/vg/volume of=/mnt/datafile.dd bs=8M "
my 2 cent
sh# dd if=/dev/vg/volume of=/dev/sdbx bs=8M
sh# dd if=/dev/sdbx of=/dev/sday bs=8M
That's it. This will back up the logical, continuous data that's hosted on the lvm to a partition. After the first dd you'll be able to mount /dev/sdbx and see how the content of /dev/vg/volume has been copied. The mounted partition's usable size will be exactly the same as the volume's size, even if the partition itself is much bigger. That's because the filesystem on it will still be the same size it was before. You could (but it wouldn't make much sense because we want to move the data to the other partition anyways) fix this with resize2fs (if you use ext2 or ext3, that is). The second dd copies the data back to the partition that it was formerly stored on, but without the additional lvm-abstraction. The lvm will be overwritten by the 'flat' filesystem-data. If sdbx happens to be bigger than sday, an error will be printed that dd reached the end of the partition. This is nothing to worry about since the data left on sdbx is not interesting to us anyways. You can fix the filesystem-size to the actual partition size with resize2fs. Since the lvm itself needs some space, too, it will be slightly (a few bytes) larger now.
4 comments:
Logu July 1, 2011 at 6:05 AM
Excelent buddy. I was really looking for it. I am going to do this for a vmware vm
1. Create virtual disk (sdb) to hold the LVM enabled disk on the guest
2. Partiton the disk similar to the LVM layout.
3. Boot the LVM machine with a live CD.
4. dd if=/dev/vg/volume|ssh vmguest > /dev/sdbx
Reply
---------------------------------------------------------------------------------------------
IkemFebruary 3, 2013 at 6:11 AM > If you have a spare-partition _or_ -harddisk around
Reply
Replies Daniel AlbuschatFebruary 4, 2013 at 4:02 AM
Fixed - thanks!
Reply
----------------------------------------------------------------------------------------------
Mohsin sarip June 25, 2013 at 7:44 AM
Tqvm Daniel. this command:
" dd if=/dev/vg/volume of=/dev/sdbx bs=8M "
this will overide all data in /dev/sdbx (possibly your ext harddisk).
what if we use this command:
" mount /dev/sdbx /mnt "
" dd if=/dev/vg/volume of=/mnt/datafile.dd bs=8M "
my 2 cent
Subscribe to:
Posts (Atom)



