unplug/plug, it should automount, if not check:$ /etc/init.d/autofs status
automount (pid 1442) is running...
On Tue, May 6, 2014 at 2:44 PM, Michael Havens <bmike1@gmail.com> wrote:
it isn't automounting.:-)~MIKE~(-:On Tue, May 6, 2014 at 11:41 AM, Michael Havens <bmike1@gmail.com> wrote:got it all to work.... even changed the label name. What messed me up was:$> Command > 1 (press enter 3times) -- again maybe you don't need the oneI didn't understand at first that was part of the 'n' command.bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$ sudo fdisk /dev/sddCommand (m for help): oBuilding a new DOS disklabel with disk identifier 0x3e8c35b3.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): tSelected partition 1Hex code (type L to list codes): ntfsHex code (type L to list codes):Hex code (type L to list codes): l0 Empty 24 NEC DOS 81 Minix / old Lin bf Solaris1 FAT12 27 Hidden NTFS Win 82 Linux swap / So c1 DRDOS/sec (FAT-2 XENIX root 39 Plan 9 83 Linux c4 DRDOS/sec (FAT-3 XENIX usr 3c PartitionMagic 84 OS/2 hidden C: c6 DRDOS/sec (FAT-4 FAT16 <32M 40 Venix 80286 85 Linux extended c7 Syrinx5 Extended 41 PPC PReP Boot 86 NTFS volume set da Non-FS data6 FAT16 42 SFS 87 NTFS volume set db CP/M / CTOS / .7 HPFS/NTFS/exFAT 4d QNX4.x 88 Linux plaintext de Dell Utility8 AIX 4e QNX4.x 2nd part 8e Linux LVM df BootIt9 AIX bootable 4f QNX4.x 3rd part 93 Amoeba e1 DOS accessa OS/2 Boot Manag 50 OnTrack DM 94 Amoeba BBT e3 DOS R/Ob W95 FAT32 51 OnTrack DM6 Aux 9f BSD/OS e4 SpeedStorc W95 FAT32 (LBA) 52 CP/M a0 IBM Thinkpad hi eb BeOS fse W95 FAT16 (LBA) 53 OnTrack DM6 Aux a5 FreeBSD ee GPTf W95 Ext'd (LBA) 54 OnTrackDM6 a6 OpenBSD ef EFI (FAT-12/16/10 OPUS 55 EZ-Drive a7 NeXTSTEP f0 Linux/PA-RISC b11 Hidden FAT12 56 Golden Bow a8 Darwin UFS f1 SpeedStor12 Compaq diagnost 5c Priam Edisk a9 NetBSD f4 SpeedStor14 Hidden FAT16 <3 61 SpeedStor ab Darwin boot f2 DOS secondary16 Hidden FAT16 63 GNU HURD or Sys af HFS / HFS+ fb VMware VMFS17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fc VMware VMKCORE18 AST SmartSleep 65 Novell Netware b8 BSDI swap fd Linux raid auto1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid fe LANstep1c Hidden W95 FAT3 75 PC/IX be Solaris boot ff BBT1e Hidden W95 FAT1 80 Old MinixHex code (type L to list codes): 86Changed system type of partition 1 to 86 (NTFS volume set)Command (m for help): bThere is no *BSD partition on /dev/sdd.Command (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: 0x3e8c35b3Device Boot Start End Blocks Id System/dev/sdd1 2048 3913663 1955808 86 NTFS volume setCommand (m for help): wThe partition table has been altered!Calling ioctl() to re-read partition table.Syncing disks.bmike1@PresarioLapTop1:/media/bmike1/OpenELEC$
:-)~MIKE~(-:On Tue, May 6, 2014 at 11:23 AM, Mike Ballon <mike.ballon@gmail.com> wrote:After the 1 is t, 1 might have been selected for you by default.start over...$> fdisk /dev/sdd$> Command > o (create new table)$> Command > n (create part, 1 would be the default, maybe you don't need the 1)$> Command > 1 (press enter 3times) -- again maybe you don't need the one$> Command > t (select fs type)$> Command > b (selects fat for fs)$> Command > p (print the table)$> Command > w (write the changes)don't make me do a video I don't have time ;)On Tue, May 6, 2014 at 1:57 PM, Michael Havens <bmike1@gmail.com> wrote:
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
---------------------------------------------------
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