LinuxQuestions.org
Review your favorite Linux distribution.
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 10-08-2013, 09:05 AM   #1
SignetGreen
LQ Newbie
 
Registered: Oct 2013
Posts: 4

Rep: Reputation: Disabled
Can't mount drive after booting other OS from USB


I made a fresh installation of Slackware 14 on sda2, ran through the beginner's slackware page, everything was OK. I connected an old hard drive to USB and booted it to get some files. When I rebooted into Slackware it gets past lilo then hangs and says this, regardless of what I choose at lilo. It panicked at some point, I think after I typed exit.

Code:
mount: mounting /dev/sda2 on /mnt failed: Invalid argument
ERROR: No /sbin/init found on rootdev (or not mounted). Trouble ahead.
You can try to fix it. Type 'exit' when things are done.

/bin/sh: can't access tty; job control turned off
I couldn't find a quick fix so I reinstalled 14 and repeated the process with the same result.
 
Old 10-08-2013, 09:15 AM   #2
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
it seems that you misplaced the hard drive, so it couldn't find the root partition and also the kernel images
 
Old 10-08-2013, 09:27 AM   #3
SignetGreen
LQ Newbie
 
Registered: Oct 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
Thanks. So is there a way to prevent it from forgetting where the hard drive is?
 
Old 10-08-2013, 09:43 AM   #4
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
You can use the installer, either from DVD or USB-based Flash Drive to boot and mount the correct partition and change it on the /etc/fstab and try to reboot
 
Old 10-08-2013, 11:45 AM   #5
SignetGreen
LQ Newbie
 
Registered: Oct 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
That won't be permanent though will it, if I boot from USB again I'll have to fix it again won't I? Is this a feature, do slackers not boot from USB?
 
Old 10-08-2013, 01:35 PM   #6
colorpurple21859
LQ Veteran
 
Registered: Jan 2008
Location: florida panhandle
Distribution: Slackware Debian, Fedora, others
Posts: 7,345

Rep: Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588Reputation: 1588
Connecting hard drive to usb changed naming of hard drives, using uuids will prevent this. http://unix.stackexchange.com/questi...-names-in-lilo
 
1 members found this post helpful.
Old 10-08-2013, 01:58 PM   #7
SignetGreen
LQ Newbie
 
Registered: Oct 2013
Posts: 4

Original Poster
Rep: Reputation: Disabled
That got it, thanks colorpurple.
 
Old 10-08-2013, 03:55 PM   #8
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,500

Rep: Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453Reputation: 8453
This won't happen if you use a generic kernel. In -current it is fixed so that the drives will not be reordered with either generic or huge kernels.
 
1 members found this post helpful.
  


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
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 07:16 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 1 12-24-2005 04:25 AM
when i mount my USB Flash Drive A Messenge has come that mount: can't find /dev/sda/h feda82 Red Hat 2 12-24-2005 02:15 AM
mount usb module then mount usb hard drive guanyu Linux - Hardware 1 10-08-2003 11:50 AM

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

All times are GMT -5. The time now is 10:15 PM.

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