LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-24-2007, 10:56 AM   #1
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Rep: Reputation: 16
mount: Mounting /dev/sda2 on /mnt failed: Invalid argument


I installed Slack 11 on an external USB hd using huge26.s. I used the reiserfs and partitioned the drive with a swap part on sda1 and root on sda2. I have been piecing together info from several threads to get this thing to boot.
Mostly this one:
http://www.linuxquestions.org/questi...d.php?t=365161

I have installed the kernel modules and kernel 2.6.13.17.

I created an initrd.gz
Code:
mkinitrd -c -k 2.6.13 -m reiserfs:ehci-hcd:uhci-hcd:ohci-hcd:usb-storage
and edited it by extracting it and mounting as a loop device. I edited and updated my lilo.conf with initrd = /boot/initrd.gz. reran lilo
which seemed ok expcept for the following warning:

Code:
/proc/partitions does not exist
When I boot the device it gets past the point of loading the usb modules and recognizes my usb h/d which contains an older 4gb hd.

The system then fails to complete the boot process with the following error:

Code:
mount: Mounting /dev/sda2 on /mnt failed: No such file or directory
ERROR: mount returned error code 1. Trouble ahead
mount: Mounting /dev/sda2 on /mnt failed: Invalid argument
mount: Mounting /dev/sda2 on /mnt failed: Invalid argument
I then get dropped to a sort of limited shell which I recognized as
having the same structure as the initrd file when i mounted it.

Just for kicks I tried to mount /dev/sda2 on /mnt manually and got this:

Code:
mount: /proc/filesystems: No such file or directory # not sure if this useful info or not
I'm not sure how to continue and any suggestions would be greatly appreciated.
 
Old 05-24-2007, 12:09 PM   #2
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
Ok this may be due to a bad drive as I booted from the SLAX cd
and ran fsck.reiserfs which reported bad blocks. I am going to try
some stuff and will post my success/failure.
 
Old 05-24-2007, 12:47 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Mint
Posts: 17,809

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
Quote:
Just for kicks I tried to mount /dev/sda2 on /mnt manually and got this:
Not sure is you meant this literally. Normally, you would mount to a mount point INSIDE of /mnt.
What was the full mount command and how is /dev/sda2 formatted?
 
Old 05-24-2007, 12:54 PM   #4
Vincent_Vega
Member
 
Registered: Nov 2003
Location: South Jersey
Distribution: Slackware, Raspbian, Manjaro
Posts: 826

Rep: Reputation: 31
Quote:
Originally Posted by pixellany
Normally, you would mount to a mount point INSIDE of /mnt.
True but a lot of times when doing things in such situations where only a single drive will be mounted temporarily - as in this case - it is perfectly acceptable and understandable to mount it at /mnt. I'm sure this person realizes they have lost all of the subdirectories for the time being.

Isn't the error most likely due to the fact that the filesystem (which contains proc and everything else) has yet to be mounted...since it failed in doing so? In which case you couldn't even expect it to mount anything or do much at all?

Last edited by Vincent_Vega; 05-24-2007 at 12:58 PM.
 
Old 05-24-2007, 01:09 PM   #5
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
Pixellany,

I see your point and the only reason I mounted to /mnt was because
thats what the linuxrc script was doing so I thought I would try the command manually.

Anyhoo I ran powermax on the quantum drive in question and it is indeed failing.

I am gonna start the whole process over with a TESTED 20bg IBM drive. Thanx for your help.
 
Old 05-24-2007, 01:30 PM   #6
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
Well I completed the above process on the new drive and I get the same error. I guess the failing drive was just a coincidence.

Btw pixellany the drives sda2 root part is reiserfs.

I noticed some odd behaviour when booting from the Slack 11 dvd and I'm not sure if its related to my problem.

When I boot from the dvd and then mount my root part at /dev/sda2
I get:

Code:
mkdir /mount
mount /dev/sda2 /mount
Mount: special device /dev/sda does not exist
But if i then do :

Code:
fdisk -l /dev/sda  
#then
mount /dev/sda2 /mount
The partition then mounts fine. I'm thinking maybe the two problems are related?
 
Old 05-24-2007, 02:34 PM   #7
dohpaz
Member
 
Registered: Feb 2006
Location: Edmonton
Distribution: Slackware 12.2, Ubuntu
Posts: 117

Original Poster
Rep: Reputation: 16
Well i got this working but not with reiserfs i reinstalled this time i chose to format ext2 and then i changed my mkinitrd command accordingly. Now it boots fine!

Wheeeeeeeeeeeeeeeeeeeeeeee

So for whatever reason reiserfs would not work for me. I only used it 'cause the guide I was following used it. I would like to try ext3 next. I chose ext2 cause I read somewhere it doesn't require initrd.gz.
 
Old 05-25-2007, 02:03 AM   #8
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
You need to mount your root partition on /, not on /mnt. Check your fstab, or post it here.
 
  


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
MINIX mount: Can't mount /dev/fd0 on floppy: Invalid argument jcaser1948 Other *NIX 2 10-04-2006 11:38 AM
HDIO_GET_MULTCOUNT failed: Invalid argument yashwantpinge Linux - Hardware 1 06-02-2006 09:36 AM
cryptsetup - command failed: invalid argument Captain Harlock Debian 2 05-09-2006 12:18 AM
swapon : /dev/hdc6 : invalid argument trutnev Red Hat 3 06-08-2004 09:57 PM
Mount Failed: Invalid Argument BoboBrazil Linux - Software 4 07-13-2003 12:57 PM

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

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