Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
Thanks XaiverP for taking time to reply me.
When I insert the module,I get a message to open it on a new window. If I click OK, I can see all the files and folders. I could copy, read, etc.
I believe it gets mounted because I see everything inside the module. Am I wrong?
However, I tried in vain to mount it.
ni@linux-j5q7:~> mount /dev/sdd1
mount: according to mtab, /dev/sdd1 is already mounted on /media/KINGSTON
mount failed
ni@linux-j5q7:~>
I will try jay73s suggestion later on.
I must go to the gym now.
Evidently, your stick is mounted by your system to /media/KINGSTON when you insert it. Try linking to the mount point as displayed by mtab like this:
ln -s /media/KINGSTON/Temp121 Temp121
This assumes that Temp121 exists on the Kingston stick. When the stick is not inserted, of course the link is broken.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
Making a file system on a USB module
I want to format a newly bought USB module and make 'ext2' file system.
The system recognized the USB module as 'sdd1'.
First I used 'fdisk' command to format it.
I think it worked fine.
Because there were no error message.
ni@linux-j5q7:~> su root
Password:
linux-j5q7:/home/ni # fdisk -l /media/sdd1
linux-j5q7:/home/ni # mkfs -t ext2 /dev/sdd1
mke2fs 1.40.8 (13-Mar-2008)
/dev/sdd1 is mounted; will not make a filesystem here!
linux-j5q7:/home/ni #
Why did it give me the above error message?
Please help me.
Distribution: open SUSE 11.0, Fedora 7 and Mandriva 2007
Posts: 1,662
Original Poster
Rep:
I unmounted it first.
linux-j5q7:/home/ni # umount /media/KINGSTON
linux-j5q7:/home/ni #
............................................................. Afterwards, I used the command to create an 'ext2' file system.
linux-j5q7:/home/ni # mkfs -t ext2 /dev/sdd1
mke2fs 1.40.8 (13-Mar-2008)
Warning: 256-byte inodes not usable on older systems
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
123392 inodes, 493025 blocks
24651 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=507510784
16 block groups
32768 blocks per group, 32768 fragments per group
7712 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912
This filesystem will be automatically checked every 36 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
linux-j5q7:/home/ni #
Have I successfully created an 'ext2' file system on the USB module?
Please tell me.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.