<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 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 class="">
<div class="h5"><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>