LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-06-2007, 09:52 AM   #16
K05T9
Member
 
Registered: Nov 2006
Location: Latvia
Distribution: Slackware 11.0
Posts: 49

Original Poster
Rep: Reputation: 15

1)i can not use any ckfs.vfat, mkfs.vfat commands
Code:
root@localhost:~# sudo /sbin/fsck.vfat /dev/sda1
sudo: /sbin/fsck.vfat: command not found
2)i can not see any files in usbstick, just exploring /mnt/usbstick folder

There u can see what 'mount' returns after mounting usbstick:
Code:
/dev/sda1 on /mnt/usbstick type ext3 (rw)
After unmounting:
Code:
root@localhost:~# sudo /sbin/fsck.ext3 /dev/sda1
e2fsck 1.38 (30-Jun-2005)
/dev/sda1: clean, 10/32256 files, 8192/128876 blocks
I have formated drive several times and i have no important files in it.
 
Old 05-06-2007, 10:37 AM   #17
K05T9
Member
 
Registered: Nov 2006
Location: Latvia
Distribution: Slackware 11.0
Posts: 49

Original Poster
Rep: Reputation: 15
Now, i just need to know, how can i format this usbstick like a brand new drive on vfat fs. I don't need to save any files.
 
Old 05-06-2007, 09:13 PM   #18
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You may have a mkfs.vfat program that you can use to create a FAT32 filesystem on the pendrive. There is also a mkfs program that is a wrapper that launches the correct program based on the filesystem entry. I believe that the mkfs.vfat program will produce either a FAT32 or FAT16 filesystem depending of the size of the pendrive. You can check which one was used with "file -s /dev/sda1" afterwards.

# mkfs.vfat /dev/sda1 -n volume_name
or
# mkfs -t vfat /dev/sda1


I am entering this from memory, so please read the manpages for mkfs and mkfs.vfat for details, and in case my memory isn't correct. Also, if you use sudo, you might need to precede the command with it's directory location; probably either /sbin/, or /usr/sbin/.

There are also the programs from the mtools package that can do things like relabel msdos filesystems.

Last edited by jschiwal; 05-06-2007 at 09:15 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting FAT fs on usb stick K05T9 Slackware 8 05-06-2007 06:26 AM
Mounting a usb stick oookiezooo Linux - Newbie 15 04-13-2005 12:09 PM
mounting a USB stick.. kurrupt Linux - Hardware 2 01-01-2005 01:13 AM
Mount my USB stick (FAT) hyllplan Linux - Hardware 3 11-05-2004 03:09 AM
mounting usb a stick sethgeekx86 Slackware 1 05-19-2004 06:19 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration