LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-20-2005, 09:12 AM   #1
slack31337
LQ Newbie
 
Registered: Jan 2005
Location: kitchener Ontario
Distribution: slack-current
Posts: 19

Rep: Reputation: 0
mounting partition in fc4


Hello,

I have just moved over from slackware to give fedora a try. In my slack setup I had samba running and a /share directory. Now after installing fedora i stayed away from the partition that all my data was on to save it and installed on /dev/hda1. Now my problem is that I have /dev/hda4 with all my data on it and i cannot find it under the /mnt ??? Im confused I want to get the the samba share setup again and be able to get to /dev/hda4 from my winblows box and my fedora box

thanks in advance ....

Fedora n00b

I am getting this when i try to mount

mount /dev/hda4
[mntent]: line 7 in /etc/fstab is bad; rest of file ignored
mount: mount point /share does not exist


here is my fstab

LABEL=/ / ext3 defaults 1 1
/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/share /share ext3 defaults 0 0
LABEL=Ã<99><99><88><89><98> ^B]î#^@^Y32 swap swap de

thanks again

Last edited by slack31337; 09-20-2005 at 09:22 AM.
 
Old 09-20-2005, 09:33 AM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Fix the error in your /etc/fstab entry for swap. It's got garbage characters from a known bug in the Fedora installer that crops up when you define your own partitions during the install process. Make it look something like this, replacing my "hda5" with the proper partition from your system.
Code:
/dev/hda5     swap     swap     defaults     0 0
After that, make sure swap is activated by executing
Code:
swapon -a
See if that helps. Post back here if you still have errors.

Jay
 
Old 09-20-2005, 09:48 AM   #3
slack31337
LQ Newbie
 
Registered: Jan 2005
Location: kitchener Ontario
Distribution: slack-current
Posts: 19

Original Poster
Rep: Reputation: 0
thanks for your help, i did that and now i get

[root@fedora /]# swapon -a
swapon: /dev/hda: Device or resource busy


then if i try to mount i get


[root@fedora /]# mount /dev/hda4 /share
mount: mount point /share does not exist
 
Old 09-20-2005, 09:57 AM   #4
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Execute the command
Code:
fdisk -l
and post the results here.
 
Old 09-20-2005, 10:35 AM   #5
slack31337
LQ Newbie
 
Registered: Jan 2005
Location: kitchener Ontario
Distribution: slack-current
Posts: 19

Original Poster
Rep: Reputation: 0
found it had to go to sbin ..... weird anyway


Disk /dev/hda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 3570 28675993+ 83 Linux
/dev/hda2 3571 3647 618502+ 82 Linux swap / Solaris
/dev/hda4 3648 19457 126993825 83 Linux

Last edited by slack31337; 09-20-2005 at 10:39 AM.
 
Old 09-20-2005, 10:40 AM   #6
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Quote:
Originally posted by slack31337
[root@fedora /]# fdisk
bash: fdisk: command not found

??????? im confused now
I'm confused, too. The fdisk command is found in /sbin, but its absence from root's path is troubling. Have you tried rebooting since changing fstab? It might be worth a shot.
 
Old 09-20-2005, 10:45 AM   #7
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Okay, you've got 3 partitions on hda. Now post the current contents of /etc/fstab. Also execute
Code:
mount
and post the results here.
 
Old 09-20-2005, 10:49 AM   #8
slack31337
LQ Newbie
 
Registered: Jan 2005
Location: kitchener Ontario
Distribution: slack-current
Posts: 19

Original Poster
Rep: Reputation: 0
fstab

/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc / proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/share /share ext3 defaults 0 0 ------> i put this in there
/dev/hda swap swap defaults 0 0


mount

/dev/hda1 on / type ext3 (rw)
/dev/hda4 on /share type ext3 (0)
/dev/proc on /proc type proc (rw)
/dev/sys on /sys type sysfs (rw)
/dev/devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/shm on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
automount(pid1771) on /misc type autofs (rw,fd=4,pgrp=1771,minproto=2,maxproto=4)
automount(pid1820) on /net type autofs (rw,fd=4,pgrp=1820,minproto=2,maxproto=4)
 
Old 09-20-2005, 11:21 AM   #9
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
In your fstab, change "hda" to "hda2" for your swap entry.
Code:
/dev/hda2 swap swap defaults 0 0
Then execute "swapon -a" and verify no errors reported.

Now, to try and get your /share partition working...
1. Remove the fstab entry you added for /dev/share -- there's no such device anyway.
2. Verify that the directory "/share" exists. If it doesn't, create it.
3. Add the following to fstab
Code:
/dev/hda4     /share     ext3     defaults     0 0
4. Execute "mount -a" and verify no errors reported.

What's the result?
 
Old 09-20-2005, 12:00 PM   #10
slack31337
LQ Newbie
 
Registered: Jan 2005
Location: kitchener Ontario
Distribution: slack-current
Posts: 19

Original Poster
Rep: Reputation: 0
i can now see the directory but there is no data in it there should be allot of things there that i did not format during install

[root@fedora /]# ls
bin dev home lost+found misc net proc sbin share sys usr
boot etc lib media mnt opt root selinux srv tmp var
[root@fedora /]# cd share
[root@fedora share]# ls
[root@fedora share]# ls -l
total 0
[root@fedora share]# ls -al
total 16
drwxr-xr-x 2 root root 4096 Sep 20 13:01 .
drwxr-xr-x 25 root root 4096 Sep 20 13:01

any ideas on that ?
 
Old 09-20-2005, 12:12 PM   #11
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Don't despair just yet. The /share directory is nothing more than a mount point for /dev/hda4; it'll remain empty until you get /dev/hda4 successfully mounted, at which time it'll appear to be populated with the contents of /dev/hda4.

Did the "swapon -a" and "mount -a" commands complete without error?

Post the contents of /etc/fstab and the output of the "mount" command and let's see what you've got. Also post the output of "df -k".
 
Old 09-20-2005, 12:16 PM   #12
slack31337
LQ Newbie
 
Registered: Jan 2005
Location: kitchener Ontario
Distribution: slack-current
Posts: 19

Original Poster
Rep: Reputation: 0
sorry got a little ahead with it

yes the two commands did execute w/o error

fstab

/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/hda4 /share ext3 defaults 0 0

# mount
/dev/hda1 on / type ext3 (rw)
/dev/hda4 on /share type ext3 (0)
/dev/proc on /proc type proc (rw)
/dev/sys on /sys type sysfs (rw)
/dev/devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/shm on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
automount(pid1771) on /misc type autofs (rw,fd=4,pgrp=1771,minproto=2,maxproto=4)
automount(pid1820) on /net type autofs (rw,fd=4,pgrp=1820,minproto=2,maxproto=4)



df -k

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 27777960 7863324 18480840 30% /
/dev/hda4 27777960 7863324 18480840 30% /share
/dev/shm 249724 0 249724 0% /dev/shm

thanks again youhave been a great help

Last edited by slack31337; 09-20-2005 at 12:17 PM.
 
Old 09-20-2005, 12:39 PM   #13
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Quote:
Originally posted by slack31337
sorry got a little ahead with it

yes the two commands did execute w/o error

fstab

/dev/devpts /dev/pts devpts gid=5,mode=620 0 0
/dev/shm /dev/shm tmpfs defaults 0 0
/dev/proc /proc proc defaults 0 0
/dev/sys /sys sysfs defaults 0 0
/dev/hda2 swap swap defaults 0 0
/dev/hda4 /share ext3 defaults 0 0

# mount
/dev/hda1 on / type ext3 (rw)
/dev/hda4 on /share type ext3 (0)
/dev/proc on /proc type proc (rw)
/dev/sys on /sys type sysfs (rw)
/dev/devpts on /dev/pts type devpts (rw,gid=5,mode=620)
/dev/shm on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
automount(pid1771) on /misc type autofs (rw,fd=4,pgrp=1771,minproto=2,maxproto=4)
automount(pid1820) on /net type autofs (rw,fd=4,pgrp=1820,minproto=2,maxproto=4)



df -k

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 27777960 7863324 18480840 30% /
/dev/hda4 27777960 7863324 18480840 30% /share
/dev/shm 249724 0 249724 0% /dev/shm

thanks again youhave been a great help
I don't think hda4 is mounting. Note the fishy size of blocks used and available in the df output: "/" and "/share" are exactly the same. Also, the "mount" command output shows a "(0)" instead of "(rw)" at the end of the hda4 line.

Execute the command
Code:
/sbin/parted /dev/hda print
and post the results here. I'm beginning to think the /dev/hda4 partition isn't of type ext3.

What happens when you go through the following sequence of commands?

1. umount /share
2. mount -t ext3 /dev/hda4 /share
 
Old 09-20-2005, 12:45 PM   #14
slack31337
LQ Newbie
 
Registered: Jan 2005
Location: kitchener Ontario
Distribution: slack-current
Posts: 19

Original Poster
Rep: Reputation: 0
[root@fedora etc]# /sbin/parted /dev/hda print
Disk geometry for /dev/hda: 0.000-152627.835 megabytes
Disk label type: msdos
Minor Start End Type Filesystem Flags
1 0.031 28003.930 primary ext3 boot
2 28003.931 28607.937 primary linux-swap
4 28607.937 152625.344 primary ext3

[root@fedora etc]# umount /share
umount: /dev/hda4: not mounted
umount: /dev/hda4: not mounted

[root@fedora etc]# mount -t ext3 /dev/hda4 /share
[root@fedora etc]# cd /share
[root@fedora share]# ls


YAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA i can see my files YOU RULE how can i give you brownie points or something

Last edited by slack31337; 09-20-2005 at 12:51 PM.
 
Old 09-20-2005, 01:01 PM   #15
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Well, now the last remaining issue is to get the correct info in /etc/fstab such that hda4 mounts properly at boot time. Try changing it to this.
Code:
/dev/hda4     /share     ext3     defaults  1 2
Then execute
Code:
umount /share
mount -a
Then see if you can see your files. If that doesn't work, try rebooting.

No brownie points needed, but thanks. I'm at home today waiting for my wife and kids to return home following their evacuation in the wake of Hurricane Katrina. I've gotta go pick them up at the airport in a few hours. I was without power for 15 days, and it's nice to be able to spend some time doing this sort of thing again.
 
  


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
NTFS mounting only for root on FC4 (and more) Hirszu Fedora 3 11-17-2005 07:41 AM
Mounting 200GB IDE on FC4 machine (Help Please) A6Quattro Fedora 6 10-29-2005 03:50 AM
FC4 partition problem? voly Fedora - Installation 4 07-14-2005 11:00 AM
Partition mounting/KDE errors after creating Fat32 Partition BertBert Linux - General 1 07-07-2004 10:59 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM

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

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