Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
well.. I'm not new to linux, but I'm having this weird problem which belongs definitely here :
just bought new sata drive and partitioned it with cfdisk.
when I try to mount it, it gives me weird message :
Code:
thisismylongestuser_well_today@Peanut:~$ su -
Password:
Cheer Up! Things are getting worse at a slower rate.
root@Peanut:~# mount -t auto /dev/sdb1 /root/test1/
mount: No such file or directory
root@Peanut:~# ls /root/ | grep -i "test"
test1/
test2/
root@Peanut:~# ls /dev/sdb*
/dev/sdb /dev/sdb1 /dev/sdb2 /dev/sdb3 /dev/sdb5
root@Peanut:~# dmesg | grep -i disk
VFS: Disk quotas dquot_6.5.1
sd 2:0:0:0: [sda] Attached SCSI disk
sd 3:0:0:0: [sdb] Attached SCSI disk
The problem is you're missing MOUNT it self, not the device or directory test1/2. Try to locate it:
whereis mount
if that doesn't find it, try to updatedb and then:
locate mount
if it doesn't find it, you've prolly deleted it and you'll need to reinstall it.
mount is in my path. and the directories exists.
any other tips for this problem? perhaps I'm missing something??
Code:
root@Peanut:~# which mount
/sbin/mount
root@Peanut:~# echo $PATH
/usr/local/sbin:/usr/local/bin:/sbin:/usr/sbin:/bin:/usr/bin
root@Peanut:~# mount
/dev/root on / type ext3 (rw,errors=continue,data=ordered)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda5 on /home type ext3 (rw)
/dev/sda6 on /var type ext3 (rw)
/dev/sda7 on /usr/local type ext3 (rw)
/dev/sda1 on /win type fuseblk (rw,allow_other,blksize=4096)
tmpfs on /dev/shm type tmpfs (rw)
root@Peanut:~# mount -t auto /dev/sdb1 /root/test1/
mount: No such file or directory
root@Peanut:~# somerandomcommand_to_show_different_syntax
bash: somerandomcommand_to_show_different_syntax: command not found
root@Peanut:~# somerandomcommand_to_show_different_syntax dsad
bash: somerandomcommand_to_show_different_syntax: command not found
root@Peanut:~# mount -t auto /dev/sdb1 /mnt/
README cdrom/ floppy/ memory/ zip/
cdrecorder/ dvd/ hd/ tmp/
root@Peanut:~# mount -t auto /dev/sdb1 /mnt/memory/
mount: No such file or directory
root@Peanut:~# mount
/dev/root on / type ext3 (rw,errors=continue,data=ordered)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda5 on /home type ext3 (rw)
/dev/sda6 on /var type ext3 (rw)
/dev/sda7 on /usr/local type ext3 (rw)
/dev/sda1 on /win type fuseblk (rw,allow_other,blksize=4096)
tmpfs on /dev/shm type tmpfs (rw)
and --> full path
root@Peanut:~# /sbin/mount -t auto /dev/sdb1 /mnt/memory/
mount: No such file or directory
Some things to try: triple check the output of "type mount", ensure there's not some silly alias or shell function screwing it. Try to escape the commands: "\mount -t whatever /dev/foo /mnt/bar". If all else fails, reinstall coreutils. There are some files in that output above that can't be found for some odd reason, specially /etc/filesystems should usually be there, however I don't know if that can cause any trouble or not.
root@Peanut:~# mkdir /mnt/newhd
root@Peanut:~# mount -t auto /dev/sdb1 /mnt/newhd
mount: No such file or directory
root@Peanut:~# which mount
/sbin/mount
root@Peanut:~# `which mount`
/dev/root on / type ext3 (rw,errors=continue,data=ordered)
/proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
usbfs on /proc/bus/usb type usbfs (rw)
/dev/sda5 on /home type ext3 (rw)
/dev/sda6 on /var type ext3 (rw)
/dev/sda7 on /usr/local type ext3 (rw)
/dev/sda1 on /win type fuseblk (rw,allow_other,blksize=4096)
tmpfs on /dev/shm type tmpfs (rw)
root@Peanut:~# `which mount` -t auto /dev/sdb1 /mnt/newhd
mount: No such file or directory
root@Peanut:~# stat /mnt/newhd/
File: `/mnt/newhd/'
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: 802h/2050d Inode: 96158 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2009-10-06 08:26:04.000000000 +0200
Modify: 2009-10-06 08:26:04.000000000 +0200
Change: 2009-10-06 08:26:04.000000000 +0200
root@Peanut:~# stat /dev/sdb1
File: `/dev/sdb1'
Size: 0 Blocks: 0 IO Block: 4096 block special file
Device: dh/13d Inode: 9036 Links: 1 Device type: 8,11
Access: (0660/brw-rw----) Uid: ( 0/ root) Gid: ( 6/ disk)
Access: 2009-10-06 08:26:39.764203797 +0200
Modify: 2009-10-05 18:59:09.604813777 +0200
Change: 2009-10-05 18:59:09.604813777 +0200
root@Peanut:~# mount -t auto /dev/sda2 /mnt/newhd/ # my old hd which is currently used as /
root@Peanut:~# ls /mnt/newhd/
bin dev home lib media opt root srv tmp var
boot etc idaadv lost+found mnt proc sbin sys usr win
it's definitely related to the new hd, perhaps I've done something wrong?
That's the process :
inserted it to computer, it had been found by kernel as sdb.
cfdisk /dev/sdb and created some partitions.
then I tried to mount it, is that wrong? should have I done something else before that (i don't get new HD everyday so it's actually my first time adding HD in already running Linux system)
Thanks
When you create a partition you only change the partition table in the first 512 byte of the hard disk (also called MBR). The partition has not been formatted and has no filing system inside. In other word it is still in a raw state exactly like it was from the factory. How can an OS mount it? Should it assume it is in Fat32, NTFS or Ext2/3 format?
Until you format a partition, by such operation an filing indexing system is inserted, then the partition is readable, writeable and mountable.
Format the sdb1 as follow (say using Ext3 filing system)
Does the hostname Peanut mean this is peanut linux? Mounting the partitions of a drive under /root seems very odd. Only the root can access them.
The trace you posted indicated that you don't have a number of mount helper programs for different filesystems. These are the /sbin/mount.<fstype> programs. Perhaps this is the file that the mount command is complaining about.
You need to create a filesystem on the partitions if they don't have one. Also use the file system type in the mount command instead of simply "auto".
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.