How to mount Windows Partition in Linux?
Find out the info about NTFS partition:
fdisk -l
Create a directory on which the Windows partition to be mounted:
mkdir /mnt/c
Edit /etc/fstab file and include the following line:
/dev/[hda|sda][X] /mnt/c ntfs ro,user,auto,noexec,umask=0 0 0
eg:
/dev/sda2 /mnt/c ntfs ro,user,auto,noexec,umask=0 0 0
Adding default route in Linux
route add gw <IP Address of the gateway> <interface name>
eg: “route add gw 192.168.1.1 eth0”
vmap allocation error on Linux
vmap allocation for size 33558528 failed: use vmalloc=<size> to increase size.
How to solve:
Method 1 (temporary) :
rmmod nouveau
<Now try insmoding your driver and see if the issue goes away>
Method 2 (permanent):
Edit /etc/modprobe.d/blacklist.conf to blacklist nouveau. Add the following line to the file and reboot.
blacklist nouveau
Importing contacts from another phone onto a Nokia phone
I had a Sony Ericson phone, before I had to switch to a Nokia phone (Nokia X2). The initial problem was to export all the contacts from Sony Ericson phone onto Nokia phone. This is the solution that worked.
Step 1: Export the contacts from old phone onto computer
For Sony Ericson, I used ‘My phone explorer’. Goto > Contacts > Right click on the contacts Window > Export/Import > Export entire phone book. Save the file into *.vcf format.
For other phone, find utilities to export all the contacts in either *.vcf, or *.csv format or some other standard format.
Step 2 : Import contacts onto MS Outlook Express
MS Outlook > Tools > Address Book.
In the Address Book, File > Import > Business card > Open the *.vcf file.
Step 3 : Import the MS Outlook Express contacts onto Nokia phone.
Install Nokia Ovi Suite application.
Connect the phone and select ‘Nokia Ovi Suite’ when prompted on the phone.
Start Nokia Ovi Suite application.
Detect the phone via Nokia Ovi Suite application.
Goto Nokia Ovi Suite Application > Sync > Sync options > Contacts > Sync with contacts application > Microsoft Outlook express > Shared contacts > Press OK.
Nokia Ovi Suite Application > Sync > Sync Now > Contacts… (Check the details.. If the contacts are not copied completely, retry till all the contacts are imported.)
How to “remote desktop” into a Windows machine from Linux?
“rdesktop” is a Linux utility equivalent of Windows Remote Desktop (mstsc.exe).
- Download the source package from http://www.rdesktop.org/
- Extract the source package.
- ./configure
- make
- make install
- rdesktop hostname
If you want full screen, “rdesktop -f hostname”. You can exit full screen using CTRL-ALT-ENTER.
How to overcome a hang in remote PC while using Remote Desktop?
This can be done with the help of two commands: “query session” and “reset session”.
c:\> query session
SESSIONNAME USERNAME ID STATE TYPE DEVICE
console userA 0 Active wdcon
rdp-tcp 65536 Listen rdpwd
rdp-tcp#28 Administrator 1 Active rdpwd
rdp-tcp#27 userB 2 Active rdpwd
;Note down the session ID. Now execute…
c:\> reset session 2 /v /server
;This logs out user from session 2.
Now, t o execute these two commands, you can remote login to the system using another power user or you can telnet to the system (if telnet available).
How to mount Windows shares in Linux?
Method 1:
$ mkdir /mnt/winshare
$ mount -t cifs //nt_machine_name_or_ip_address/shared_folder_name -o username=user_name_here,password=pass_word_here /mnt/winshare
$ cd /mnt/winshare
$ ls
(If you need to write to this directory, change the settings in Windows system to include read/write permission)
Method 2 (persistant):
$ mkdir /mnt/winshare
$ vim /etc/fstab
Add the following line to the file…
//nt_machine_name_or_ip_address/shared_folder_name /mnt/win cifs username=user_name_here,password=password_here 0 0
How to change Linux runlevel at boot time?
Different runlevels under Fedora core:
0 | Halt |
1 | Single-User mode |
2 | Multi-user mode console logins only (without networking) |
3 | Multi-User mode, console logins only |
4 | Not used/User-definable |
5 | Multi-User mode, with display manager as well as console logins (X11) |
6 | Reboot |
When the Linux kernel boots, the init program reads the /etc/inittab file to determine the runlevel. The behavior of each run level is specified using a configuration file.
Modifying runlevel using Grub at boot time:
Select the kernel you want to load
Press ‘e’ to edit …
In the line that looks similar to “blah blah blah nomodeset rghb quiet”, append the number of runlevel you desire after a space… like “blah blah blah nomodeset rghb quiet 3”
Press ‘b’ to boot.
This change is only applicable to the current boot.
Ubuntu 9.10 Tricks and Workarounds
I would like to resize the root (/) partition. How should I do that?
Ans : Boot using the Ubuntu CD and from the boot menu, select “Try Ubuntu without any change to your computer”. Once booted, goto Administration > GParted.
This will allow you to resize the root partition.
When installing Ubuntu on a newer hardware (eg: Dell Latitude E6410) my screen flickers and the installation does not proceed. What should I do?
Ans : Press F4 and select ‘Safe mode Graphics”
I installed Ubuntu using ‘Safe mode Graphics’. I tried upgrading the NVIDIA driver, but now the GUI does not come up. I am using nvidia nvs 3100M that came with Dell Latitude E6410?
Ans :
1.)Download the following driver: http://www.nvidia.com/object/linux-display-ia32-195.36.24.html
2.)$chmod a+x <downloaded file>
3.)CTRL+ALT+F1
4.)$/etc/init.d/gdm stop
5.)RUN the downloaded file.
6.)Reboot
Formatting USB disk under Linux
Recently I had to format my USB disk as ext2fs. After this I had tough time converting it back to vfat partition scheme, so that I could use the disk on Windows systems.
Thanks to this blog post http://blog.dotkam.com/2008/07/10/restoreformat-usb-flash-drive/ I was able to reuse my USB disk under Windows. All credits to the original author. Just listing the commands below, just in case you too are looking for this:
Step 1: Insert the USB disk, check ‘dmesg’ to find out how it was detected by the system. In my case it was /dev/sdb.
Step 2: fdisk /dev/sdb
If fdisk detects any anamolies in the partition table, it will throw a prompt that it will try to correct it. This should be OK.
Use option ‘p’ to print the partition table.
If there is already a partition, delete it using ‘d’ option.
Create a new partition using ‘n’ option.
Save the changes by using ‘w’ option.
Step 3: mkfs.vfat -F 16 /dev/sdb1
That’s all. You can mount the disk on Linux now using, “mount -t vfat /dev/sdb1 <folder_path_where_you_want_to_mount>”. For unmount use, “umount /dev/sdb1”.
-
Recent
- How to mount Windows Partition in Linux?
- Adding default route in Linux
- vmap allocation error on Linux
- Importing contacts from another phone onto a Nokia phone
- How to “remote desktop” into a Windows machine from Linux?
- How to overcome a hang in remote PC while using Remote Desktop?
- How to mount Windows shares in Linux?
- How to change Linux runlevel at boot time?
- Ubuntu 9.10 Tricks and Workarounds
- Formatting USB disk under Linux
- How to turn off system bell in Ubuntu?
- Restoring Linux – Restoring Grub
-
Links
-
Archives
- January 2012 (1)
- July 2011 (1)
- March 2011 (1)
- January 2011 (1)
- December 2010 (3)
- November 2010 (1)
- September 2010 (1)
- October 2009 (1)
- July 2009 (1)
- January 2009 (3)
- December 2008 (1)
- November 2008 (3)
-
Categories
-
RSS
Entries RSS
Comments RSS