<div dir="ltr">Okay.... I think I really screwed things up. YOu said:<div><br></div><div><div class="gmail_quote"><div class="gmail_quote">$> fdisk /dev/sdb<br></div></div><div class="gmail_quote"><div class="gmail_quote">
$> Command > o</div><div class="gmail_quote"><div class="gmail_quote">$> Command > n</div><div class="gmail_quote"><div class="gmail_quote">$> Command > 1 (press enter 3times)</div></div></div></div><div class="gmail_quote">
<div class="gmail_quote">$> Command > t</div><div class="gmail_quote"><div class="gmail_quote">$> Command > b</div><div class="gmail_quote">$> Command > w<br></div><div class="gmail_quote"><div class="gmail_quote">
<div class="gmail_quote" style="font-family:arial,sans-serif;font-size:12.727272033691406px">$> Command > p<br></div><div><br></div><div>***The above didn't look like that. There was no '$>'</div><div>
But I figured your computer was just configured differently</div><div>so I carried on!</div><div><br></div><div><div>bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo fdisk /dev/sdd</div><div><br></div><div>Command (m for help): o </div>
<div>Building a new DOS disklabel with disk identifier 0xf66cb38c.</div><div>Changes will remain in memory only, until you decide to write them.</div><div>After that, of course, the previous content won't be recoverable.</div>
<div><br></div><div>Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)</div><div><br></div><div>Command (m for help): n</div><div>Partition type:<br></div><div> p primary (0 primary, 0 extended, 4 free)</div>
<div> e extended</div><div>Select (default p): p</div><div>Partition number (1-4, default 1): </div><div>Using default value 1</div><div>First sector (2048-3913663, default 2048): </div><div>Using default value 2048</div>
<div>Last sector, +sectors or +size{K,M,G} (2048-3913663, default 3913663): </div><div>Using default value 3913663</div><div><br></div><div>Command (m for help): 1</div><div>1: unknown command</div><div>Command action</div>
<div> a toggle a bootable flag</div><div> b edit bsd disklabel</div><div> c toggle the dos compatibility flag</div><div> d delete a partition</div><div> l list known partition types</div><div> m print this menu</div>
<div> n add a new partition</div><div> o create a new empty DOS partition table</div><div> p print the partition table</div><div> q quit without saving changes</div><div> s create a new empty Sun disklabel</div>
<div> t change a partition's system id</div><div> u change display/entry units</div><div> v verify the partition table</div><div> w write table to disk and exit</div><div> x extra functionality (experts only)</div>
<div><br></div><div>Command (m for help): t</div><div>Selected partition 1</div><div>Hex code (type L to list codes): </div><div>Hex code (type L to list codes): w</div><div>Hex code (type L to list codes): ^[^[</div><div>
Hex code (type L to list codes): </div><div>Hex code (type L to list codes): ^Cbmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo fdisk /dev/sdd</div><div><br></div><div>Command (m for help): o</div><div>Building a new DOS disklabel with disk identifier 0xbdd16f92.</div>
<div>Changes will remain in memory only, until you decide to write them.</div><div>After that, of course, the previous content won't be recoverable.</div><div><br></div><div>Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)</div>
<div><br></div><div>Command (m for help): n</div><div>Partition type:</div><div> p primary (0 primary, 0 extended, 4 free)</div><div> e extended</div><div>Select (default p): b</div><div>Invalid partition type `b'</div>
<div><br></div><div>Command (m for help): n</div><div>Partition type:</div><div> p primary (0 primary, 0 extended, 4 free)</div><div> e extended</div><div>Select (default p): p</div><div>Partition number (1-4, default 1): </div>
<div>Using default value 1</div><div>First sector (2048-3913663, default 2048): </div><div>Using default value 2048</div><div>Last sector, +sectors or +size{K,M,G} (2048-3913663, default 3913663): </div><div>Using default value 3913663</div>
<div><br></div><div>Command (m for help): b</div><div>There is no *BSD partition on /dev/sdd.</div><div><br></div><div>Command (m for help): w</div><div>The partition table has been altered!</div><div><br></div><div>Calling ioctl() to re-read partition table.</div>
<div>Syncing disks.</div><div>bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo fdisk /dev/sdd<br></div><div><br></div><div>Command (m for help): p</div><div><br></div><div>Disk /dev/sdd: 2003 MB, 2003795968 bytes</div>
<div>11 heads, 4 sectors/track, 88946 cylinders, total 3913664 sectors</div><div>Units = sectors of 1 * 512 = 512 bytes</div><div>Sector size (logical/physical): 512 bytes / 512 bytes</div><div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div>
<div>Disk identifier: 0xbdd16f92</div><div><br></div><div> Device Boot Start End Blocks Id System</div><div>/dev/sdd1 2048 3913663 1955808 83 Linux</div><div><br></div><div>Command (m for help): ^[[B^[[A^[</div>
<div>[: unknown command</div><div>Command action</div><div> a toggle a bootable flag</div><div> b edit bsd disklabel</div><div> c toggle the dos compatibility flag</div><div> d delete a partition</div><div>
l list known partition types</div><div> m print this menu</div><div> n add a new partition</div><div> o create a new empty DOS partition table</div><div> p print the partition table</div><div> q quit without saving changes</div>
<div> s create a new empty Sun disklabel</div><div> t change a partition's system id</div><div> u change display/entry units</div><div> v verify the partition table</div><div> w write table to disk and exit</div>
<div> x extra functionality (experts only)</div><div><br></div><div>Command (m for help): q</div><div><br></div></div><div><div>sudo fdisk -l /dev/sdd1</div><div><br></div><div>Disk /dev/sdd1: 2001 MB, 2001731584 bytes</div>
<div>62 heads, 62 sectors/track, 1017 cylinders, total 3909632 sectors</div><div>Units = sectors of 1 * 512 = 512 bytes</div><div>Sector size (logical/physical): 512 bytes / 512 bytes</div><div>I/O size (minimum/optimal): 512 bytes / 512 bytes</div>
<div>Disk identifier: 0x20ac7dda</div><div><br></div><div>This doesn't look like a partition table</div><div>Probably you selected the wrong device.</div><div><br></div><div> Device Boot Start End Blocks Id System</div>
<div>/dev/sdd1p1 ? 3224498923 3657370039 216435558+ 7 HPFS/NTFS/exFAT</div><div>/dev/sdd1p2 ? 3272020941 930513678 976730017 16 Hidden FAT16</div><div>/dev/sdd1p3 ? 0 0 0 6f Unknown</div>
<div>/dev/sdd1p4 50200576 974536369 462167897 0 Empty</div><div><br></div><div>Partition table entries are not in disk order</div></div><div><br></div></div></div></div></div></div><div><div>****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:</div>
<div><br></div><div>bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo sfdisk /dev/sdd</div><div>Checking that no-one is using this disk right now ...</div><div>OK</div><div><br></div><div>Disk /dev/sdd: 1018 cylinders, 62 heads, 62 sectors/track</div>
<div>Old situation:</div><div>Warning: The partition table looks like it was made</div><div> for C/H/S=*/11/4 (instead of 1018/62/62).</div><div>For this listing I'll assume that geometry.</div><div>Units = cylinders of 22528 bytes, blocks of 1024 bytes, counting from 0</div>
<div><br></div><div> Device Boot Start End #cyls #blocks Id System</div><div>/dev/sdd1 46+ 88946- 88901- 1955808 83 Linux</div><div><span class="" style="white-space:pre"> </span>start: (c,h,s) expected (46,6,1) found (1,78,9)</div>
<div><span class="" style="white-space:pre"> </span>end: (c,h,s) expected (1023,10,4) found (34,10,4)</div><div>/dev/sdd2 0 - 0 0 0 Empty</div><div>/dev/sdd3 0 - 0 0 0 Empty</div>
<div>/dev/sdd4 0 - 0 0 0 Empty</div><div>Input in the following format; absent fields get a default value.</div><div><start> <size> <type [E,S,L,X,hex]> <bootable [-,*]> <c,h,s> <c,h,s></div>
<div>Usually you only need to specify <start> and <size> (and perhaps <type>).</div><div><br></div><div>/dev/sdd1 :?</div><div>trailing junk after number</div><div><br></div><div>/dev/sdd1 :</div></div>
<div>
<br></div></div><div class="gmail_extra"><br clear="all"><div>:-)~MIKE~(-:</div>
<br><br><div class="gmail_quote">On Tue, May 6, 2014 at 7:29 AM, Mike Ballon <span dir="ltr"><<a href="mailto:mike.ballon@gmail.com" target="_blank">mike.ballon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div>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.</div><div><br></div><div>-- returns the memory stick i just plugged in and assigns device /dev/sdb<br>
</div><div class="gmail_extra"><div class="gmail_extra"><br></div><div class="gmail_extra">$> dmesg<br></div><div class="gmail_extra"><br></div><div class="gmail_extra">[ 452.300827] scsi 3:0:0:0: Direct-Access Kingston DataTraveler 2.0 PMAP PQ: 0 ANSI: 4</div>
<div class="gmail_extra">[ 452.302226] sd 3:0:0:0: Attached scsi generic sg2 type 0</div><div class="gmail_extra">[ 452.316528] sd 3:0:0:0: [sdb] 15240576 512-byte logical blocks: (7.80 GB/7.26</div><br><div class="gmail_quote">
-- automount presents the stick to me because it has a file system<br></div><div class="gmail_quote"><br></div><div class="gmail_quote"><div class="gmail_quote">$> mount | grep sdb</div><div><br></div></div><div class="gmail_quote">
<div class="gmail_quote">/dev/sdb1 on /media/UNTITLED type vfat <br></div><div><br></div><div><div class="gmail_quote">-- fdisk returns the partition info<br></div></div><div><br></div></div><div class="gmail_quote">$> fdisk -l /dev/sdb<br>
</div><div class="gmail_quote"><div class="gmail_quote"><br></div><div class="gmail_quote">Device Boot Start End Blocks Id System<br></div><div class="gmail_quote">/dev/sdb1 2 15240575 7620287 b W95 FAT32</div>
<div><br></div><div><div class="gmail_quote">-- use fdisk to delete the partition</div></div><div><br></div><div>$> fdisk /dev/sdb<br></div></div><div class="gmail_quote">$> Command > d</div><div class="gmail_quote">
<div class="gmail_quote">$> Command > w</div><div class="gmail_quote"><div class="gmail_quote">$> Command > p</div><div><br></div></div><div class="gmail_quote">Device Boot Start End Blocks Id System<br>
</div><div class="gmail_quote"><div class="gmail_quote"><br></div></div></div><div class="gmail_quote"><div class="gmail_quote"><div><div class="gmail_quote">-- use fdisk to create the partition</div></div><div><br></div>
<div>$> fdisk /dev/sdb<br></div></div><div class="gmail_quote">$> Command > o</div><div class="gmail_quote"><div class="gmail_quote">$> Command > n</div><div class="gmail_quote"><div class="gmail_quote">$> Command > 1 (press enter 3times)</div>
</div></div></div><div class="gmail_quote"><div class="gmail_quote">$> Command > t</div><div class="gmail_quote"><div class="gmail_quote">$> Command > b</div><div class="gmail_quote">$> Command > w<br></div>
<div class="gmail_quote"><div class="gmail_quote"><div class="gmail_quote">$> Command > p<br></div><div class="gmail_quote"><br></div><div class="gmail_quote"></div></div><div class="gmail_quote"><div class="gmail_quote">
Device Boot Start End Blocks Id System</div><div class="gmail_quote">/dev/sdb1 2048 15240575 7619264 b W95 FAT32</div><div><br></div><div>-- 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</div>
<div><br></div><div>$> umount /dev/sdb1</div><div>$> mkfs.vfat /dev/sdb1</div><div>$> mount /dev/sdb /mnt/foobar</div><div>$> touch /mnt/foobar/test.txt</div><div>$> ls /mnt/fobar</div><div><br></div><div>
<div>
test.txt</div></div><div><br></div><div>-- oops forgot the renaming of volume, I'm on debian so</div><div><br></div><div>$> apt-get install mtools</div><div><br></div><div><div>Setting up mtools (4.0.17-1) ...</div>
</div><div><br></div><div>$> mlabel -i /dev/sdb1 ::usb_stick</div><div><br></div><div>again... gparted is your friend</div><div><br></div></div></div></div></div><div><div class="h5"><div class="gmail_quote"><br></div>
<div class="gmail_quote">
On Tue, May 6, 2014 at 9:42 AM, Mike Ballon <span dir="ltr"><<a href="mailto:mike.ballon@gmail.com" target="_blank">mike.ballon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">if you unmounted then /dev/sdd1 would no longer be there.<div><br></div><div>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.</div></div><div>
<div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Tue, May 6, 2014 at 3:34 AM, Michael Havens <span dir="ltr"><<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">bummer.... new drive:<div><div><br></div><div>mount</div><div>...</div><div>/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)</div>
<div><unmout device with file manager></div><div>bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo mkfs -t vfat /dev/sdd1</div><div>mkfs.vfat 3.0.13 (30 Jun 2012)</div><div>/dev/sdd1: No such file or directory</div>
<div>bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ </div></div><div><div>bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo mkfs -t vfat /dev/sdd1</div><div>mkfs.vfat 3.0.13 (30 Jun 2012)</div><div>/dev/sdd1: No such file or directory</div>
</div><div><div>bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo e2label /dev/sdd1 Pny2G</div><div>e2label: No such file or directory while trying to open /dev/sdd1</div><div><div>Couldn't find valid filesystem superblock.</div>
</div></div><div><br></div><div>what am I doing wrong?</div></div><div class="gmail_extra"><br clear="all"><div>:-)~MIKE~(-:</div><div><div>
<br><br><div class="gmail_quote">On Mon, May 5, 2014 at 8:28 PM, Michael Havens <span dir="ltr"><<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div dir="ltr">that wouldn't change a vfat system but it inspired the correct search terms and I found 'dosfslabel'. Thanks for the help, man:D</div><div class="gmail_extra"><br clear="all"><div>:-)~MIKE~(-:</div>
<div><div>
<br><br><div class="gmail_quote">On Mon, May 5, 2014 at 7:50 PM, Ryan Rix <span dir="ltr"><<a href="mailto:ry@n.rix.si" target="_blank">ry@n.rix.si</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
Yeah, you're right Mike.<br>
<br>
<a href="https://help.ubuntu.com/community/RenameUSBDrive#FAT16_and_FAT32" target="_blank">https://help.ubuntu.com/community/RenameUSBDrive#FAT16_and_FAT32</a><br>
<div><div><br>
Michael Havens <<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>> writes:<br>
> same thing:<br>
><br>
> sudo e2label /dev/sdd1 Goodwill<br>
> e2label: Bad magic number in super-block while trying to open<br>
> /dev/sdd1<br>
> Couldn't find valid filesystem superblock.<br>
><br>
> could it be because it is a vfat file system? (while I love linux I<br>
> like to have the ability for my flash drives to be used on common<br>
> computers)<br>
><br>
> :-)~MIKE~(-:<br>
><br>
> On Mon, May 5, 2014 at 5:51 PM, Mike Ballon <<a href="mailto:mike.ballon@gmail.com" target="_blank">mike.ballon@gmail.com</a>><br>
> wrote:<br>
><br>
> It's I file system label so yes, you'll need to format. If there<br>
> is no partition will have to create a partition before you can do<br>
> a mkfs gparted should do all that for you<br>
><br>
><br>
><br>
> On May 5, 2014 7:47 PM, "Michael Havens" <<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>> wrote:<br>
><br>
><br>
> Thanks Mike. Does this error mean I need to format the drive?<br>
><br>
><br>
><br>
> sudo e2label /dev/sdc1 Goodwill<br>
> e2label: Bad magic number in super-block while trying to open<br>
> /dev/sdc1<br>
> Couldn't find valid filesystem superblock.<br>
><br>
><br>
> This is what 'mount' shows sdc1 to be:<br>
><br>
><br>
><br>
> /dev/sdc1 on /media/bmike1/OpenELEC type vfat<br>
> (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,<br>
> showexec,flush,uhelper=udisks2)<br>
><br>
><br>
> and to format this and apply the label it would be:<br>
><br>
> mkfs -t vfat /dev/sdc1;e2label /dev/sdc1 Goodwill<br>
><br>
><br>
><br>
><br>
><br>
><br>
> :-)~MIKE~(-:<br>
><br>
><br>
><br>
> On Mon, May 5, 2014 at 4:08 PM, Mike Ballon<br>
> <<a href="mailto:mike.ballon@gmail.com" target="_blank">mike.ballon@gmail.com</a>> wrote:<br>
><br>
><br>
> e2label<br>
><br>
><br>
><br>
><br>
> On Mon, May 5, 2014 at 7:05 PM, Michael Havens<br>
> <<a href="mailto:bmike1@gmail.com" target="_blank">bmike1@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> I have a few flash drives. When I plug them in to my<br>
> computer a name referring to that flash drive appears<br>
> in the file manager. I have two questions: the first<br>
> is how do I change that name? The second is how do I<br>
> set that name when I format the drive?<br>
><br>
> :-)~MIKE~(-:<br>
><br>
><br>
> ---------------------------------------------------<br>
> PLUG-discuss mailing list -<br>
> <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
> To subscribe, unsubscribe, or to change your mail<br>
> settings:<br>
> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
><br>
><br>
><br>
> ---------------------------------------------------<br>
> PLUG-discuss mailing list -<br>
> <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
> To subscribe, unsubscribe, or to change your mail<br>
> settings:<br>
> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
><br>
><br>
><br>
> ---------------------------------------------------<br>
> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
> To subscribe, unsubscribe, or to change your mail settings:<br>
> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
><br>
> ---------------------------------------------------<br>
> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
> To subscribe, unsubscribe, or to change your mail settings:<br>
> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
><br>
><br>
> ---------------------------------------------------<br>
> PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
> To subscribe, unsubscribe, or to change your mail settings:<br>
> <a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br>
</div></div></blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
<br>---------------------------------------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org">PLUG-discuss@lists.phxlinux.org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/mailman/listinfo/plug-discuss</a><br></blockquote></div><br></div>