HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=4)
-   -   Little issue about hdd. I can't find the 2nd (http://www.howtoforge.com/forums/showthread.php?t=27076)

hhhhhh 24th September 2008 03:45

Little issue about hdd. I can't find the 2nd
 
Hello,

I was searching my second hard drive the last night to make a mirror with other folders (send all uploaded images to the 2nd hdd), but I didn't find it.

When I execute fdisk -l in ssh appear that:

Code:

Disk /dev/sda: 150.0 GB, 150039945216 bytes
255 heads, 63 sectors/track, 18241 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000cad43

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1  *          1      17495  140528556  83  Linux
/dev/sda2          17496      18241    5992245    5  Extended
/dev/sda5          17496      18241    5992213+  82  Linux swap / Solaris

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x9bae9bae

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1      121600  976751968+  83  Linux

/dev/sda is the main disc, where I have the linux OS and scripts.
/dev/sdb is the 2nd where I want create folders.

I went to /dev folder and missing, I went to /media folder and missing :confused:

After that, i went to /etc/fstab to watch it and display it:

Code:

# /etc/fstab: static file system information.
#
# <file system> <mount point>  <type>  <options>      <dump>  <pass>
proc            /proc          proc    defaults        0      0
# /dev/sda1
UUID=336011ee-a92d-4b0e-bf81-56963a685b6b /              ext3    relatime,errors=remount-ro,usrquota,grpquota 0      1
# /dev/sda5
UUID=539d6ba9-38ae-4143-a3d6-03b6ab05f80e none            swap    sw              0      0
/dev/scd0      /media/cdrom0  udf,iso9660 user,noauto,exec,utf8 0      0
/dev/fd0        /media/floppy0  auto    rw,user,noauto,exec,utf8 0      0

My question is How can I do to show sdb or sdb1 disc in /media or /dev folder like display in fdisk?

I was thinking to do it but I prefer to receive another opinion:

$ sudo mkdir /media/sdb1
$ sudo mount /dev/sdb1 /media/sdb1

I read about edit fstab but I don't know how to do it.

Thanks in advance! :)

falko 24th September 2008 19:09

Quote:

Originally Posted by hhhhhh (Post 146534)
I was thinking to do it but I prefer to receive another opinion:

$ sudo mkdir /media/sdb1
$ sudo mount /dev/sdb1 /media/sdb1

You can do it that way.

Quote:

Originally Posted by hhhhhh (Post 146534)
I read about edit fstab but I don't know how to do it.

Thanks in advance! :)

Add something like this to /etc/fstab:
Code:

/dev/sdb1 /media/sdb1              ext3    relatime,errors=remount-ro 0      1

hhhhhh 24th September 2008 21:02

Thank you very much again falko! :)


All times are GMT +2. The time now is 21:27.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.