Archive for the 'Linux' Category

Published by Arif Isnaeni on 20 Nov 2009

Solving “Could not mount” NTFS Partition from Ubuntu

I usuallly use my laptop without its battery, only use the adaptor, I want to prolong my battery life time, but when I on training (on the class), so many mistakes happened. I could not make sure that the cable connector (adaptor) is connected properly, so many times my computer (windows XP, NTFS partition) was not shut down properly, finally I am on a trouble. Windows startup (booting ) with a blue screen,  I got a love mesage from my beloved computer (….hu… hu….   :-( ….), with a message:

A problem has detected and windows has been shut down to prevent damage to your computer …

then I tried to restart so many times in “normal”, “last best configuration”, “safe mode”, “safe mode on command prompt”, but I got nothing. my first concern is back up all files on my windows XP partition (NTFS). as usual I use my linux ubuntu as a way to access my windows partition. but when I use  “ntfs-3g” and “ntfs-config”and “partition editor (gparted)” or “terminal”.. . to mount my NTFS partition, I got a remarks:

Could not mount /dev/sda1 on /media/SQ003654

$LogFile indicates unclean shutdown (0, 1)

Failed to mount ‘/dev/sda1′: Operation not supported

Mount is denied because NTFS is marked to be in use. Choose one action:

Choice 1: If you have Windows then disconnect the external devices by

clicking on the ‘Safely Remove Hardware’ icon in the Windows

taskbar then shutdown Windows cleanly.

Choice 2: If you don’t have Windows then you can use the ‘force’ option for

your own responsibility. For example type on the command line:

mount -t ntfs-3g /dev/sda1 /media/SQ003654 -o force

Or add the option to the relevant row in the /etc/fstab file:

/dev/sda1 /media/SQ003654 ntfs-3g force 0 0

Here is the picture:

could_not_mount

so what shoud I do??…….thanksfully I got the solution from this blog:

  1. Open Applications → Accessories → Terminal
  2. Type  sudo su
  3. make a new director at  /mnt with a command line mkdir /mnt/repair
  4. Force mount by using this command:
    mount -t ntfs-3g /dev/sda1 /mnt/repair -o force

    renark:

    /dev/sda1 is my broken NTFS partition, see yours
  5. open your NTFS Partition from file browser, if you still had this problem follow next step.
  6. Umount command umount /mnt/repair
  7. try once more to open your NTFS partiton
  8. back up file on NTFS… good luck…

Published by Arif Isnaeni on 13 Feb 2009

Convert Ubuntu 8.10 (Intrepid Ibex) to Ubuntu Muslim Edition

Article Source: UbuntuME

To convert Ubuntu 8.10 (“Intrepid Ibex”), follow these steps:

Open a terminal window (Applications→Accessories→Terminal), and execute the following command:

gksudo gedit /etc/apt/sources.list

Add the following lines at the end of the file:

deb http://ppa.launchpad.net/ubuntume.team/ubuntu intrepid main # Ubuntu Muslim Edition
deb-src http://ppa.launchpad.net/ubuntume.team/ubuntu intrepid main # Ubuntu Muslim Edition

Save the file and close the editor.
Run the following commands:

gpg --keyserver hkp://subkeys.pgp.net --recv-keys D1A0D2FB
gpg -a --export D1A0D2FB | sudo apt-key add -
sudo aptitude update

Then install the ubuntume package:

sudo aptitude install ubuntume

Answer ‘Yes’ when needed.
If you want to install the optional package WebStrict (Web Content Filtering tool), just run the following command:

sudo aptitude install webstrict

Finally, restart your computer to apply changes.

Report any problems on the forums.

Published by Arif Isnaeni on 12 Feb 2009

Ubuntu 8.10 (Intrepid Ibex) Repository Mirror

here are list of  ubuntu 8.10 repository mirror, I get this list from this blog

mirror.its.ac.id (ITS, INHERENT)
deb http://mirror.its.ac.id/ubuntu intrepid main multiverse restricted universe
deb http://mirror.its.ac.id/ubuntu intrepid-security main multiverse restricted universe
deb http://mirror.its.ac.id/ubuntu intrepid-backports main multiverse restricted universe
deb http://mirror.its.ac.id/ubuntu intrepid-updates main multiverse restricted universe

kambing.ui.edu (UI, Telkom, Indosat, OpenIXP, INHERENT)
deb http://kambing.ui.edu/ubuntu intrepid main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu intrepid-updates main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu intrepid-security main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu intrepid-backports main restricted universe multiverse
deb http://kambing.ui.edu/ubuntu intrepid-proposed main restricted universe multiverse

mirror.cbn.net.id (OpenIXP)
deb http://ubuntu.cbn.net.id/Ubuntu intrepid main restricted universe multiverse
deb http://ubuntu.cbn.net.id/Ubuntu intrepid-updates main restricted universe multiverse
deb http://ubuntu.cbn.net.id/Ubuntu intrepid-security main restricted universe multiverse
deb http://ubuntu.cbn.net.id/Ubuntu intrepid-backports main restricted universe multiverse
deb http://ubuntu.cbn.net.id/Ubuntu intrepid-proposed main restricted universe multiverse

komo.vlsm.org
deb http://komo.vlsm.org/ubuntu intrepid main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu intrepid-updates main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu intrepid-security main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu intrepid-backports main restricted universe multiverse
deb http://komo.vlsm.org/ubuntu intrepid-proposed main restricted universe multiverse

indika.net.id (OpenIXP)
deb http://ubuntu.indika.net.id/ intrepid main restricted universe multiverse
deb http://ubuntu.indika.net.id/ intrepid-updates main restricted universe multiverse
deb http://ubuntu.indika.net.id/ intrepid-security main restricted universe multiverse
deb http://ubuntu.indika.net.id/ intrepid-backports main restricted universe multiverse
deb http://ubuntu.indika.net.id/ intrepid-proposed main restricted universe multiverse

ftp.itb.ac.id (ITB, INHERENT)
deb ftp://ftp.itb.ac.id/pub/ubuntu intrepid main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu intrepid-updates main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu intrepid-security main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu intrepid-backports main restricted universe multiverse
deb ftp://ftp.itb.ac.id/pub/ubuntu intrepid-proposed main restricted universe multiverse

www.foss-id.web.id (Telkom)
deb http://dl2.foss-id.web.id/ubuntu intrepid main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu intrepid-updates main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu intrepid-security main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu intrepid-backports main restricted universe multiverse
deb http://dl2.foss-id.web.id/ubuntu intrepid-proposed main restricted universe multiverse

How to add “repository source” on your “Synaptic Package Manager”:

1. System >> Administration >> Synaptic Package Manager

synaptic_package_manager

2. Setting >> Repositories

setting_repositories

3. Chose “Third-Party Software” tab, then click “Add” button and copy-paste the list above (one by one):

third_party_software

Published by Arif Isnaeni on 11 Feb 2009

Change Boot Loader Default at Ubuntu

Application >> Accessories >> Terminal
sudo vi /boot/grub/menu.lst
then enter your super user password
and you will see this text:

# menu.lst - See: grub(8), info grub, update-grub(8)
# grub-install(8), grub-floppy(8),
# grub-md5-crypt, /usr/share/doc/grub
# and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify ’saved’ instead of a number. In this case, the default entry
# is the entry saved with the command ’savedefault’.
# WARNING: If you are using dmraid do not use ’savedefault’ or your
# array will desync and will not let you boot your system.
default 0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout 10

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line) and entries protected by the
# command ‘lock’
# e.g. password topsecret
# password –md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title Windows 95/98/NT/2000
# root (hd0,0)
# makeactive
# chainloader +1
#
# title Linux
# root (hd0,1)
# kernel /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=5fbec388-5432-4669-9048-b908574622d5 ro

## Setup crashdump menu entries
## e.g. crashdump=1
# crashdump=0

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,5)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(recovery) single
# altoptions=(recovery mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Ubuntu 8.04, kernel 2.6.24-16-generic
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=5fbec388-5432-4669-9048-b908574622d5 ro quiet splash
initrd /boot/initrd.img-2.6.24-16-generic
quiet

title Ubuntu 8.04, kernel 2.6.24-16-generic (recovery mode)
root (hd0,5)
kernel /boot/vmlinuz-2.6.24-16-generic root=UUID=5fbec388-5432-4669-9048-b908574622d5 ro single
initrd /boot/initrd.img-2.6.24-16-generic

title Ubuntu 8.04, memtest86+
root (hd0,5)
kernel /boot/memtest86+.bin
quiet

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1

title Windows NT/2000/XP
root (hd0,0)
savedefault
makeactive
chainloader +1

# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda2

title Microsoft Windows XP Home Edition
root (hd0,1)
savedefault
makeactive
chainloader +1

splashimage=(hd0,5)/boot/grub/splashimages/medine_moon_right_below.xpm.gz

count the number of the title (with out # sign and in red text) start from 0 (zero), 1, 2, 3, 4, 5 ….
find the number of the title that you want, then change the default text, for example I want to use Microsoft Windows XP Home Edition” as my Default Boot Loader so I change “default 0″ to “default 5″

how edit the file ?? press
i >> for insert
esc >> for ending the insert
ZZ >> to save and exit from the editor