Questions tagged [formatting]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
66 views

Ansible playbook to format and mount unused disks

I am trying to setup a disk on Linux with Ansible. I am fairly new to ansible. I have managed to get a list of all unused disks (though it will probably consist of just one) but I am having issues to ...
4 votes
2 answers
3k views

How to make PowerShell add a new line after executing a command?

Is it possible to somehow configure PowerShell to add a new line after executing a command? IronPython and other console programs which I use doesn't always finish it's output with a \n and because of ...
6 votes
7 answers
4k views

What format are DMARC dates?

I have a DMARC report that includes: <date_range> <begin>1500249600</begin> <end>1500335999</end> </date_range> How do I convert the dates to something human?
1 vote
0 answers
143 views

Given a command whose STDOUT prints to several lines, how might I format each of them (e.g. prepend a string, change a color, etc.)

Okay, so, contrived example here, but it's the simplest instance I could come up with the produces the conditions I'm trying to alter. I'm trying to run a black-boxed command and alter the multi-line ...
27 votes
6 answers
33k views

How do I set the date format to ISO globally in Linux?

I would like to globally set the Linux date format to ISO, which looks roughly like this: YYYY-MM-DD HH:MM:SS 2009-03-16 15:20:00 With varying levels of detail, such as omitting time, seconds, etc. ...
0 votes
1 answer
1k views

mkfs.ext4 -m -T options

How can I find out if I formatted the drive with mkfs.ext4 -m 0 -T largefile4 or without specifying the options -m and -T mkfs.ext4 In other words how can I see what is the -m reserved-blocks-...
7 votes
9 answers
84k views

How to find a not formatted hard disk on Linux

My server has two hard disks. One very limited of around 500 GB and another NOT FORMATTED of more than 1 TB. I need to find this second disk to format it (and eventually mount it to my Red ...
0 votes
0 answers
128 views

Do not log colors to screen logfile?

Running an application inside screen to log all output including stacktraces not caught by the applications logging. Screen is however logging all formatting like ^[[58;1H^[[58;1H which results in ...
0 votes
2 answers
1k views

Why is my Fedora HD STILL coming up as 127 GB?

After posting this question, and creating a fixed 700GB disk in Hyper-V, when I mount Fedora 11 to a CD and go to install it only shows 127GB of space to write to. How can I use all 700GB on the VHD?...
0 votes
1 answer
9k views

formatting External HDD gets stuck

I have an external 2TB HDD that i plan on leaving attached to my ubuntu server. I am trying to format it to ext4 but am encounterin issue My current setup is a 200gb ssd in the server (sdb), 2x2TB ...
0 votes
1 answer
393 views

Creating an output to powershell from an ini while matching if it exists then skip

I am trying to pull data from a .ini file using the PSIni (Get-IniContent). I have a format that works but generates too much data. My ini file looks like this : [General settings] gensetting1=random ...
1 vote
1 answer
4k views

Not able to format root partition in Arch Linux installation because already labelled

I am installing Arch Linux on a previously Windows machine. I have created the partitions, with root on sda1, and now I am trying to format it with mkfs.ext4 /dev/sda1, but it's not liking that. ...
4 votes
6 answers
16k views

NTFS hard disk repair utility in linux

Is there a hard disk utility which can format(NTFS) &repair a HDD which has lots of bad sectors like Norton Disk Doctor from Linux ?
-1 votes
1 answer
124 views

HP Elite 8300 SFF - Recovery without Recovery Partition... where's my image? [closed]

I'm trying to re-image my machine... at the moment it doesn't have ANY os on it, as the drive has been wiped, thus any recovery images are gone, too. This poses a problem when I'm reinstalling ...
4 votes
4 answers
3k views

How to decipher Powershell syntax for text formatting?

I found a PowerShell script that I thought I could adapt to my purposes. It contains this line that formats the output: $largeSizefiles = get-ChildItem -path $filesLocation -include $Extension -...
0 votes
1 answer
3k views

How do I force a date/time format for traffic captured with tshark using "-T fields"?

I'm capturing traffic with tshark into a CSV file using "-T fields", but whatever I try I can't get a nice ISO date or even changing the timezone to UTC. The command I'm using is tshark.exe -i 2 -c ...
2 votes
1 answer
36 views

How can I wipe a logical partition from a bootable usb?

I'm looking for a way to wipe just one partition from the drive. Currently I have a recovery partition which needs to stay as it is and a partition with windows 10 installed which needs to be wiped. ...
5 votes
0 answers
1k views

Can't stop and reformat /dev/md0

I want to reformat /dev/md0, which is a RAID0 array consisting of 4 disks (sd[bcde]). However, when I tried to run the command mke2fs, I received the following error message: /dev/md0 is apparently ...
0 votes
2 answers
3k views

Powershell split-path formatting

I'm having some issues on some of the formatting. My code looks for the new files in a folder structure and returns those items, but I would like to trim the result to only show the first 3 folders ...
1 vote
3 answers
7k views

how to low-level format a hard disk using AIX?

I have a server with AIX 6.1 , I formated some hdisks using diag tool, but in some way some of its VGDA survived. how may I low-level format a hard disk using AIX? or how may I clear the VGDA of a ...
-1 votes
1 answer
4k views

Fatal error when installing ESXi 5.5

I am trying to install ESXi 5.5 to a computer that ESXi 5.1 is installed before. I am doing installation using the CD-Rom. After I select the boot options in the boot menu, installation starts. After ...
1 vote
2 answers
5k views

Quick format of LUN in Server 2012(R2) hosted on a Thin provisioned SAN vol takes ages

I've now experienced this issue with 3 different storage vendors, using 3 different CNA adapters (all FCoE though), so I'm fairly sure this issue is not isolated to a specific storage vendor (seen on ...
0 votes
1 answer
117 views

Why do redirects in MediaWiki categories only sometimes appear in italics?

Apparently, redirects in categories are always meant to appear in italics. In our MediaWiki (1.13.2) this is almost always not the case. This is not a problem, but sometimes they suddenly appear in ...
1 vote
2 answers
159 views

Formatted capacity of a Sandisk Fusion-IO Card?

I'm interested in buying some 6.4 TB Fusion IO SX300 cards. They will be formatted as NTFS 64 Kb cluster size with Windows Server. My question is what will the actual usable space be once the drives ...
32 votes
3 answers
33k views

With what tool should I format a hard drive as UDF?

(This is a follow-up to "What is the partition id / filesystem type for UDF?") I know two ways to format a hard drive as UDF: Windows Vista or later: "format x: /fs:UDF" (don't use /q ! ) Linux: "...
0 votes
2 answers
646 views

Getting \r\n newlines to display properly in Mantis database

I've exported a Mantis project from one server to another and despite the MySQL SQL file (from which it was populated) showing: (15375,'\r\n1. Log out\r\n\r\n2. When logging in, start ... The final ...
0 votes
0 answers
41 views

Order of execution: First file system, then array vs. first array, then file system

Suppose I have two HDDs, same manufacturer, same model, same attributes (volume, speed, cache, ...). Both are equally partitioned. I want to have a level one array of two disks with one ext4 partition....
2 votes
2 answers
664 views

Can I format a Veritas cluster shared volume from windows?

We have a Microsoft Failover Cluster with dynamic disks managed by Veritas Storage Foundation. Today the sysadmins added a new disk for SQL Server but the cluster size on the volume was wrong, so I ...
1 vote
1 answer
437 views

Formatting tables

Through the use of several code snippets here and in VMware's website, I've created the following code that works: Connect-ViServer server $body = Get-Folder -name vm | Get-VM | Get-Snapshot | Select ...
-1 votes
1 answer
78 views

Formatting Hard Drive in windows

What is the differences between quick format and normal format in windows? I Just formatted my external Hard Drive by quick format and it took a minute to complete and then I just started formatting ...
1 vote
3 answers
3k views

In PowerShell, how can I parse a preformatted output?

Is there existing tooling to take text-based output and pipe it to a dynamic object that can be queried as columns? Specifically, I'm invoking .. query session /server:MYSERVER .. which is ...
-1 votes
1 answer
92 views

Formatting Windows 7 without CD [closed]

I have a Windows 7 laptop that I need to return to my former employer. I worked there for about 10 years, so I'd like to nuke the laptop before I return it since it might contain personal info in ...
6 votes
1 answer
3k views

Is it possible to specify custom error log format in nginx?

I can specify custom log format for access log in nginx, but it won't work for error log. I wish I always saw time when error occur. Is it possible?
0 votes
1 answer
658 views

Formatting a disk and creating a partition using the maximum amount of cylinders through bash

Usually we would use parted or fdisk to create a new partition, but in my case I want to do this non-interactively in a script. An interactive fdisk session would look like this: # fdisk /dev/sdb ...
0 votes
2 answers
193 views

Fast format option for HDs recommended in dedicated servers?

I'm learning about dedicated servers and have a very simple question. In windows server 2008, is it a good practice to fast format your HDs for the first time? Or should i perform a slow one? Which ...
-1 votes
1 answer
171 views

How to I retain text case while using %h in mt-daapd's config file? [closed]

In my mt-daapd config file is the line name = %h which, if I understand correctly, when my hostname is aCoolHostname this will evaluate to name = acoolhostname in lowercase. How do I use the %h ...
0 votes
1 answer
6k views

Outlook 2010 or Exchange is sending plain text when it should send HTML. Why?

If I open the saved .msg file I see the following: <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=Windows-1252"> <META NAME="Generator" CONTENT="MS Exchange Server version 6.5....
1 vote
0 answers
2k views

"Disk volume is write-protected" error when formatting

I have an Infortrend EonStor A16F-G2430 RAID-6 connected to Windows Server 2008 R2 x64 machine via Fiber Channel QLogic 2Gb PCI-X adapter. I am able to initialize the 8.5TB storage as GPT, and able ...
0 votes
2 answers
1k views

How to remove swap partitions from RAID 1 Array on Ubuntu?

Can anyone point in the right direction on how to remove SWAP out of a RAID1 configuration on Ubuntu 10.04 server? According to the Ubuntu Advanced installation guide, here, it said to add swap to the ...
1 vote
4 answers
8k views

NTFS or FAT32:Formatting Disk for PFSense

Im a network guy, and know very little about system administration. I would like to install PFSense and Monowall to 2 CF Cards, but not sure how they should be formatted (NTFS or FAT32) and volume ...
0 votes
1 answer
2k views

iostat -En output formatting

I have a problem extracting the device names on Solaris 8 SPARC when using 'iostat -En' command since the device names are too long. For example : iostat -en output ---- errors --- s/w h/w trn tot ...
0 votes
4 answers
4k views

How to do Low Level Format (Hard Format) for a Laptop HardDrive

I have 2 questions Can we know weather a Hard Drive has done Low Level format or not. Somehow using a tool ? How to do Low Level Format (Hard Format) for a Laptop HardDrive
0 votes
1 answer
134 views

formatting before md device creation in RAID5

consider you are creating a raid5 device with three drives. mdadm --create /dev/md0 --leve=5 --raid-disk=3 /dev/sda1 /dev/sdb1 /dev/sdc1 After issuing this command , I can see the progress of md ...
1 vote
2 answers
86 views

Ubuntu server Logs to email want to keep formatting in email.. ( new lines where required, etc )

want to send log files from Ubuntu Server via email using sendemail but the when I do all the text in the email is all in one big mess ( one space between words new lines and spacing not brought into ...
0 votes
1 answer
232 views

Hard drive formatted by Windows 7 not recognized by Windows Server 2008

I have a new 3.5" 2 TB hard drive. Using a Windows 7 laptop + a docking station, I quick formatted it to NTFS. Next, I put this hard drive on a docking station that's hooked via eSata to a rack server ...
2 votes
5 answers
267 views

Reinstalling Linux: how to avoid downtime?

My website runs on a dedicated Debian LAMP server . I would like to update the system (let's say I have a pretty old Debian version and I want to reinstall everything from scratch) What strategy can ...
1 vote
1 answer
332 views

Windows Server Backup for 2008 R2

When restoring a Windows Server Backup for 2008 R2, there is the option to format the drives. However, that formats them at the standard cluster size of 4K. Is there a way to change that during ...
1 vote
2 answers
2k views

Is there any standard log format that includes time taken to serve the request? Can i just add it without breaking standard logfile parsers?

I would like to log the %D and %O log format strings in apache 2. They are the time taken to serve a request in microseconds and the total bytes sent. This is useful to generate stats of the server ...
5 votes
4 answers
291 views

Preparing to sell a server

I purchased a server about 6 months ago and it's been a huge learning experience. I'm now going to sell it - I've sold the sites that I was hosting on it. I'd like to sell it with formatted hard ...
0 votes
2 answers
640 views

Windows Server 2008 Formatting System Partition

I have a dedicated server for now(in a far far away place), and we are going to change our provider next month. The problem is server has some valuable data for us about a project, and we need to ...