USA Linux Users Group Forum Index
Log in Register FAQ Memberlist Search USA Linux Users Group Forum Index Album

Recovering from a lost root password
Goto page Previous  1, 2, 3, 4
 
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » System Administration and Security
View previous topic :: View next topic  
Author Message
JP
Linux Guru


Joined: 07 Jul 2024
Posts: 6670
Location: Central Montana

PostPosted: Fri Jun 20, 2024 5:12 am    Post subject: Reply with quote

I'll practice on something else for a while. this has bummed me out. Thanks all for your advice and encouragement, I'll come back to this in a couple of weeks maybe and see if things change for me .... between this and the sidux mess, I'm just tired of it all, I think I'll just use Puppy and Knoppix for a while. Thanks again, JP



_________________
Dell Box - Arch Linux
Dell Lappy - DreamLinux 3.5 - Default OS
Mepis 8.0 - Backup
Back to top
View user's profile Send private message Visit poster's website
nukes
Linux Guru


Joined: 29 Aug 2024
Posts: 4558

PostPosted: Sat Jun 21, 2024 4:29 am    Post subject: Reply with quote

ummm... the syntax of mount is:
mount /dev/devicenode /mnt/mountpoint

ALSO didn't linux switch from hdx to sdx?
so wouldn't it be
mount /dev/sda1 /mnt/hda1
?

also, don't you have to bind /dev and /proc to the chroot before you mount it?



_________________
Gentoo x86-64 2.6.29.1
FreeBSD 7-CURRENT
Arch x86 2.6.30
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
jester
Sr. Member


Joined: 19 Apr 2024
Posts: 1166

PostPosted: Sat Jun 21, 2024 4:43 am    Post subject: Reply with quote

nukes wrote:
ummm... the syntax of mount is:
mount /dev/devicenode /mnt/mountpoint

ALSO didn't linux switch from hdx to sdx?
so wouldn't it be
mount /dev/sda1 /mnt/hda1
?

also, don't you have to bind /dev and /proc to the chroot before you mount it?

yep, and that's what I suggested in JP's other related thread

/dev/sdxy is for SCSI, SATA, and drives/devices coming of the usb bus - AFAIK, /dev/hdxy is still valid for an IDE drive


Back to top
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger
nukes
Linux Guru


Joined: 29 Aug 2024
Posts: 4558

PostPosted: Sat Jun 21, 2024 4:05 pm    Post subject: Reply with quote

depends if the kernel is using libata... they started doing that for ATA drives in 2.6.19 iirc. So depends on the kernel you're running and it's configuration. Look through dmesg and that will tell you.



_________________
Gentoo x86-64 2.6.29.1
FreeBSD 7-CURRENT
Arch x86 2.6.30
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
jbsnake
Moderator


Joined: 02 Dec 2024
Posts: 1726
Location: Georgia

PostPosted: Mon Jun 23, 2024 11:19 pm    Post subject: Reply with quote

well... if you type mount without any parameters... you get a list of devices/blocks that are mounted (or a read out of /etc/mtab)

if you give it just one parameter, it looks for the rest of the info in /etc/fstab, which is why, typically, you end up with the error "xyz is not found in /etc/fstab or in /etc/mtab"



_________________
laptop: Arch Linux - Kernel 2.6.24-ARCH
server: Arch Linux - Kernel 2.6.33-ARCH
Back to top
View user's profile Send private message
masinick
Linux Guru


Joined: 03 Apr 2024
Posts: 8615
Location: Concord, NH

PostPosted: Tue Jun 24, 2024 1:39 am    Post subject: Use mount with 2 args - device and FS Reply with quote

jbsnake wrote:
well... if you type mount without any parameters... you get a list of devices/blocks that are mounted (or a read out of /etc/mtab)

if you give it just one parameter, it looks for the rest of the info in /etc/fstab, which is why, typically, you end up with the error "xyz is not found in /etc/fstab or in /etc/mtab"


Correct! I rarely mount manually with just one parameter unless the entry is in my fstab with the "auto" parameter, in which case, I may use a quick mounting tool such as kuikdisk or something like that.

From the command line, I am more likely to use
Code:
sudo mount /dev/sda5 /media/disk1part5
or something similar.



_________________
Brian Masinick
Distros: SimplyMEPIS
sidux - no CAPS!, antiX, Debian
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    USA Linux Users Group Forum Index » System Administration and Security All times are GMT
Goto page Previous  1, 2, 3, 4
Page 4 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All content © 2024-2009 - Usa Linux Users Group
This forum is powered by phpBB. © 2024-2009 phpBB Group
Theme created by phpBBStyles.com and modified by Crouse