You are not logged in.

#1 2016-07-13 15:05:46

krypton27
Member
Registered: 2016-05-11
Posts: 28

formating a live usb

hi guys, after done with installation of arch now i just want to use my usb as normal , i tried to format with mkfs , g-parted, and file manager but i'm not able to use it even i get arch menu booting from usd even after formating. plz help me. my errors are(p.s: i tried with another distros also)


error synchronizing after initial wipe : timed out waiting for object (udisks-error-quark, 0)

unable to access "ARCH_201606" (it was saying drive is write protected

Offline

#2 2016-07-13 16:27:52

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: formating a live usb

krypton27 wrote:

..
plz help me.
...

Absolutely!* See https://wiki.archlinux.org/index.php/partitioning and https://wiki.archlinux.org/index.php/File_systems

*sarcasm.


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#3 2016-07-13 16:28:27

Awebb
Member
Registered: 2010-05-06
Posts: 6,312

Re: formating a live usb

Prevent if from auto mounting. udisks seems to like it. Manually unmount it, if you must.

Offline

#4 2016-07-13 16:37:36

krypton27
Member
Registered: 2016-05-11
Posts: 28

Re: formating a live usb

JohnBobSmith wrote:

i think you didn't get it, i am not partitioning to make a live usb but to remove it

Offline

#5 2016-07-13 16:39:07

krypton27
Member
Registered: 2016-05-11
Posts: 28

Re: formating a live usb

Awebb wrote:

Prevent if from auto mounting. udisks seems to like it. Manually unmount it, if you must.

actually i'm getting error to mount it

Offline

#6 2016-07-13 16:43:23

Awebb
Member
Registered: 2010-05-06
Posts: 6,312

Re: formating a live usb

You're not supposed to mount it. You want to remove the partitions. Unmount it entirely, prevent udisks from mounting it (remove udisks, if necessary) and use gparted or parted. Create a new partition table to get rid of the MBR.

Offline

#7 2016-07-13 16:49:04

JohnBobSmith
Member
From: Canada
Registered: 2014-11-29
Posts: 804

Re: formating a live usb

The manpage for mount wrote:

*web link*

remount
    Attempt to remount an already-mounted filesystem. This is commonly used to change the mount flags for a filesystem, especially to make a readonly filesystem writeable. It does not change device or mount point.

    The remount functionality follows the standard way how the mount command works with options from fstab. It means the mount command doesn't read fstab (or mtab) only when a device and dir are fully specified.

    mount -o remount,rw /dev/foo /dir

    After this call all old mount options are replaced and arbitrary stuff from fstab is ignored, except the loop= option which is internally generated and maintained by the mount command.

    mount -o remount,rw /dir

    After this call mount reads fstab (or mtab) and merges these options with options from command line ( -o ).

So if your system/flash drive/disk/whatever is mounted as read only and/or possibly write protected, remount it as read write.

Last edited by JohnBobSmith (2016-07-13 16:50:53)


I am diagnosed with bipolar disorder. As it turns out, what I thought was my greatest weakness is now my greatest strength.

Everyday, I make a conscious choice to overcome my challenges and my problems. It's not easy, but its better than the alternative...

Offline

#8 2016-07-13 17:22:13

krypton27
Member
Registered: 2016-05-11
Posts: 28

Re: formating a live usb

Awebb wrote:

You're not supposed to mount it. You want to remove the partitions. Unmount it entirely, prevent udisks from mounting it (remove udisks, if necessary) and use gparted or parted. Create a new partition table to get rid of the MBR.

after unmounting formating and checking i found something

GParted 0.25.0 --enable-libparted-dmraid --enable-online-resize

Libparted 3.2
Check and repair file system (fat32) on /dev/sdb2  00:00:00    ( ERROR )
        
calibrate /dev/sdb2  00:00:00    ( SUCCESS )
        
path: /dev/sdb2 (partition)
start: 172
end: 82091
size: 81920 (40.00 MiB)
check file system on /dev/sdb2 for errors and (if possible) fix them  00:00:00    ( SUCCESS )
        
fsck.fat -a -w -v /dev/sdb2  00:00:00    ( SUCCESS )
        
fsck.fat 4.0 (2016-05-06)
Checking we can access the last sector of the filesystem
Boot sector contents:
System ID "mkfs.fat"
Media byte 0xf8 (hard disk)
512 bytes per logical sector
512 bytes per cluster
32 reserved sectors
First FAT starts at byte 16384 (sector 32)
2 FATs, 32 bit entries
322560 bytes per FAT (= 630 sectors)
Root directory start at cluster 2 (arbitrary size)
Data area starts at byte 661504 (sector 1292)
80628 data clusters (41281536 bytes)
62 sectors/track, 239 heads
172 hidden sectors
81920 sectors total
Reclaiming unconnected clusters.
Checking free cluster summary.
/dev/sdb2: 1 files, 1/80628 clusters
grow file system to fill the partition  00:00:00    ( ERROR )
        
using libparted
libparted messages    ( INFO )
        
GNU Parted cannot resize this partition to this size. We're working on it!

Offline

#9 2016-07-13 17:53:44

Awebb
Member
Registered: 2010-05-06
Posts: 6,312

Re: formating a live usb

Whatever you're trying to do, you don't want to use FAT in anything below FAT32. vfat it is.

Offline

Board footer

Powered by FluxBB