On 12Nov2013 08:52, highskywhy@yahoo.de <highskywhy@yahoo.de> wrote:
> how can I clean the win stick for use him for Linux?
Well, you may not need to.
It is common for USB sticks (which look like discs to the OS) to
be formatted with a FAT32 filesystem (a Windows format) because
almost everything can read and write that.
It is not a great filesystem, but it is very portable. You can
insert such a USB stick into a Windows machine, or a Linux machine,
a Mac, or many common embedded machine such as blu-ray players and
TVs, and all can read the data on it.
So, if your Linux system does not mount the stick automatically
you can probably mount it like this:
mkdir /mnt/usb-stick
mount -t vfat /dev/sdX1 /mnt/usb-stick
You will need to replace "sdX1" with an specific device name. When you
insert a USB stick the kernel will allocate it a device name and recite
it in the kernel log. So issue the command:
dmesg
At the bottom you will find text like this:
[9490472.257322] scsi 19:0:0:0: Direct-Access 1.00 PQ: 0 ANSI: 4
[9490472.257429] sd 19:0:0:0: Attached scsi generic sg7 type 0
[9490472.258050] sd 19:0:0:0: [sdh] 250272768 512-byte logical blocks: (128 GB/119 GiB)
[9490472.258595] sd 19:0:0:0: [sdh] Write Protect is off
[9490472.258599] sd 19:0:0:0: [sdh] Mode Sense: 45 00 00 00
[9490472.259045] sd 19:0:0:0: [sdh] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[9490472.262048] sdh: sdh1
[9490472.264036] sd 19:0:0:0: [sdh] Attached SCSI removable disk
From this you can deduce that the mount command should be:
mount -t vfat /dev/sdh1 /mnt/usb-stick
Once that is done, you can cd into /mnt/usb-stick and copy or remove files and so forth.
When finished, issue the command:
umount /mnt/usb-stick
before unplugging the USB stick.
--
Cameron Simpson <cs@zip.com.au>
Reply via web post | Reply to sender | Reply to group | Start a New Topic | Messages in this topic (3) |
No comments:
Post a Comment