Okay.... I think I really screwed things up. YOu said:$> fdisk /dev/sdb$> Command > o$> Command > n$> Command > 1 (press enter 3times)$> Command > t$> Command > b$> Command > w$> Command > p***The above didn't look like that. There was no '$>'But I figured your computer was just configured differentlyso I carried on!bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo fdisk /dev/sddCommand (m for help): oBuilding a new DOS disklabel with disk identifier 0xf66cb38c.Changes will remain in memory only, until you decide to write them.After that, of course, the previous content won't be recoverable.Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)Command (m for help): nPartition type:p primary (0 primary, 0 extended, 4 free)e extendedSelect (default p): pPartition number (1-4, default 1):Using default value 1First sector (2048-3913663, default 2048):Using default value 2048Last sector, +sectors or +size{K,M,G} (2048-3913663, default 3913663):Using default value 3913663Command (m for help): 11: unknown commandCommand actiona toggle a bootable flagb edit bsd disklabelc toggle the dos compatibility flagd delete a partitionl list known partition typesm print this menun add a new partitiono create a new empty DOS partition tablep print the partition tableq quit without saving changess create a new empty Sun disklabelt change a partition's system idu change display/entry unitsv verify the partition tablew write table to disk and exitx extra functionality (experts only)Command (m for help): tSelected partition 1Hex code (type L to list codes):Hex code (type L to list codes): wHex code (type L to list codes): ^[^[Hex code (type L to list codes):Hex code (type L to list codes): ^Cbmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo fdisk /dev/sddCommand (m for help): oBuilding a new DOS disklabel with disk identifier 0xbdd16f92.Changes will remain in memory only, until you decide to write them.After that, of course, the previous content won't be recoverable.Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)Command (m for help): nPartition type:p primary (0 primary, 0 extended, 4 free)e extendedSelect (default p): bInvalid partition type `b'Command (m for help): nPartition type:p primary (0 primary, 0 extended, 4 free)e extendedSelect (default p): pPartition number (1-4, default 1):Using default value 1First sector (2048-3913663, default 2048):Using default value 2048Last sector, +sectors or +size{K,M,G} (2048-3913663, default 3913663):Using default value 3913663Command (m for help): bThere is no *BSD partition on /dev/sdd.Command (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo fdisk /dev/sddCommand (m for help): pDisk /dev/sdd: 2003 MB, 2003795968 bytes11 heads, 4 sectors/track, 88946 cylinders, total 3913664 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0xbdd16f92Device Boot Start End Blocks Id System/dev/sdd1 2048 3913663 1955808 83 LinuxCommand (m for help): ^[[B^[[A^[[: unknown commandCommand actiona toggle a bootable flagb edit bsd disklabelc toggle the dos compatibility flagd delete a partitionl list known partition typesm print this menun add a new partitiono create a new empty DOS partition tablep print the partition tableq quit without saving changess create a new empty Sun disklabelt change a partition's system idu change display/entry unitsv verify the partition tablew write table to disk and exitx extra functionality (experts only)Command (m for help): qsudo fdisk -l /dev/sdd1Disk /dev/sdd1: 2001 MB, 2001731584 bytes62 heads, 62 sectors/track, 1017 cylinders, total 3909632 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physical): 512 bytes / 512 bytesI/O size (minimum/optimal): 512 bytes / 512 bytesDisk identifier: 0x20ac7ddaThis doesn't look like a partition tableProbably you selected the wrong device.Device Boot Start End Blocks Id System/dev/sdd1p1 ? 3224498923 3657370039 216435558+ 7 HPFS/NTFS/exFAT/dev/sdd1p2 ? 3272020941 930513678 976730017 16 Hidden FAT16/dev/sdd1p3 ? 0 0 0 6f Unknown/dev/sdd1p4 50200576 974536369 462167897 0 EmptyPartition table entries are not in disk order****Now when I plug the USB drive in and it automounts nothing new appears in the file manager. SO I ran another program to see what it says:bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo sfdisk /dev/sddChecking that no-one is using this disk right now ...OKDisk /dev/sdd: 1018 cylinders, 62 heads, 62 sectors/trackOld situation:Warning: The partition table looks like it was madefor C/H/S=*/11/4 (instead of 1018/62/62).For this listing I'll assume that geometry.Units = cylinders of 22528 bytes, blocks of 1024 bytes, counting from 0Device Boot Start End #cyls #blocks Id System/dev/sdd1 46+ 88946- 88901- 1955808 83 Linuxstart: (c,h,s) expected (46,6,1) found (1,78,9)end: (c,h,s) expected (1023,10,4) found (34,10,4)/dev/sdd2 0 - 0 0 0 Empty/dev/sdd3 0 - 0 0 0 Empty/dev/sdd4 0 - 0 0 0 EmptyInput in the following format; absent fields get a default value.<start> <size> <type [E,S,L,X,hex]> <bootable [-,*]> <c,h,s> <c,h,s>Usually you only need to specify <start> and <size> (and perhaps <type>)./dev/sdd1 :?trailing junk after number/dev/sdd1 ::-)~MIKE~(-:On Tue, May 6, 2014 at 7:29 AM, Mike Ballon <mike.ballon@gmail.com> wrote:First I was wrong to say that /dev/sdd1 would not exist it you simply unmounted it. I believe it can vary between a physical system and a VM.-- returns the memory stick i just plugged in and assigns device /dev/sdb
$> dmesg[ 452.300827] scsi 3:0:0:0: Direct-Access Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 4[ 452.302226] sd 3:0:0:0: Attached scsi generic sg2 type 0[ 452.316528] sd 3:0:0:0: [sdb] 15240576 512-byte logical blocks: (7.80 GB/7.26-- automount presents the stick to me because it has a file system$> mount | grep sdb/dev/sdb1 on /media/UNTITLED type vfat-- fdisk returns the partition info$> fdisk -l /dev/sdb
Device Boot Start End Blocks Id System/dev/sdb1 2 15240575 7620287 b W95 FAT32-- use fdisk to delete the partition$> fdisk /dev/sdb$> Command > d$> Command > w$> Command > pDevice Boot Start End Blocks Id System
-- use fdisk to create the partition$> fdisk /dev/sdb$> Command > o$> Command > n$> Command > 1 (press enter 3times)$> Command > t$> Command > b$> Command > w$> Command > pDevice Boot Start End Blocks Id System/dev/sdb1 2048 15240575 7619264 b W95 FAT32-- make the file system if needed, I say if needed because since the partition is exactly the same and the fs is the same, automount mounted the stick for me automagically$> umount /dev/sdb1$> mkfs.vfat /dev/sdb1$> mount /dev/sdb /mnt/foobar$> touch /mnt/foobar/test.txt$> ls /mnt/fobartest.txt-- oops forgot the renaming of volume, I'm on debian so$> apt-get install mtoolsSetting up mtools (4.0.17-1) ...$> mlabel -i /dev/sdb1 ::usb_stickagain... gparted is your friendOn Tue, May 6, 2014 at 9:42 AM, Mike Ballon <mike.ballon@gmail.com> wrote:if you unmounted then /dev/sdd1 would no longer be there.Give me a few mins and I'll spin up a VM (I'm on a Mac) and I'll run through all the steps for you.On Tue, May 6, 2014 at 3:34 AM, Michael Havens <bmike1@gmail.com> wrote:bummer.... new drive:mount.../dev/sdd1 on /media/bmike1/OpenELEC type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks2)<unmout device with file manager>bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo mkfs -t vfat /dev/sdd1mkfs.vfat 3.0.13 (30 Jun 2012)/dev/sdd1: No such file or directorybmike1@PresarioLapTop1:/media/bmike1/OpenELEC$bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo mkfs -t vfat /dev/sdd1mkfs.vfat 3.0.13 (30 Jun 2012)/dev/sdd1: No such file or directorybmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo e2label /dev/sdd1 Pny2Ge2label: No such file or directory while trying to open /dev/sdd1Couldn't find valid filesystem superblock.what am I doing wrong?:-)~MIKE~(-:On Mon, May 5, 2014 at 8:28 PM, Michael Havens <bmike1@gmail.com> wrote:that wouldn't change a vfat system but it inspired the correct search terms and I found 'dosfslabel'. Thanks for the help, man:D:-)~MIKE~(-:On Mon, May 5, 2014 at 7:50 PM, Ryan Rix <ry@n.rix.si> wrote:Yeah, you're right Mike.
https://help.ubuntu.com/community/RenameUSBDrive#FAT16_and_FAT32
Michael Havens <bmike1@gmail.com> writes:
> same thing:
>
> sudo e2label /dev/sdd1 Goodwill
> e2label: Bad magic number in super-block while trying to open
> /dev/sdd1
> Couldn't find valid filesystem superblock.
>
> could it be because it is a vfat file system? (while I love linux I
> like to have the ability for my flash drives to be used on common
> computers)
>
> :-)~MIKE~(-:
>
> On Mon, May 5, 2014 at 5:51 PM, Mike Ballon <mike.ballon@gmail.com>
> wrote:
>
> It's I file system label so yes, you'll need to format. If there
> is no partition will have to create a partition before you can do
> a mkfs gparted should do all that for you
>
>
>
> On May 5, 2014 7:47 PM, "Michael Havens" <bmike1@gmail.com> wrote:
>
>
> Thanks Mike. Does this error mean I need to format the drive?
>
>
>
> sudo e2label /dev/sdc1 Goodwill
> e2label: Bad magic number in super-block while trying to open
> /dev/sdc1
> Couldn't find valid filesystem superblock.
>
>
> This is what 'mount' shows sdc1 to be:
>
>
>
> /dev/sdc1 on /media/bmike1/OpenELEC type vfat
> (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,
> showexec,flush,uhelper=udisks2)
>
>
> and to format this and apply the label it would be:
>
> mkfs -t vfat /dev/sdc1;e2label /dev/sdc1 Goodwill
>
>
>
>
>
>
> :-)~MIKE~(-:
>
>
>
> On Mon, May 5, 2014 at 4:08 PM, Mike Ballon
> <mike.ballon@gmail.com> wrote:
>
>
> e2label
>
>
>
>
> On Mon, May 5, 2014 at 7:05 PM, Michael Havens
> <bmike1@gmail.com> wrote:
>
>
>
> I have a few flash drives. When I plug them in to my
> computer a name referring to that flash drive appears
> in the file manager. I have two questions: the first
> is how do I change that name? The second is how do I
> set that name when I format the drive?
>
> :-)~MIKE~(-:
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail
> settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list -
> PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail
> settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
> To subscribe, unsubscribe, or to change your mail settings:
> http://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.phxlinux.org
To subscribe, unsubscribe, or to change your mail settings:
http://lists.phxlinux.org/mailman/listinfo/plug-discuss