PDA

View Full Version : Linux Newbie - Mounting problems TODO: have to rethink extra options.



Mysticle31
25th November 2007, 08:33 PM
Hello guys,

My name is Steve. I've been trying different linux distros in order to find one to use and learn on. I've been a windows guy for some time, so I'm very wet behind the ears.

Linux definitely seems to be more sensitive to hard drives than windows does.

Problem first, curiosity question later..

I have multiple hard drives. I'm just focusing one one now. It won't mount. I get the message 'TODO: have to rethink extra options". I have no idea what that means, it actually sounds like a reminder to a developer :). I have searched about this problem and tried this. http://ubuntuforums.org/showthread.php?t=283131 but I can't make it work.

This is going to be long, but I figured I would paste the results of my console adventure.
[root@localhost ~]# cd
[root@localhost ~]# wget http://media.ubuntu-nl.org/scripts/diskmounter
bash: wget: command not found
[root@localhost ~]# sudo bash diskmounter
bash: diskmounter: No such file or directory
[root@localhost ~]# desktop
bash: desktop: command not found
[root@localhost ~]# diskmounter
bash: diskmounter: command not found
[root@localhost ~]# dir
anaconda-ks.cfg Documents Music Public Videos
Desktop Download Pictures Templates
[root@localhost ~]# cd\desktop
bash: cddesktop: command not found
[root@localhost ~]# cd desktop
bash: cd: desktop: No such file or directory
[root@localhost ~]# cd Desktop
[root@localhost Desktop]# diskmounter
bash: diskmounter: command not found (AFTER FIGUREING OUT HOW TO CHANGE DIRECTORYS I DOWNLOADED THE FILE AND SAVED IT ON THE DESKTOP!)
[root@localhost Desktop]# sudo bash diskmounter
By default the disks will be writable only by root and
Do you want to make the disk writable by all users instead? (y/n)
y
diskmounter: line 64: fdisk: command not found
diskmounter: line 65: fdisk: command not found
diskmounter: line 66: fdisk: command not found
No usable windows/mac partitions found
[root@localhost Desktop]# sudo fdisk -1
fdisk: invalid option -- 1

Usage: fdisk [-b SSZ] [-u] DISK Change partition table
fdisk -l [-b SSZ] [-u] DISK List partition table(s)
fdisk -s PARTITION Give partition size(s) in blocks
fdisk -v Give fdisk version
Here DISK is something like /dev/hdb or /dev/sda
and PARTITION is something like /dev/hda7
-u: give Start and End in sector (instead of cylinder) units
-b 2048: (for certain MO disks) use 2048-byte sectors
[root@localhost Desktop]# sudo fdisk -l

Disk /dev/sda: 40.0 GB, 40020664320 bytes
255 heads, 63 sectors/track, 4865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x0002f78b

Device Boot Start End Blocks Id System
/dev/sda1 * 1 98 787153+ 82 Linux swap / Solaris

Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90e046d5

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 30401 244196001 7 HPFS/NTFS

Disk /dev/sdc: 37.0 GB, 37019566080 bytes
255 heads, 63 sectors/track, 4500 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8907a43d

Device Boot Start End Blocks Id System
/dev/sdc1 * 1 25 200781 83 Linux
/dev/sdc2 26 9001 72099720 8e Linux LVM

Disk /dev/sdd: 37.0 GB, 37019566080 bytes
255 heads, 63 sectors/track, 4500 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/sdd doesn't contain a valid partition table

Disk /dev/dm-0: 74.0 GB, 74038640640 bytes
255 heads, 63 sectors/track, 9001 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8907a43d

Device Boot Start End Blocks Id System
/dev/dm-0p1 * 1 25 200781 83 Linux
/dev/dm-0p2 26 9001 72099720 8e Linux LVM

Disk /dev/dm-1: 205 MB, 205599744 bytes
255 heads, 63 sectors/track, 24 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 73.8 GB, 73830113280 bytes
255 heads, 63 sectors/track, 8976 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 71.7 GB, 71705821184 bytes
255 heads, 63 sectors/track, 8717 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-3 doesn't contain a valid partition table

Disk /dev/dm-4: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-4 doesn't contain a valid partition table
[root@localhost Desktop]# sudo mount -a
[root@localhost Desktop]# diskmounter
bash: diskmounter: command not found
[root@localhost Desktop]# diskmounter
bash: diskmounter: command not found
[root@localhost Desktop]# sudo diskmounter
sudo: diskmounter: command not found
[root@localhost Desktop]# sudo bash diskmounter
By default the disks will be writable only by root and
Do you want to make the disk writable by all users instead? (y/n)
y
diskmounter: line 64: fdisk: command not found
diskmounter: line 65: fdisk: command not found
diskmounter: line 66: fdisk: command not found
No usable windows/mac partitions found
[root@localhost Desktop]# fdisk -l | grep -i 'Apple_HFS' | awk -F
awk: option requires an argument -- F
Usage: awk [POSIX or GNU style options] -f progfile [--] file ...
Usage: awk [POSIX or GNU style options] [--] 'program' file ...
POSIX options: GNU long options:
-f progfile --file=progfile
-F fs --field-separator=fs
-v var=val --assign=var=val
-m[fr] val
-W compat --compat
-W copyleft --copyleft
-W copyright --copyright
-W dump-variables[=file] --dump-variables[=file]
-W exec=file --exec=file
-W gen-po --gen-po
-W help --help
-W lint[=fatal] --lint[=fatal]
-W lint-old --lint-old
-W non-decimal-data --non-decimal-data
-W profile[=file] --profile[=file]
-W posix --posix
-W re-interval --re-interval
-W source=program-text --source=program-text
-W traditional --traditional
-W usage --usage
-W version --version

To report bugs, see node `Bugs' in `gawk.info', which is
section `Reporting Problems and Bugs' in the printed version.

gawk is a pattern scanning and processing language.
By default it reads standard input and writes standard output.

Examples:
gawk '{ sum += $1 }; END { print sum }' file
gawk -F: '{ print $1 }' /etc/passwd
Disk /dev/sdd doesn't contain a valid partition table
Disk /dev/dm-1 doesn't contain a valid partition table
Disk /dev/dm-2 doesn't contain a valid partition table
Disk /dev/dm-3 doesn't contain a valid partition table
Disk /dev/dm-4 doesn't contain a valid partition table
[root@localhost Desktop]# su -
[root@localhost ~]# fstab -1
-bash: fstab: command not found
[root@localhost ~]# cd Desktop
[root@localhost Desktop]# fstab -1
-bash: fstab: command not found
[root@localhost Desktop]# bootloader -1
-bash: bootloader: command not found
[root@localhost Desktop]# pmount
-bash: pmount: command not found
[root@localhost Desktop]#

I have NO idea where dm-3, dm-2, dm-1 came from

I have five drives, but one is unplugged and had to be in order for Fedora to install.

2 37 gig WD Raptors in raid 0. (SDC and SDD),
1 250gig that won't mount and I'm working on. (SDB) All my data files are on there.
1 40gig that I use for my DVR drive (SDA) I also have a 20 gig that I JBOD with this drive to give 60 gigs, however I had to unplug it in order to install fedora.

Any insight whatsoever? I am so far beyond lost.


Now, on a curiosity note.

When I had all drives connected, including the 20 gig that I disconnected to install fedora, the fedora install program would not advance beyond the select keyboard page. It froze when I clicked next. Though trial and error I found that if I unplugged the 20 gig it wold work. I've tried to install fedora many times and succeeded only twice. The other time, when I connected my 20 gig again, fedora would not boot and freeze after mounting a virtual drive, I forget what it was called, I think it was VMF.

Mysticle31
26th November 2007, 03:41 AM
No one has any ideas today?

leadgolem
26th November 2007, 03:52 AM
By default, Fedora does not give a regular user /sbin PATH. Replace "fdisk" with "/sbin/fdisk" or use a "su -" to get root permissions. The dash after the su will get you root's PATH as well as root permissions. It will also place your terminal in /root.

You also have to setup sudo in Fedora if you want to use it.

EDIT: One more thing. If you want to got to the user's desktop that your terminal is logged into use this.
cd $HOME/DesktopIf you want to see what is in the current folder your terminal is in then use the list command "ls". If you use the -a option then you will see hidden files as well. "ls -a"

I should note the if you use a regular "su" to get root priveledges that $HOME will change to /root, however $USER will not change to root.
su
echo $USER
leadgolem
echo $HOME
/root
su -
echo $USER
rootIf you haven't already, take a look at this (http://www.techspot.com/vb/topic483.html).

Dies
26th November 2007, 05:18 AM
No one has any ideas today?


If you're just starting out, I would just suggest you use F7. I'm just assuming you're using 8 from the output you got. I only say that because 8 was buggy for me, besides 7 is stable and supported for another 6 months or so, by then you'll know you're way around pretty well and you'll be ready for 9. :D

Also have a look here, it's a good site

http://www.tuxfiles.org/

this one too

http://lowfatlinux.com/

Seapaddler
5th December 2007, 10:00 PM
This is what I did to fix this problem.

1. Right click all your drives choose Properties->Mounting and uncheck "Mount as User".

2. Open /etc/PolicyKit/PolicyKit.conf

My original looked like this:



<?xml version="1.0" encoding="UTF-8"?> <!-- -*- XML -*- -->

<!DOCTYPE pkconfig PUBLIC "-//freedesktop//DTD PolicyKit Configuration 1.0//EN"
"http://hal.freedesktop.org/releases/PolicyKit/1.0/config.dtd">

<!-- See the manual page PolicyKit.conf(5) for file format -->

<config version="0.1">

</config>


I added the following between the config tags. "username" of course is your own username.



<match action="org.freedesktop.hal.storage.mount-fixed">

<match user="root">
<return result="yes"/>
</match>

<match user="username">
<return result="yes"/>
</match>

</match>

tomislav.turk
10th December 2007, 01:57 PM
thx,work on 2.6.23.8-63.fc8 , KDE 3.5.8-7.fc8 , konqueror 3.5.8-5.fc8