SlackwareThis Forum is for the discussion of Slackware Linux.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
usb 1-6: new high speed USB device using ehci_hcd and address 7
usb 1-6: configuration #1 chosen from 1 choice
scsi7 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 7
usb-storage: waiting for device to settle before scanning
kobject_add failed for usb_storage with -EEXIST, don't try to register things with the same name in the same directory.
[<c03e8717>] kobject_shadow_add+0x117/0x1a0
[<c013fba4>] mod_sysfs_setup+0x24/0xb0
[<c0141458>] sys_init_module+0x1648/0x1940
[<c0102ae8>] syscall_call+0x7/0xb
=======================
scsi 7:0:0:0: Direct-Access WD 2500JB External 0108 PQ: 0 ANSI: 0
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
SCSI device sdb: 488397168 512-byte hdwr sectors (250059 MB)
sdb: Write Protect is off
sdb: Mode Sense: 03 00 00 00
sdb: assuming drive cache: write through
sdb: sdb1
sd 7:0:0:0: Attached scsi disk sdb
sd 7:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
and
# fdisk -l
Disk /dev/hdc: 80.0 GB, 80026361856 bytes
16 heads, 63 sectors/track, 155061 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 152779 77000584+ 83 Linux
/dev/hdc2 152780 155061 1150128 82 Linux swap
Disk /dev/hdd: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdd1 1 19457 156288321 83 Linux
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 30401 244196001 83 Linux
but no window pops up to ask what I want to do with it.
# fdisk /dev/sdb
The number of cylinders for this disk is set to 30401.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 30401 244196001 83 Linux
Command (m for help):
It was working fine 'til a neighbour borrowed it and plugged it in to a windows machine. It came back blank with just one big ntfs partition which I deleted and then created the linux partition, but I don't seem to be able to access the drive in any way that I know.
# mount /dev/sdb /mnt/disk
mount: No such file or directory
# mount /dev/sdb1 /mnt/disk
mount: No such file or directory
In addition to Alien Bob's advice above, and this may be a bit obvious, but does /mnt/disk exist and is it readable by the current user?
Your fstab entry isn't quite correct, you do want to mount the partition on the device (sdb1) and not the root device itself (sdb), just as on the command line. I recommend getting the mount command working before making the fstab entry, though no real harm is done if it fails.
Your /etc/fstab should have /dev/sdb1 and not/dev/sdb
I'm assuming that you actually formatted the partition as ext3. If not, then you know what you need to do first. I'm also assuming that /mnt/disk actually exists. If not, then create that directory.
If you have an entry in fstab then you only need to
It was the mkfs.ext3 /dev/sdb1 that I hadn't done and all now is fine. I mistakenly believed that fdisk did all that when you created a partition. I also deleted the entry in fstab altogether and it now just pops up on the desktop when I plug it in, as it did before.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.