FedoraThis forum is for the discussion of the Fedora Project.
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.
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
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.
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.
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.
/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)
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.
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
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".
# 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.
# 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
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.