The tag has no wiki summary.

learn more… | top users | synonyms

5
votes
1answer
1k views

Removing leading zeros from DATE

I made an alias of the date command to display date in the following format: 2013.06.14.12.10.02 using this command: alias date = date +"%Y.%m.%d.%H.%M.%S" Everything works great, except i ...
3
votes
1answer
47 views

How to actually test locale

So I know what locale does. Sets the output format of certain programs depending on what country/language you're in, for example 1000000 can be formatted like 1,000,000.00 1 000 000.00 1.000.000,00 ...
-2
votes
2answers
44 views

How to recover NTFS drive formatted in ext4?

I just installed Linux Mint 17 and when it asked me where to install it I selected the option to overwrite the old Mint 14. Previously I had also windows with NTFS partition of 900GB. Not it is all ...
0
votes
1answer
1k views

Preparing USB drive for Kali Linux

I'm new to Kali Linux. I want to install it on my PC which is already running windows 8. I know how to dual boot a PC. I'll be booting Linux from a USB device, but while creating a bootable USB ...
3
votes
2answers
13k views

How to format a write protected pen drive in Linux?

How can I format the write protected pendrive?
0
votes
1answer
51 views

Ubuntu live CD keeps on going back to the choice screen

I had Ubuntu installed before, but then I decided to switch to Windows 7. I deleted all of the partitions and formatted the drive (via the Windows installation disk). Windows works fine, but now I ...
0
votes
2answers
53 views

Awk printf number in width and round it up

I need to printf a number out, but with given width and rounded (with awk!) %10s I have this and somehow I need to connect the %d but everything I do, ends up with too much parametres for awk ...
0
votes
1answer
43 views

How to change “Number Format” in Gnome 2

I require to change my Number format in my CentOS 6.0 box. I am using "gnome desktop environment" version 2.28.2. I want to know from where can I change the default Number Format of the system. I ...
6
votes
5answers
10k views

How can I low-level format flash memory in Linux?

My friend was having problems with a USB flash drive, and I suggested he do a low-level format. Then it occurred to me that I don't even know how to do that in Linux. So... how can I low-level ...
0
votes
3answers
182 views

Error “parted: invalid token: 1” When Using Parted To Format A Partition?

Screenshot: http://imgur.com/DQnhwG2    I'm trying to format an existing ext2 partition as ntfs (or any filesystem) using the mkfs command in Parted, but when I specify the partition to ...
1
vote
2answers
467 views

Unable to use date command to change specific date format in Bash shell on OS X terminal

I am using the date -d command to change a specific date format to another. Below is the example used currDate=`Wed 12 Feb 2014` formattedDate=`date -d"${currDate}" +%Y%m%d` echo $formattedDate
1
vote
1answer
140 views

How to format a CF card by a terminal command?

I want to know the command for formatting a compact flash card from the terminal.
4
votes
3answers
64 views

Man page with preserved text decorations, proportional text and fixed-width code

How can I get contents of a man page without the text being wrapped around column 80 or so? I'd prefer the output to have proper formatting, line bolding, underscores, fixed-width font for examples ...
0
votes
1answer
1k views

How to format large Size HDD quickly

In windows we can do a Quick format just by right clicking the device and boom format. In linux How to do the same I mean if the size of HDD is 2TB or more it takes along time to format using ...
0
votes
2answers
342 views

How to format Partition

How can I format the following partition on Redhat 5.2? /dev/mapper/VG00-LogVol 148G 111G 36G 76% /u001/app/oracle
0
votes
0answers
42 views

Unable to write to hdd formatted in anything other ext2,3,4

I am unable to write to my HDD mounted on Ubuntu server 12.04 that are formatted to NTFS or FAT32. However when I format to EXT and Mount as auto its able to write. I tried chmod and chown but the ...
1
vote
1answer
128 views

Problem with formating Flash Disk

I have intsalled Arch Linux ISO file into Flash disk through following command : dd bs=2M if=~/archlinux-2013.11.01-dual.iso of=/dev/sdd Now, I'm trying to format flash disk with following command ...
2
votes
1answer
777 views

Best options for mounting Mac OS X hard drive on my Linux box?

I have a new 3 terabyte external USB hard drive (Seagate ST3000DM001 in an enclosure). I hope to use it on both my iMac (OS X 10.6.8) and my Linux machines (Kubuntu). Right now this drive will ...
2
votes
2answers
50 views

How do I echo a line with linebreak at the end at window border? [duplicate]

I would like to echo a list all in one line, TAB separated (like ls does with files in one folder) for i in one two some_are_very_long_stuff b c; do echo $i; done will print one line per word: one ...
0
votes
2answers
127 views

any command that can format html or xml from shell? [closed]

There must be something on the lines of sed? Normally in sed you type something like: echo day | sed s/day/night/ the shell prints "night". Is there something that can take a file (containing ...
6
votes
2answers
344 views

Creating formatted partition from nothing

I need to create filesystem with just one partition from nothing (/dev/zero). I tried this sequence of commands: dd if=/dev/zero of=mountedImage.img bs=512 count=131072 fdisk mountedImage.img n ...
2
votes
2answers
441 views

Can't format external drive

I am trying to format an external drive, but getting the error /dev/sdb1 is apparently in use by the system; will not make a filesystem here! Based on the internet, I have to run cat ...
1
vote
1answer
70 views

Is it safe to reformat an lvm root partition?

My system currently has a volume group containing root, swap, and home logical volumes. I would like to reinstall the operating system in the root volume and format the partition in the process. I ...
1
vote
0answers
48 views

Reformat terminal output and save to file

I was wondering how to reformat terminal output for logging information. More specifically I would like to reformat the output of the sensors command from the lm-sensors package and write it to a ...
0
votes
1answer
561 views

Format drive and all partitions, start from scratch on chromebook

I have a chromebook which ... someone ... may have messed up some partitions using fdisk while ubuntu was installed. Now, after doing a recovery re-install for chromeOS I'm unable to install ubuntu ...
11
votes
6answers
26k views

How to partition 22TB disk?

I have a 22TB disk on /dev/sdb. How do I create a 22TB partition? Don't really care about the file system - ext4 or zfs is fine. Running CentOS 6.2 - Partition will be used as a data dump. Only a ...
5
votes
3answers
3k views

How can I display octal notation of permissions with ls - and can octal represent all permissions? [duplicate]

After looking at the man page for ls on my system and searching Google, I see there IS a hack of way to use awk or perl to show octal permissions when using ls, but with bash is there anything more ...
1
vote
0answers
297 views

Quick USB pendrive formatting under KDE

Is there some way to quickly format a USB pendrive in KDE (with a GUI interface), without having to open the main "KDE Partition Manager"? In particular I'm most interested in something like a ...
2
votes
8answers
2k views

How to generate a year-quarter date from the command line?

I'm interested in outputting a representation of the current year-quarter, as well as the year-quarter for the previous month. If today is 2012 January 1st, I'd like to get 2012q1 and 2011q4 as ...
3
votes
1answer
563 views

Trying to install Windows on a system that has Ubuntu 12.04 installed

I'm a novice in installing & debugging OS errors. I had Windows 7 installed & it crashed today (the great blue screen). No matter what I did (tried to install Windows 7 again & again from ...
2
votes
1answer
9k views

How to format USB drive in Linux Mint 14 with GUI? [duplicate]

I'm new to Linux Mint and I've just installed Linux Mint 14. Now I need to format my USB drive, but I'm not getting any option to do that. Please suggest me anyone, how can I do that with a GUI?
0
votes
0answers
197 views

Cant install Linux Mint over Ubuntu , Help…migrating from Windows 7…first time Linux

I have Ubuntu 12.10 installed on HDD. Over the last 2 days I have been using Linux Mint on LiveCD and decided that that is what I want. When I partition the hdd should it be in fat32? fat16? or one ...
2
votes
1answer
3k views

How to Format an LVM partition

I need to format a partition. But I have one LVM on my machine (VirtualBox) that is composed of two different two partitions of two Virtual HDD's (sdb5 and sdc5) fdisk output df output
0
votes
1answer
685 views

Where to find printf formatting reference?

Where is the offline reference of the format specifiers (e.g., %i, %s) which are supported by the Bash/system printf command? I've looked in help printf, man 1 printf and man 3 printf without luck. ...
0
votes
1answer
289 views

Output png as binary [closed]

Title says it all. I'm on a unix machine, can't figure it out. Sublime Text 2 opens the PNG as Hex and TextMate as ASCII. I need binary. How can I do it?
3
votes
2answers
1k views

Format disk through rootfs terminal

I've got into a strange situation (because of my own stupidity of course:-)). I kept failing to install Chakra Linux from Live USB, so I was thinking that the reason could be that I created the Live ...
4
votes
2answers
4k views

Format external hard drive to linux compatible file system

How do I format my external hard drive to a very Linux compatible file system? I am using L-Ubuntu 11.04.
3
votes
3answers
657 views

Prevent watch breaking colors

I'm altering scripts at work that monitor log files to single out certain items and colorize them. The final output is a list of 6-digit numbers in several columns. I've been able to add a ~ to the ...
1
vote
0answers
136 views

To which audio format can I convert aac lost-free with ffmpeg?

Since I did not manage to get the audio work with ffmpeg -i video.mp4 -acodec copy -vcodec copy out.avi I'm searching for an audio format to which I can convert aac lost-free. Does such an ...
4
votes
3answers
2k views

How can I format a thumb drive so that I delete all existing files?

I have a usb thumb drive that I want to reuse. How can I format it?
0
votes
1answer
115 views

du (disk usage) and format specifier for file/directory sizes strings?

I am really fond of du, and I often like to use it like this: $ du -hsc /var/mail/ /var/log/ 2>/dev/null 4,0K /var/mail/ 5,7M /var/log/ 5,7M total However, I'd like to be able to ...
2
votes
2answers
4k views

Solaris disk failed, how to remove it?

I have a system with Solaris 10. One of the internal disks is broken: c0t0d0s2 auto:sliced rootdisk1_1 rootdg online c0t0d0s2 - c0t1d0s2 auto - ...
1
vote
3answers
1k views

How to convert dd disk image to Clonezilla?

I have disk image from VirtualBox, it is a raw image, just like dd makes it, now I would like to restore the system to real machine using Clonezilla. However Clonezilla does not recognize the image ...
3
votes
3answers
1k views

Will formatting my drive TRIM my SSD?

Will a standard fresh linux (Ubuntu 11.10 to be exact) install and drive re-format (full) successfully TRIM my SSD, or do I need to do something extra? I know that ext4 will TRIM blocks on erase ...
1
vote
1answer
257 views

Backing up chroots for host reinstall

I've had my workstation for a couple of years now and its slowly become a complex beast, taking on many roles for my dev and test work. I have done some research and was thinking of setting up some ...
2
votes
1answer
158 views

Expanding text format in VI

The following code is taken from the superfish module for websites: (function($){$.fn.hoverIntent=function(f,g){var ...
2
votes
2answers
2k views

How do you format a USB stick after it is being labled “unrecognised” by Ubuntu?

I have a memory stick which I had cleaned of old data fragments. The memory stick was mounted on /dev/sdc1 so I did: dd if=/dev/zero of=/dev/sdc1 bs=1M After the task was complete, my usb memory ...
0
votes
1answer
286 views

Formatting secondary hard drive that has windows on it

I recently installed an setup an Ubuntu Server machine. It has two drives in it and the other drive has windows installed on it. (I didn't want to overwrite the windows installation until I had my ...
3
votes
0answers
126 views

129 MB used space shown in the SD card even after formatting it with mkfs.ext4 [duplicate]

Possible Duplicate: ext4: How to account for the filesystem space? The full 2 GB space doesn't get shown as free space even after fully formatting it with mkfs.ext4. Are these some system ...