Hot answers tagged

143

You can use the disk utility(installed by default) to format the drive. There is an option 'format volume' select that option. . . . .


131

You can use Disks it's installed by default and easy to use. 1st: Click on the Dash icon 2nd: Search for "Disks" 3rd: Click on Disks The application will shows up: 1st: Choose the USB flash drive 2nd: Click on the "gear" icon and choose "Format" This little window will appear, just choose the option you want and click on Format...:


74

You can use old good Linux tool dd to do this. To do so: First open a terminal with pressing Ctrl+Alt+T. Then type sudo blkid in the terminal. Very carefully and closely examine the output. [sudo] password for anwar: /dev/sda1: UUID="63c6fb01-aac4-4d38-b29e-5a5780a98d12" TYPE="ext4" /dev/sda2: LABEL="Main" UUID="A80C1BD70C1B9F7E" TYPE="ntfs" /dev/...


64

in ubuntu there is many method by which you can format your pendrive 1 - by Disk utility see the video // simplest way 2- by Gparted tool see the video // you can install it from Ubuntu software center or you can install is by typing sudo apt-get install gparted 3- by using Terminal see the video go to super mode by typing "su" followed ...


53

Method #1 (The Graphical Way) Open Disks program from dash: Then choose your device from left. Make sure you have selected at least one volume, and click on format as below: Method #2 (The Command-Line Way) In case you can't get your device formatted from Method #1 try this way. Open the Terminal (Ctrl + Alt + T) List your block storage devices ...


44

Formatting a USB drive (Updated for Ubuntu 13.04) Type Disks in Dash Click on the little gears to open the sub menu as seen in the image below, and click on Format. Once the format window appear, choose the way you want to erase, The type of format, and volume name if you need, and then click on format as shown in the image below.


29

This is a known bug: https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/1294877 There are several workarounds but the one that worked for me was to right click on the .iso in the file explorer and select 'Open With Disk Image Writer' and then 'restore' the ISO image to the selected USB device.


28

gparted - the only way to go with formatting drives and HDs etc. It's available for download in the Ubuntu Software Center, just search for gparted.


28

I would recommend you installing GParted which is quite a powerful tool but still easy to use: sudo apt-get install gparted when you installed and opened it, it should be self-explanatory, otherwise dont hesitate to ask in a comment.


26

Your hard disk has Advanced Format 4096-byte sectors to which the partition is not perfectly aligned This line explains the warning: Sector size (logical/physical): 512 bytes / 4096 bytes Your hard disk is one of the newer models which uses the Advanced Format of 4096 bytes per physical sector instead of the older 512 bytes/sector. These HDDs can still ...


21

Try these commands, mogrify -format png /path/*.jpg This will convert all the .jpg files into .png files and saves the converted files in the same directory. mv /path/*.png ~/Desktop/pic This will moves all the .png files(converted) to the pic directory which resides on the Desktop.


20

The Command-Line Way In case you can't get your device formatted from the GUI, try this way. Open the Terminal (Ctrl + Alt + T) List your block storage devices by issuing the command lsblk Then identify your pen drive by it's SIZE. In my case its /dev/sdb Erase everything in the pen drive (OPTIONAL): sudo dd if=/dev/zero of=/dev/sdb bs=4k && ...


20

Gparted, that use mkfs.ext4 to create a ext4 filesystem, reserves 5% of the space for super-user, as explained in man page: -m reserved-blocks-percentage Specify the percentage of the filesystem blocks reserved for the super-user. This avoids fragmentation, and allows root-owned daemons, such as syslogd(8), to continue to function correctly ...


19

If it's an LVM partition, you will need to deactivate it using the command lvremove which will remove the lock. Only then can you delete the partition using gparted. Use lvscan to view the volume. Use lvremove to remove it. Check man pages man lvscan and man lvremove for details.


19

I ran into this problem with writing onto an old drive that had been written as a live linux disk. Solution if you just want to erase the disk /dev/sdX: sudo gdisk /dev/sdX o (agree to delete partitions) w (agree to write partition table) And then you have a perfectly blank drive. All that remains is to create a partition if you want to use it. ...


17

Run the below commands to format the usb to fat32 filesystem from terminal, sudo su fdisk -l (this helps to discover your pendrive /dev/sdxx) umount /dev/sdxx then format your device to FAT32 mkdosfs -F 32 -I /dev/sdxx Where "xx" is from the command fdisk -l which denotes your usb drive's last letters.


16

You can try the GParted program for all your partitioning tasks. You could search for it in the Ubuntu Software Centre or you could type this in the terminal: sudo apt-get install gparted With GParted you can format your External HDD partition to ext4, but the partition should be unmounted. Select your external hard drive from the top right corner (it ...


16

There never was a reason to format a disk in Windows unless for re-installing the OS or another OS. Defragmentation yes but that was inside Windows. Regarding the comment: people tended to format to get rid of malware in Windows but (to me) that is similar to blowing up the house to kill 1 mosquito. In general malware can be removed without a format but it ...


15

I think the core part of your question that is important is I will only use it on two Ubuntu machines. I faced the same dilemma as you and chose EXT4. The primary reasons I chose EXT4 are because 1) EXT4 will preserve my file permissions and 2) EXT4 better manages the storage of the data on it (e.g., it doesn't need to be constantly defragged and "...


14

I've done this quite often now - almost every time I did upgrade my system or (especially) if I switched to another distro. I normally log out, go to a console and log in as root directly (or depending on system configuration, as another user and switch to root), cd to /home folder and simply change my user's home folder name e.g. to "myUserName.bak". e.g.: ...


13

I have previously done this on Ubuntu and Mandriva. This will work and you will be able to mount your existing /home partition even if it is encrypted as long as you know the passphrase. Thing to keep in mind is to set up the mount points correctly and don't accidentally format your /home partition.


13

Using ImageMagick. First install imagemagick: sudo apt-get install imagemagick Try converting just one image at first: convert image.jpg image.png Now convert all: mogrify -format png *.jpg EDIT You also need to split it into chunks that will fit to avoid hitting the limit of how much you can put on a command line. This should work better: find -...


13

Boot other distro/OS that you want to install on your desktop and when you're prompt to set up your partitions, delete all existing. Now when you deleted all partitions, create new for your new distro/OS and install it.


12

Zero-out drive on Linux is done via: dd if=/dev/zero of=/dev/sdX where sdX is the device of the drive to delete. If you're not aware on how to do this, press Ctrl+Alt+T from Ubuntu, and type following: sudo dd if=/dev/zero of=/dev/sdb In example above, sdb is the second connected drive. NB! This will erase your drive completely. Use at your own risk.


12

If you want to change the time format to German , you must install the German language from the Language Support and then set the "Regional Settings" in German If you want to change the format in Date and Time , you must install dconf-tool . From terminal do sudo apt-get install dconf-tools Find it through Dash by writing dconf open it and goto Com ...


12

I have a slightly different opinion. Firstly, there were occasionally good reasons to reformat Windows. It slowed down if you installed things (including fonts). That wasn't fragmentation, it was just Windows being Windows. The registry on earlier versions could also get bogged down just through everyday use. And then there's malware. And I think some of ...


11

I'll throw my hat into the ring here as well. One alternative that I love to use is scrub. It is in the repositories, so to install it from a terminal window type in: sudo apt-get install scrub scrub supports many different types of scrubbing patterns Available patterns are: nnsa 3-pass NNSA NAP-14.1-C dod 3-pass DoD 5220.22-...


10

If you will be using it only on those two machines and plan to be religious about properly unmounting the drive before disconnecting the USB/powering it off, then yes, ext4 is highly recommended. ext4 will give you improved performance over ext3, particularly when trying to write multiple files at the same time or when creating a large file. The tradeoff ...


10

Well, one could try zero'ing the raw block device to see if that can work. If you can write to that then you may be able to create a clean partition table, create a new partition and format that. Suppose the USB stick is on /dev/sdc, first make sure /dev/sdc1 is unmounted: umount /dev/sdc1 See if you can then clear the partition table, say by copying a ...


10

If it were me, I would stop right now, don't touch it, and take it to a computer shop and let them recover it. There might be software out there that can do it, but I'm not sure of it and haven't used any. When data on a drive is "deleted", it isn't actually deleted, it is simply marked as "deleted" and new data is overwritten on it. As long as you haven't ...



Only top voted, non community-wiki answers of a minimum length are eligible