LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 01-08-2003, 02:33 PM   #31
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30

Quote:
Originally posted by DavidPhillips
ok, It is possible that mkfs.vfat is missing.

You would be better off using a linux partition, here is how you can do it

run fdisk as before, you need to delete the partition first
Code:
fdisk /dev/hdb
d = delete partition

1 = delete hdb1


then you can repeat the creation proceedure, only instead of using type c use type 83 ( the default )
After that's done format the partition
Code:
mke2fs /dev/hdb1
then if you want ext3 use this
Code:
tune2fs -j /dev/hdb1
update your /etc/fstab entry

Code:
/dev/hdb1 /somefolder ext3 defaults 1 1
whats the diff in using ext3 and such and where am i supposed to execute the mke2fs /dev/hdb1

i tryed finding the command by hitting the letter that it starts with an tab but i couldnt find it.
 
Old 01-08-2003, 03:00 PM   #32
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
execute it in a terminal or virtual terminal

you will need to be root

the command should be in /sbin

/sbin/mke2fs

ext3 is ext2 with a journal. The journal allows quick recovery of the filesystem in case of power failure or lockup
 
Old 01-08-2003, 03:41 PM   #33
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
David you are probably getting upset with my by now but. for some reason it keeps giveing me this fs type ntfs not supported by kernel.

i deleted the fat32 partitions like u said.
i run fdisk i did everything the same except for i turned the c to 83 i belive it is.
i run mke2fs /dev/hdb1 i went threw to like 500 and something it finished i then run
turn2fs -j /dev/hdb1 said so and so will be checked in 35 mounts or 180 days whichever comes first.

only thing i didnt do was the update your etc/fstab entry i wasnt real sure on how to do that and more tha likely that is the problem.
 
Old 01-08-2003, 04:26 PM   #34
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
ok you may have ntfs in your /etc/fstab for /dev/hdb1

that combined with the mount command you are using would cause a problem


try this to bypass the fstab entry


mount /dev/hdb1 /somefolder

you can also use this, but we need to get it working without doing it

mount /dev/hdb1 -t ext3 /somefolder


if you are already doing this then the kernel needs to update it's filesystem entries. Which means you will need to reboot

what does fdisk -l say now

Last edited by DavidPhillips; 01-08-2003 at 04:27 PM.
 
Old 01-08-2003, 04:42 PM   #35
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DavidPhillips
ok you may have ntfs in your /etc/fstab for /dev/hdb1

that combined with the mount command you are using would cause a problem


try this to bypass the fstab entry


mount /dev/hdb1 /somefolder

you can also use this, but we need to get it working without doing it

mount /dev/hdb1 -t ext3 /somefolder


if you are already doing this then the kernel needs to update it's filesystem entries. Which means you will need to reboot

what does fdisk -l say now
well i tryed to mount the drive by mount /dev/hdb1 /home/ace

that didnt work

i tryed doing mount /dev/hdb1 -t ext3 /home/ace
and well now it says

pls contact your system administrator to resolve the following problem.
could not open or create the file "/home/ace.gconf-test-locking-file" this indicates that thre may be a problem with your configuration, as many programs will need to create files in your home directory. the error was "permission denied"

ps i tryed rebooting before this but nothing still the same thing.

i wont be home for a little while due to me having to go to work at the radio station but if u wouldnt mind telling me how to get rid of that error so i can get back into my linux box i would really appreciate it .

lol almost forgot

when i do a fdisk -l it returns saying

/dev/hda1=linux filesystem

/dev/hdb1=linux filesystem

Last edited by dkc_ace; 01-08-2003 at 05:03 PM.
 
Old 01-08-2003, 04:58 PM   #36
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by dkc_ace
well i tryed to mount the drive by mount /dev/hdb1 /home/ace

that didnt work

i tryed doing mount /dev/hdb1 -t ext3 /home/ace
and well now it says

pls contact your system administrator to resolve the following problem.
could not open or create the file "/home/ace.gconf-test-locking-file" this indicates that thre may be a problem with your configuration, as many programs will need to create files in your home directory. the error was "permission denied"

ps i tryed rebooting before this but nothing still the same thing.

i wont be home for a little while due to me having to go to work at the radio station but if u wouldnt mind telling me how to get rid of that error so i can get back into my linux box i would really appreciate it .
lol well a little update LINUX fixed it self this is one strange breed. lol mom got mad at me and fliped the switch off when she said i could go get back on it booted up just fine. *yells across room *thanks mom*
 
Old 01-08-2003, 05:41 PM   #37
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
cool

so it works now?

if you made the changes to fstab you should be able to mount it using this
Code:
mount /dev/hdb1
then run this
Code:
mount
if you see this, it's ok

Code:
/dev/hdb1 on /somewhere type ext3 (rw)

Last edited by DavidPhillips; 01-09-2003 at 04:50 PM.
 
Old 01-09-2003, 04:47 PM   #38
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DavidPhillips
cool

so it works now?

if you made the changes to fstab you should be able to mount it using this
Code:
mount /dev/hdb1
then run this
Code:
mount
if you see this, it's ok

Code:
/dev/hd1 on /somewhere type ext3 (rw)
thats the problem i didnt make the changes to fstab and im not real sure how to do it. onlything it tells me is permission denied and yes im su
 
Old 01-09-2003, 05:00 PM   #39
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
what editor are you using

I would use vi it's less likely to screw things up

here is a way to do it

first make a backup

Code:
cp /etc/fstab /etc/fstab.backup
now this should not be too bad, vi is not hard to learn the basics in.

Code:
vi /etc/fstab
you will see the data in the file, scroll down with the arrow keys and position the cursor on the line that has /dev/hdb1 and delete it using this

Code:
dd
If you have no line that has hdb in it then you can skip this all together

now you can add the new line if you want, but for now if you are not familiar with vi there is another way

now you need to write to the file and quit


Code:
:wq


ok now you can add the line you need to it using echo

Code:
echo "/dev/hdb1        /somefolder      ext3        defaults     0 0" >> /etc/fstab

try it

Code:
mount /dev/hdb1

ls /somefolder

Last edited by DavidPhillips; 01-09-2003 at 05:02 PM.
 
Old 01-09-2003, 05:35 PM   #40
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DavidPhillips
what editor are you using

I would use vi it's less likely to screw things up

here is a way to do it

first make a backup

Code:
cp /etc/fstab /etc/fstab.backup
now this should not be too bad, vi is not hard to learn the basics in.

Code:
vi /etc/fstab
you will see the data in the file, scroll down with the arrow keys and position the cursor on the line that has /dev/hdb1 and delete it using this

Code:
dd
If you have no line that has hdb in it then you can skip this all together

now you can add the new line if you want, but for now if you are not familiar with vi there is another way

now you need to write to the file and quit


Code:
:wq


ok now you can add the line you need to it using echo

Code:
echo "/dev/hdb1        /somefolder      ext3        defaults     0 0" >> /etc/fstab

try it

Code:
mount /dev/hdb1

ls /somefolder
ok i tryed that but when i mount it under my ace acount on my server i loose my desktop only thing i can do is umount it and the desktop comes back.
 
Old 01-09-2003, 06:20 PM   #41
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
sounds like you are mounting it over something, meaning if there are files in the mountpoint folder then they will become inaccessable

Last edited by DavidPhillips; 01-09-2003 at 07:11 PM.
 
Old 01-09-2003, 06:47 PM   #42
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DavidPhillips
what editor are you using

I would use vi it's less likely to screw things up

here is a way to do it

first make a backup

Code:
cp /etc/fstab /etc/fstab.backup
now this should not be too bad, vi is not hard to learn the basics in.

Code:
vi /etc/fstab
you will see the data in the file, scroll down with the arrow keys and position the cursor on the line that has /dev/hdb1 and delete it using this

Code:
dd
If you have no line that has hdb in it then you can skip this all together

now you can add the new line if you want, but for now if you are not familiar with vi there is another way

now you need to write to the file and quit


Code:
:wq


ok now you can add the line you need to it using echo

Code:
echo "/dev/hdb1        /somefolder      ext3        defaults     0 0" >> /etc/fstab

try it

Code:
mount /dev/hdb1

ls /somefolder
i dont get what u mean by mounting it over something?


ok let me make sure so as "su" i should type:

echo /dev/hdb1 /somefolder ext3 defaults 0 0 >> /etc/fstab
one time i put /somefolder the other time i put /home/ace


as u can see im not the best with commands

Last edited by dkc_ace; 01-09-2003 at 06:49 PM.
 
Old 01-09-2003, 07:09 PM   #43
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
yes, well that "somefolder" is where you want to mount it

you should create a folder you can decide any name you want to use, but the folder must exist, and it should not be a folder you are already using, unless you want it to be. In that case you will need to copy your files to it by mounting it somewhere else first

mounting it on /home/ace will make it your home folder, which is empty until you put something there

Last edited by DavidPhillips; 01-09-2003 at 07:10 PM.
 
Old 01-09-2003, 07:14 PM   #44
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
if you want it to be in your home folder, like only you can access it and it will contain data files, documents and such, I would use this

/home/ace/myfiles

something like that
 
Old 01-09-2003, 07:26 PM   #45
dkc_ace
Member
 
Registered: Dec 2002
Distribution: freeBSD 4.9/6.0
Posts: 194

Original Poster
Rep: Reputation: 30
Quote:
Originally posted by DavidPhillips
if you want it to be in your home folder, like only you can access it and it will contain data files, documents and such, I would use this

/home/ace/myfiles

something like that
well ummm what would be a good place to put it for a FTP server?

im guessing /var/ftp? or something like that.

or what about "/hdb1"

Last edited by dkc_ace; 01-09-2003 at 07:36 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
mount a partition KptnKrill Linux - Newbie 20 06-15-2008 11:34 AM
cant mount old partition hydro Linux - Newbie 8 08-30-2005 01:31 PM
How to resize a partition and create/mount a new partition? Maarten_Holland Linux - Newbie 1 04-20-2005 08:56 AM
can't mount partition greklas Linux - Newbie 3 09-04-2004 10:45 AM
Mount the partition Hammad Linux - General 0 03-19-2003 04:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 11:40 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