473,378 Members | 1,344 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

mount device

sassy2009
Hi all,

im trying to mount a SATA drive. I have a drive already connected to the system as /dev/sda1. The second drive that i have connected now should be /dev/sdb if im not wrong. I havent formatted this drive so it shows up on the desktop as mass storage. So i wanted to format this drive to EXT2.I tried the "sudo fdisk dev/sdb". It says unable to open dev/sdb. I tried with GPARTED and formatting the sdb and it works. Why cant i format this drive with fdisk command???
Aug 22 '10 #1
3 2009
sicarie
4,677 Expert Mod 4TB
If you're writing that exactly as you're typing it, then you're missing the leading slash / for the 'absolute' path name (path from the root dir). The computer things you're doing the 'relative' path name and is looking in the current directory for a folder named dev/sdb - which is why it cannot open it.

I would recommend using gparted as the fdisk wikipedia page suggests it over many of fdisks limitations.
Aug 22 '10 #2
Nepomuk
3,112 Expert 2GB
A small addition: if you're looking for a command line tool that has the power of gparted, try
Expand|Select|Wrap|Line Numbers
  1. parted /dev/sdb
It has the same backend as gparted.

Greetings,
Nepomuk
Aug 24 '10 #3
Thanks for your reply guys.

sudo mount -t ext2 /dev/sdb1 /mnt

and this worked.
Aug 28 '10 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Kevin Altis | last post by:
Does anyone have experience running Python from a USB storage device? Whether it is the need for doing a demo of your application, doing a bit of consulting, or just showing off Python, it would be...
7
by: Fazer | last post by:
Hello, I have a MP3 and I want to access the songs in them. I was wondering if Python could help me do that. I understand that this can be done using Linux by mountig it as a file system, but...
8
by: nek | last post by:
Greetings, Has anyone got the latest progress on this? It hit me this time on W2K running DB2 V8.1.5. It returned the following warning: D:\Temp>db2 backup db sample to \\localhost\tape0...
1
by: bill | last post by:
I am looking for a way to mount a USB disc drive as a raw device. Where I could access data with sector seeks. Is there a way to do this? Bill
3
by: Terry Olsen | last post by:
My 5 year old has lots of games that require the CD be in the drive. I would like to come up with a program that will mount the .iso image to a virtual cd-rom drive and then run the game...
3
by: tguclu | last post by:
Hi there, I hope this is the right place for my question if not please accept my apologies. In my application I want to mount/umount file system. From GNU C Library Reference Manual, for...
3
by: m.smith_1999 | last post by:
Hello, I'm a student software developer. As a part of an excerise I'm doing I'm trying to build a program to create "mount files" and mount them. Something like Sarah Dean's OTFE but really...
3
by: paras sharma | last post by:
hello everyone; I was trying to make a prog. to mount CD image using mount() system call, but I got error block device require what arguments should I pass to it to make it work.
6
by: onkar.n.mahajan | last post by:
int mount(const char *fs, const char *path, int mflag); int mount(const char *fs, const char *path, int mflag, const char *fstype, const char *dataptr, int datalen); I am not getting what...
1
Nepomuk
by: Nepomuk | last post by:
In most modern distributions of Linux and Unix (at least ones with graphical environments like KDE, Gnome or XFCE), you get to mount your partitions easily from the desktop. In some cases however, it...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.