LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   mount problem, new hard-disk (https://www.linuxquestions.org/questions/linux-newbie-8/mount-problem-new-hard-disk-759847/)

itz2000 10-05-2009 12:48 PM

mount problem, new hard-disk
 
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

Perhaps I've forgotten to do something?

Thanks!

Tux-Slack 10-05-2009 01:46 PM

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.

saikee 10-05-2009 02:52 PM

Think a direct match is needed like
Code:

mount -t auto /dev/sdb1 /root/test1
I always used /mnt like
Code:

mkdir /mnt/sdb1
mount /dev/sdb1 /mnt/sdb1


itz2000 10-05-2009 03:32 PM

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


itz2000 10-05-2009 03:34 PM

Code:

root@Peanut:~# strace /sbin/mount -t auto /dev/sdb1 /mnt/memory/
execve("/sbin/mount", ["/sbin/mount", "-t", "auto", "/dev/sdb1", "/mnt/memory/"], [/* 47 vars */]) = 0
brk(0)                                  = 0x8057000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=134376, ...}) = 0
mmap2(NULL, 134376, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f77000
close(3)                                = 0
open("/lib/libblkid.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\240 \0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=37136, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f76000
mmap2(NULL, 35604, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7f6d000
mmap2(0xb7f75000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8) = 0xb7f75000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\360d\1"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1570593, ...}) = 0
mmap2(NULL, 1357360, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e21000
mprotect(0xb7f66000, 4096, PROT_NONE)  = 0
mmap2(0xb7f67000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x145) = 0xb7f67000
mmap2(0xb7f6a000, 9776, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f6a000
close(3)                                = 0
open("/lib/libuuid.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\300\r\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=11552, ...}) = 0
mmap2(NULL, 14036, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7e1d000
mmap2(0xb7e20000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0xb7e20000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e1c000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e1c700, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0xb7f67000, 8192, PROT_READ)  = 0
mprotect(0xb7fb4000, 4096, PROT_READ)  = 0
munmap(0xb7f77000, 134376)              = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
brk(0)                                  = 0x8057000
brk(0x8078000)                          = 0x8078000
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2586, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f97000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2586
read(3, "", 4096)                      = 0
close(3)                                = 0
munmap(0xb7f97000, 4096)                = 0
open("/usr/lib/locale/en_US/LC_IDENTIFICATION", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=378, ...}) = 0
mmap2(NULL, 378, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f97000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_MEASUREMENT", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=28, ...}) = 0
mmap2(NULL, 28, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f96000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_TELEPHONE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=64, ...}) = 0
mmap2(NULL, 64, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f95000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_ADDRESS", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=160, ...}) = 0
mmap2(NULL, 160, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f94000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_NAME", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=82, ...}) = 0
mmap2(NULL, 82, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f93000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_PAPER", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=39, ...}) = 0
mmap2(NULL, 39, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f92000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=57, ...}) = 0
mmap2(NULL, 57, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f91000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_MONETARY", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=291, ...}) = 0
mmap2(NULL, 291, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f90000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_TIME", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2459, ...}) = 0
mmap2(NULL, 2459, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8f000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_NUMERIC", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=59, ...}) = 0
mmap2(NULL, 59, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f8e000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=220516, ...}) = 0
mmap2(NULL, 220516, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7de6000
close(3)                                = 0
umask(022)                              = 022
open("/dev/null", O_RDWR|O_LARGEFILE)  = 3
close(3)                                = 0
getuid32()                              = 0
geteuid32()                            = 0
readlink("/dev", 0xbf9b02fb, 4096)      = -1 EINVAL (Invalid argument)
readlink("/dev/sdb1", 0xbf9b02fb, 4096) = -1 EINVAL (Invalid argument)
stat64("/sbin/mount.auto", 0xbf9b20f0)  = -1 ENOENT (No such file or directory)
rt_sigprocmask(SIG_BLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
open("/dev/null", O_RDONLY)            = 3
fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
fcntl64(3, F_GETFL)                    = 0 (flags O_RDONLY)
fstat64(3, {st_mode=S_IFCHR|0666, st_rdev=makedev(1, 3), ...}) = 0
ioctl(3, SNDCTL_TMR_TIMEBASE or TCGETS, 0xbf9b0e28) = -1 ENOTTY (Inappropriate ioctl for device)
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8d000
_llseek(3, 0, [0], SEEK_CUR)            = 0
read(3, "", 4096)                      = 0
close(3)                                = 0
munmap(0xb7f8d000, 4096)                = 0
time(NULL)                              = 1254774711
stat64("/dev/sdb1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0
open("/dev/sdb1", O_RDONLY)            = 3
uname({sys="Linux", node="Peanut", ...}) = 0
ioctl(3, BLKGETSIZE64, 0xbf9b0ff8)      = 0
_llseek(3, 180001898496, [180001898496], SEEK_SET) = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096) = 4096
lseek(3, 0, SEEK_SET)                  = 0
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 69632) = 69632
lseek(3, 270336, SEEK_SET)              = 270336
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
lseek(3, 270336, SEEK_SET)              = 270336
read(3, "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 1024) = 1024
close(3)                                = 0
open("/etc/filesystems", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
open("/proc/filesystems", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8d000
read(3, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 374
stat64("/sbin/mount.msdos", 0xbf9b2070) = -1 ENOENT (No such file or directory)
mount("/dev/sdb1", "/mnt/memory/", "msdos", MS_MGC_VAL, NULL) = -1 EINVAL (Invalid argument)
stat64("/sbin/mount.gfs2meta", 0xbf9b2070) = -1 ENOENT (No such file or directory)
mount("/dev/sdb1", "/mnt/memory/", "gfs2meta", MS_MGC_VAL, NULL) = -1 ENOENT (No such file or directory)
open("/proc/filesystems", O_RDONLY|O_LARGEFILE) = 4
fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8c000
read(4, "nodev\tsysfs\nnodev\trootfs\nnodev\tb"..., 1024) = 374
close(4)                                = 0
munmap(0xb7f8c000, 4096)                = 0
close(3)                                = 0
munmap(0xb7f8d000, 4096)                = 0
rt_sigprocmask(SIG_UNBLOCK, ~[TRAP SEGV RTMIN RT_1], NULL, 8) = 0
lstat64("/mnt/memory/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/mnt/memory/", {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
stat64("/dev/sdb1", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 17), ...}) = 0
dup(2)                                  = 3
fcntl64(3, F_GETFL)                    = 0x2 (flags O_RDWR)
fstat64(3, {st_mode=S_IFCHR|0600, st_rdev=makedev(136, 2), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f8d000
_llseek(3, 0, 0xbf9b1c08, SEEK_CUR)    = -1 ESPIPE (Illegal seek)
open("/usr/share/locale/en_US/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/libc.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(3, "mount: No such file or directory"..., 33mount: No such file or directory
) = 33
close(3)                                = 0
munmap(0xb7f8d000, 4096)                = 0
exit_group(32)                          = ?
Process 4013 detached


Tinkster 10-05-2009 03:43 PM

Is 'ls' aliased to anything on your system? I don't get trailing slashes on
directories on any of my systems with a plain 'ls | grep <something>' ...

If it isn't I'm curious as to how you managed to mangle a slash onto
the end of the directory/file-names ;}

What does ls -l have to say about test1 and test2?

itz2000 10-05-2009 04:00 PM

Quote:

Originally Posted by Tinkster (Post 3708718)
Is 'ls' aliased to anything on your system? I don't get trailing slashes on
directories on any of my systems with a plain 'ls | grep <something>' ...

If it isn't I'm curious as to how you managed to mangle a slash onto
the end of the directory/file-names ;}

What does ls -l have to say about test1 and test2?

hey tinkster... thanks for your input
Code:

monkey@Peanut:~$ alias
d='dir'
dir='/bin/ls $LS_OPTIONS --format=vertical'
ls='/bin/ls $LS_OPTIONS'
mc='. /usr/share/mc/bin/mc-wrapper.sh'
v='vdir'
vdir='/bin/ls $LS_OPTIONS --format=long'
monkey@Peanut:~$ su -c "ls -l /root/"
Password:
total 116
-rw-r--r-- 1 root root  1808 2002-04-17 07:21 loadlin16c.txt
-rw-r--r-- 1 root root 97874 2002-04-17 07:20 loadlin16c.zip
-rwxr-xr-x 1 root root  200 2009-01-27 21:21 memory.sh
drwxr-xr-x 2 root root  4096 2009-10-05 18:59 test1
drwxr-xr-x 2 root root  4096 2009-10-05 18:59 test2


itz2000 10-05-2009 04:02 PM

that's what exported
export LS_OPTIONS=" -F -b -T 0 --color=auto "

i92guboj 10-05-2009 04:10 PM

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.

Tinkster 10-05-2009 04:11 PM

Pity ... back to having no explanation. What about the output of a 'stat' on those dirs?

Is that command-line typed in, or copied and pasted? Maybe there's some uni-code stuff
in there?

saikee 10-05-2009 04:36 PM

Here is my own trial
Code:

guest@calculate ~ $ su
Password:
calculate guest # mkdir /mnt/sda57
calculate guest # mount /dev/sda57 /mnt/sda57

calculate guest # ls /mnt/sda57
bin    dev  initrd.img  media  proc  selinux  tmp  vmlinuz
boot  etc  lib        mnt    root  srv      usr
cdrom  home  lost+found  opt    sbin  sys      var

calculate guest # ls -l /mnt
total 16
drwxr-xr-x  2 root root 4096 2009-10-05 00:44 calculate
drwx------  2 root root 4096 2009-09-03 04:07 cdrom
drwx------  2 root root 4096 2009-09-03 04:07 floppy
drwxr-xr-x 21 root root 4096 2009-03-30 20:42 sda57

calculate guest # mkdir /root/test1
calculate guest # mount /dev/sda57 /root/test1

calculate guest # ls /root/test1
bin    dev  initrd.img  media  proc  selinux  tmp  vmlinuz
boot  etc  lib        mnt    root  srv      usr
cdrom  home  lost+found  opt    sbin  sys      var

calculate guest #


lutusp 10-05-2009 05:16 PM

Quote:

Originally Posted by itz2000 (Post 3708708)

[ snip ]

root@Peanut:~# /sbin/mount -t auto /dev/sdb1 /mnt/memory/
mount: No such file or directory

[/code]

The system is telling you that "/mnt/memory/" doesn't exist. Try specifying it without the ending slash, and make sure it exists.

Also make sure you are using the right path for "mount":

Code:

$ whereis mount

itz2000 10-06-2009 01:32 AM

Code:

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

saikee 10-06-2009 04:02 AM

Ha Ha! what a laugh!

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)
Code:

mkfs.ext3 /dev/sdb1
Now it is mountable.

jschiwal 10-06-2009 04:33 AM

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".


All times are GMT -5. The time now is 11:41 AM.