The following command done on my Scientific Linux server did not work on my Ubuntu box
sfdisk -d /dev/sda | sfdisk --force /dev/sdb
Here is the error I received
bbqmoe@macchiato:~$ sudo sfdisk -d /dev/sdb | sfdisk --force /dev/sdc
/dev/sdc: Permission denied
sfdisk: cannot open /dev/sdc read-write
Even with Sudo the command refused to do what I expected. After a quick Google search I found the following which simply suggested to double the Sudo the command which if you think about it makes sense.
sudo sfdisk -d /dev/sdb | sudo sfdisk --force /dev/sdc
Now I feel stupid, btw I was creating a RAID 10 array.
AVG Rescue CD is great way of removing malware from a Windows PC for when the operating system is unresponsive. You can download the ISO for AVG Rescue CD from AVG at no cost.
Here’s what you will need prior to creating the bootable USB drive:
- Download the appropriate .ISO file from the AVG site
- Download UNetbootin, Windows application
Format The USB Drive
Make sure the USB drive formatted to the FAT file system. The Windows formatting application works just fine.
Creating The Bootable USB
Start UNetbootin by clicking on the executable.
Click on Diskimage.
And browse to the location where the AVG Rescue CD .ISO file was downloaded to.
Make sure select the correct .ISO image.
With the .ISO selected you can now select the USB drive where the ISO image will be stored, my USB drive was recognized as F:\, and click on OK to start the process.
Process will take a few minutes.
Click on Exit the USB drive was successfully created.
Make sure the BIOS is set to boot from Removable Devices also know as USB drives not doing so will result in not being able to boot from the USB drive.
This post is meant to provide a solution for those you experiencing wireless problems with your Samsung SCX 3405W printer. While the printer itself works just fine I did notice the wireless connectivity would drop and the printer would not hold the assigned static IP address which is essential for a device that is supposed at the same address. Another sign of trouble was that fact that every time I pinged the printer it would result in pings of 500ms to 700ms which is not right for a device that is just a few feet from the access point.
Note: steps may vary since my printer is already updated, I am providing instructions from memory
Visit the following link at the Samsumg support website and click on the firmware section, the download is just 9.5 MB http://www.samsung.com/hk_en/support/model/SCX-3405W/XSS-downloads
Here’s what you will need prior to updating the printer firmware:
- A Windows computer to perform the upgrade from
- Connect the printer to the Windows computer via the USB cable
- Firmware SCX3405W_V3.00.01.17.exe downloaded from the Samsung link mentioned above
Double click on the executable you downloaded from the Samsung website.
Click on Run.
Choose USB Connected Printer.
Click on Agree.
Click on the checkbox(necessary step), now click on Update Firmware. The printer will restart and you will see some digits appear in the printers display, you shouldn’t worry it might take a few minutes to complete.
Click on OK and Exit the application.
After the update my printer no longer disconnects from the wireless network and whenever I pint the printer results hover at around 16ms to 40ms which is far better than before. The printer can now hold the static IP address I assigned.
By default if you try to use the traceroute command in Ubuntu it will suggest installing the application since there is no application by such name installed.
The program 'traceroute' can be found in the following packages:
Try: sudo apt-get install
While you could apt-get install traceroute your way out of it, you could instead use the included mtr application.
mtr combines the functionality of the traceroute and ping programs in a single network diagnostic tool.
I like the way mtr presents the output instead of the normal traceroute applications, mtr constantly pings the address in a live manner and watch the output update according to network conditions.
user@bicerin:~$ mtr linhost.info
Host Loss% Snt Last Avg Best Wrst StDev
1. OpenWrt.lan 0.0% 3 0.5 0.5 0.4 0.5 0.0
3. te-9-2-ur01.fourhills.nm.albuq.comcast.net 0.0% 2 9.3 8.9 8.5 9.3 0.5
4. te-4-2-ar01.albuquerque.nm.albuq.comcast.net 0.0% 2 8.8 9.2 8.8 9.6 0.5
5. te-0-0-0-8-cr01.denverqwest.co.ibone.comcast.net 0.0% 2 18.0 23.1 18.0 28.3 7.2
6. he-3-12-0-0-cr01.denver.co.ibone.comcast.net 0.0% 2 21.2 21.0 20.9 21.2 0.2
7. xe-0-0-0.bbr01.cf01.den01.networklayer.com 0.0% 2 17.3 17.2 17.0 17.3 0.2
8. ae12.bbr02.eq01.dal03.networklayer.com 0.0% 2 31.8 33.0 31.8 34.2 1.7
9. po32.dsr01.dllstx3.networklayer.com 0.0% 2 31.6 31.6 31.6 31.7 0.1
10. po31.dsr01.dllstx2.networklayer.com 0.0% 2 31.9 32.4 31.9 33.0 0.8
11. po1.car14.dllstx6.networklayer.com 0.0% 2 34.8 35.1 34.8 35.3 0.4
12. gator524.hostgator.com 0.0% 2 31.9 32.8 31.9 33.7 1.3
I didn’t know about mtr which is why I decided to create this post as a reminder.
I needed to copy a couple hundred GBs of data as a precaution from a VPS to another location for temporary storage since I was about to mess with the file system. After reading the man pages and other blogs I guess this was the best I could come up with.
rsync -arz -e ssh /local_path/ remote_user@ip_address:/remote_path/
|recurse into directories
|compress file during the transfer
|remote shell SSH
Other parmeters to add:
|keep partially transferred files
|delete extraneous files from destination dirs
Just in case you find your self creating or rebuilding an MDADM array here is a simple combination that will output every two seconds the status of the array.
We combine watch and cat retrieve and update the status of the array.
watch cat /proc/mdstat
Every 2.0s: cat /proc/mdstat Tue Mar 5 00:34:35 2013
Personalities : [raid1]
md1 : active raid1 sdc1 sdb1
262011712 blocks super 1.2 [2/2] [UU]
[>....................] resync = 3.1% (8126080/262011712) finish=20.7min